Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MucMessage.cs
1using System;
4
6{
10 [TypeName(TypeNameSerialization.FullName)]
11 [CollectionName("MucMessages")]
12 [ArchivingTime(nameof(ArchiveDays))]
13 [Index("Domain", "Room", "-Timestamp")]
14 public class MucMessage
15 {
16 private string objectId = null;
17 private string messageId = string.Empty;
18 private string language = string.Empty;
19 private string contentXml = string.Empty;
20 private CaseInsensitiveString room = null;
21 private CaseInsensitiveString domain = null;
24 private DateTime timestamp = DateTime.MinValue;
25 private int archiveMessagesDays = 0;
26
30 public MucMessage()
31 {
32 }
33
34 [ObjectId]
35 public string ObjectID
36 {
37 get => this.objectId;
38 set => this.objectId = value;
39 }
40
41 [DefaultValueStringEmpty]
42 public string MessageId
43 {
44 get => this.messageId;
45 set => this.messageId = value;
46 }
47
48 [DefaultValueStringEmpty]
49 public string Language
50 {
51 get => this.language;
52 set => this.language = value;
53 }
54
55 [DefaultValueStringEmpty]
56 public string ContentXml
57 {
58 get => this.contentXml;
59 set => this.contentXml = value;
60 }
61
62 public CaseInsensitiveString Room
63 {
64 get => this.room;
65 set => this.room = value;
66 }
67
68 public CaseInsensitiveString Domain
69 {
70 get => this.domain;
71 set => this.domain = value;
72 }
73
74 public CaseInsensitiveString NickName
75 {
76 get => this.nickName;
77 set => this.nickName = value;
78 }
79
80 public CaseInsensitiveString FullJid
81 {
82 get => this.fullJid;
83 set => this.fullJid = value;
84 }
85
86 public DateTime Timestamp
87 {
88 get => this.timestamp;
89 set => this.timestamp = value;
90 }
91
95 public int ArchiveDays
96 {
97 get => this.archiveMessagesDays;
98 set => this.archiveMessagesDays = value;
99 }
100
101 public CaseInsensitiveString OccupantJid => this.room + "@" + this.domain + "/" + this.nickName;
102 }
103}
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
MucMessage()
Multi-user Chat Room Message
Definition: MucMessage.cs:30
int ArchiveDays
Number of days to archive field.
Definition: MucMessage.cs:96
TypeNameSerialization
How the type name should be serialized.