summaryrefslogtreecommitdiff
path: root/dsa/FireBase/Streaming/FirebaseEventSource.cs
blob: 9c14f8372e8ae4ee54b5e8596b4ccece90fe8f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Firebase.Database.Streaming {
    /// <summary>
    ///     Specifies the origin of given <see cref="FirebaseEvent{T}" />
    /// </summary>
    public enum FirebaseEventSource {
        /// <summary>
        ///     Event comes from an offline source.
        /// </summary>
        Offline,

        /// <summary>
        ///     Event comes from online source fetched during initial pull (valid only for RealtimeDatabase).
        /// </summary>
        OnlineInitial,

        /// <summary>
        ///     Event comes from online source received thru active stream.
        /// </summary>
        OnlineStream,

        /// <summary>
        ///     Event comes from online source being fetched manually.
        /// </summary>
        OnlinePull,

        /// <summary>
        ///     Event raised after successful online push (valid only for RealtimeDatabase which isn't streaming).
        /// </summary>
        OnlinePush,

        /// <summary>
        ///     Event comes from an online source.
        /// </summary>
        Online = OnlineInitial | OnlinePull | OnlinePush | OnlineStream
    }
}