Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
OfflineMessage.cs
1using System;
5
7{
8 [CollectionName("OfflineMessages")]
9 [NoBackup("Offline Messages might have been sent after backup and before restoration. By excluding such messages from backups, offline messages are not at risk of being sent multiple times.")]
10 [TypeName(TypeNameSerialization.None)]
11 [Index("ToUserName", "Timestamp")]
12 [Index("Timestamp")]
14 {
15 private string objectId = null;
16 private string type = string.Empty;
17 private string id = string.Empty;
21 private string language = string.Empty;
22 private string contentXml = string.Empty;
23 private DateTime timestamp = DateTime.MinValue;
24
25 public OfflineMessage()
26 {
27 }
28
29 [ObjectId]
30 public string ObjectId
31 {
32 get => this.objectId;
33 set => this.objectId = value;
34 }
35
36 [DefaultValueStringEmpty]
37 public string Type
38 {
39 get => this.type;
40 set => this.type = value;
41 }
42
43 [DefaultValueStringEmpty]
44 public string Id
45 {
46 get => this.id;
47 set => this.id = value;
48 }
49
51 {
52 get => this.toUserName;
53 set => this.toUserName = value;
54 }
55
56 [DefaultValueStringEmpty]
58 {
59 get => this.to;
60 set => this.to = value;
61 }
62
63 [DefaultValueStringEmpty]
65 {
66 get => this.from;
67 set => this.from = value;
68 }
69
70 [DefaultValueStringEmpty]
71 public string Language
72 {
73 get => this.language;
74 set => this.language = value;
75 }
76
77 [DefaultValueStringEmpty]
78 public string ContentXml
79 {
80 get => this.contentXml;
81 set => this.contentXml = value;
82 }
83
84 public DateTime Timestamp
85 {
86 get => this.timestamp;
87 set => this.timestamp = value;
88 }
89
90 }
91}
Represents a case-insensitive string.
static readonly CaseInsensitiveString Empty
Empty case-insensitive string
CaseInsensitiveString ToUserName
User name part of message to attribute.
CaseInsensitiveString To
Bare JID part of message to attribute.
DateTime Timestamp
When message was stored.
CaseInsensitiveString From
Message from attribute.
string Language
Message xml:lang attribute.
TypeNameSerialization
How the type name should be serialized.