summaryrefslogtreecommitdiff
path: root/dsa/FireBase/Streaming/FirebaseEvent.cs
diff options
context:
space:
mode:
Diffstat (limited to 'dsa/FireBase/Streaming/FirebaseEvent.cs')
-rw-r--r--dsa/FireBase/Streaming/FirebaseEvent.cs12
1 files changed, 4 insertions, 8 deletions
diff --git a/dsa/FireBase/Streaming/FirebaseEvent.cs b/dsa/FireBase/Streaming/FirebaseEvent.cs
index 1761a72..2a1ec6d 100644
--- a/dsa/FireBase/Streaming/FirebaseEvent.cs
+++ b/dsa/FireBase/Streaming/FirebaseEvent.cs
@@ -1,11 +1,9 @@
-namespace Firebase.Database.Streaming
-{
+namespace Firebase.Database.Streaming {
/// <summary>
/// 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>
- {
+ public class FirebaseEvent<T> : FirebaseObject<T> {
/// <summary>
/// Initializes a new instance of the <see cref="FirebaseEvent{T}" /> class.
/// </summary>
@@ -13,8 +11,7 @@ namespace Firebase.Database.Streaming
/// <param name="obj"> The object. </param>
/// <param name="eventType"> The event type. </param>
public FirebaseEvent(string key, T obj, FirebaseEventType eventType, FirebaseEventSource eventSource)
- : base(key, obj)
- {
+ : base(key, obj) {
EventType = eventType;
EventSource = eventSource;
}
@@ -29,8 +26,7 @@ namespace Firebase.Database.Streaming
/// </summary>
public FirebaseEventType EventType { get; }
- public static FirebaseEvent<T> Empty(FirebaseEventSource source)
- {
+ public static FirebaseEvent<T> Empty(FirebaseEventSource source) {
return new FirebaseEvent<T>(string.Empty, default(T), FirebaseEventType.InsertOrUpdate, source);
}
}