summaryrefslogtreecommitdiff
path: root/FireBase/Streaming/FirebaseEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'FireBase/Streaming/FirebaseEvent.cs')
-rw-r--r--FireBase/Streaming/FirebaseEvent.cs27
1 files changed, 12 insertions, 15 deletions
diff --git a/FireBase/Streaming/FirebaseEvent.cs b/FireBase/Streaming/FirebaseEvent.cs
index c2338ca..1761a72 100644
--- a/FireBase/Streaming/FirebaseEvent.cs
+++ b/FireBase/Streaming/FirebaseEvent.cs
@@ -1,13 +1,13 @@
namespace Firebase.Database.Streaming
{
/// <summary>
- /// Firebase event which hold <see cref="EventType"/> and the object affected by the event.
+ /// Firebase event which hold <see cref="EventType" /> and the object affected by the event.
/// </summary>
/// <typeparam name="T"> Type of object affected by the event. </typeparam>
public class FirebaseEvent<T> : FirebaseObject<T>
{
/// <summary>
- /// Initializes a new instance of the <see cref="FirebaseEvent{T}"/> class.
+ /// Initializes a new instance of the <see cref="FirebaseEvent{T}" /> class.
/// </summary>
/// <param name="key"> The key of the object. </param>
/// <param name="obj"> The object. </param>
@@ -15,26 +15,23 @@ namespace Firebase.Database.Streaming
public FirebaseEvent(string key, T obj, FirebaseEventType eventType, FirebaseEventSource eventSource)
: base(key, obj)
{
- this.EventType = eventType;
- this.EventSource = eventSource;
+ EventType = eventType;
+ EventSource = eventSource;
}
/// <summary>
- /// Gets the source of the event.
+ /// Gets the source of the event.
/// </summary>
- public FirebaseEventSource EventSource
- {
- get;
- }
+ public FirebaseEventSource EventSource { get; }
/// <summary>
- /// Gets the event type.
+ /// Gets the event type.
/// </summary>
- public FirebaseEventType EventType
+ public FirebaseEventType EventType { get; }
+
+ public static FirebaseEvent<T> Empty(FirebaseEventSource source)
{
- get;
+ return new FirebaseEvent<T>(string.Empty, default(T), FirebaseEventType.InsertOrUpdate, source);
}
-
- public static FirebaseEvent<T> Empty(FirebaseEventSource source) => new FirebaseEvent<T>(string.Empty, default(T), FirebaseEventType.InsertOrUpdate, source);
}
-}
+} \ No newline at end of file