Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
RoomInfo.cs
2{
6 public class RoomInfo
7 {
8 private readonly string roomId;
9 private readonly string domain;
10 private readonly string nickName;
11 private readonly string password;
12 private readonly bool permanent;
13
21 public RoomInfo(string RoomId, string Domain, string NickName, bool Permanent)
22 : this(RoomId, Domain, NickName, string.Empty, Permanent)
23 {
24 }
25
34 public RoomInfo(string RoomId, string Domain, string NickName, string Password, bool Permanent)
35 {
36 this.roomId = RoomId;
37 this.domain = Domain;
38 this.nickName = NickName;
39 this.password = Password;
40 this.permanent = Permanent;
41 }
42
46 public string RoomId => this.roomId;
47
51 public string Domain => this.domain;
52
56 public string NickName => this.nickName;
57
61 public string Password => this.password;
62
66 public bool Permanent => this.permanent;
67
71 public string RoomJid => this.roomId + "@" + this.domain;
72 }
73}
Multi-User Chat Room information
Definition: RoomInfo.cs:7
RoomInfo(string RoomId, string Domain, string NickName, string Password, bool Permanent)
Multi-User Chat Room information
Definition: RoomInfo.cs:34
string NickName
Nick-name to use in room.
Definition: RoomInfo.cs:56
RoomInfo(string RoomId, string Domain, string NickName, bool Permanent)
Multi-User Chat Room information
Definition: RoomInfo.cs:21
bool Permanent
If room association should be persisted.
Definition: RoomInfo.cs:66
string Password
Password to use to enter room.
Definition: RoomInfo.cs:61