-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathMucOccupant.cs
More file actions
93 lines (84 loc) · 2.03 KB
/
MucOccupant.cs
File metadata and controls
93 lines (84 loc) · 2.03 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Networking.XMPP.MUC
{
/// <summary>
/// Multi-User Chat room occupant.
/// </summary>
public class MucOccupant
{
private readonly MultiUserChatClient client;
private readonly string roomId;
private readonly string domain;
private string nickName;
private string jid;
private Affiliation affiliation;
private Role role;
/// <summary>
/// Multi-User Chat room occupant.
/// </summary>
/// <param name="Client">MUC Client</param>
/// <param name="RoomId">Room ID</param>
/// <param name="Domain">Domain hosting the MUC room.</param>
/// <param name="NickName">Nick-name</param>
/// <param name="Jid">JID</param>
/// <param name="Affiliation">Affiliation</param>
/// <param name="Role">Role</param>
public MucOccupant(MultiUserChatClient Client, string RoomId, string Domain,
string NickName, string Jid, Affiliation Affiliation, Role Role)
{
this.client = Client;
this.roomId = RoomId;
this.domain = Domain;
this.nickName = NickName;
this.jid = Jid;
this.affiliation = Affiliation;
this.role = Role;
}
/// <summary>
/// MUC Client
/// </summary>
public MultiUserChatClient Client => this.client;
/// <summary>
/// Room ID
/// </summary>
public string RoomId => this.roomId;
/// <summary>
/// Domain hosting the MUC room.
/// </summary>
public string Domain => this.domain;
/// <summary>
/// Affiliation assigned to occupant.
/// </summary>
public Affiliation Affiliation
{
get => this.affiliation;
internal set => this.affiliation = value;
}
/// <summary>
/// Role assigned to occupant.
/// </summary>
public Role Role
{
get => this.role;
internal set => this.role = value;
}
/// <summary>
/// Nick-name in room.
/// </summary>
public string NickName
{
get => this.nickName;
set => this.nickName = value;
}
/// <summary>
/// JID of occupant
/// </summary>
public string Jid
{
get => this.jid;
set => this.jid = value;
}
}
}