-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathSubscription.cs
More file actions
52 lines (46 loc) · 1.3 KB
/
Subscription.cs
File metadata and controls
52 lines (46 loc) · 1.3 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Networking.XMPP.PubSub
{
/// <summary>
/// Contains information about a subscription.
/// </summary>
public class Subscription
{
private readonly string node;
private readonly string jid;
private readonly string subscriptionId;
private readonly NodeSubscriptionStatus status;
/// <summary>
/// Contains information about a subscription.
/// </summary>
/// <param name="Node">Node name</param>
/// <param name="Jid">JID receiving notifications</param>
/// <param name="Status">Status of the subscription</param>
/// <param name="SubscriptionId">Subscription ID</param>
public Subscription(string Node, string Jid, NodeSubscriptionStatus Status, string SubscriptionId)
{
this.node = Node;
this.jid = Jid;
this.status = Status;
this.subscriptionId = SubscriptionId;
}
/// <summary>
/// Node name.
/// </summary>
public string Node => this.node;
/// <summary>
/// JID receiving notifications.
/// </summary>
public string Jid => this.jid;
/// <summary>
/// State of the subscription.
/// </summary>
public NodeSubscriptionStatus Status => this.status;
/// <summary>
/// Subscription ID
/// </summary>
public string SubscriptionId => this.subscriptionId;
}
}