summaryrefslogtreecommitdiff
path: root/FireBase/Streaming/FirebaseEventSource.cs
blob: 98df9776958128b3e074f49fd0cb6f80426667cc (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
37
38
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
    }
}