Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PushNotificationToken.cs
1using System;
4
6{
10 [CollectionName("PushNotificationTokens")]
11 [TypeName(TypeNameSerialization.None)]
12 [Index("BareJid")]
13 [Index("Updated")]
15 {
20 {
21 this.Service = PushMessagingService.Firebase;
22 this.ClientType = ClientType.Other;
23 }
24
28 [ObjectId]
29 public string ObjectId { get; set; }
30
34 public CaseInsensitiveString BareJid { get; set; }
35
39 [DefaultValue(PushMessagingService.Firebase)]
40 public PushMessagingService Service { get; set; }
41
45 [DefaultValue(ClientType.Other)]
46 public ClientType ClientType { get; set; }
47
51 public string Token { get; set; }
52
56 public DateTime Created { get; set; }
57
61 public DateTime Updated { get; set; }
62
66 public int NrUpdates { get; set; }
67 }
68}
PushMessagingService Service
Service used for push notification
int NrUpdates
Number of times object has been updated. (Created once only, without further updates = 1).
DateTime Updated
When object was last updated (or created).
Represents a case-insensitive string.
ClientType
Type of client requesting notification.
Definition: ClientType.cs:7
TypeNameSerialization
How the type name should be serialized.