Class Notification
Notification
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Notification")]
[Preserve]
public class Notification
Constructors
Notification(string, string, string, string, string, string, string, string, string)
Initializes a new instance of the Notification class.
Declaration
[Preserve]
public Notification(string id = null, string type = null, string playerID = null, string caseID = null, string projectID = null, string message = null, string createdAt = null, string updatedAt = null, string deletedAt = null)
Parameters
Type | Name | Description |
---|---|---|
string | id | The notification identifier (required). |
string | type | The notification type, defaults to DSA (required). |
string | playerID | The player identifier (required). |
string | caseID | The case identifier (required). |
string | projectID | The project identifier (required). |
string | message | The message content (required). |
string | createdAt | Unix epoch time the notification was triggered (required). |
string | updatedAt | Unix epoch time the notification was last updated. |
string | deletedAt | Unix epoch time the notification was soft deleted. |
Properties
CaseID
The case identifier
Declaration
[DataMember(Name = "caseID", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CaseID { get; set; }
Property Value
Type | Description |
---|---|
string | The case identifier |
CreatedAt
Unix epoch time the notification was triggered
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
string | Unix epoch time the notification was triggered |
DeletedAt
Unix epoch time the notification was soft deleted
Declaration
[DataMember(Name = "deletedAt", EmitDefaultValue = false)]
[Preserve]
public string DeletedAt { get; set; }
Property Value
Type | Description |
---|---|
string | Unix epoch time the notification was soft deleted |
Id
The notification identifier
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The notification identifier |
Message
The message content
Declaration
[DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Message { get; set; }
Property Value
Type | Description |
---|---|
string | The message content |
PlayerID
The player identifier
Declaration
[DataMember(Name = "playerID", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PlayerID { get; set; }
Property Value
Type | Description |
---|---|
string | The player identifier |
ProjectID
The project identifier
Declaration
[DataMember(Name = "projectID", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string ProjectID { get; set; }
Property Value
Type | Description |
---|---|
string | The project identifier |
Type
The notification type, defaults to DSA
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Type { get; set; }
Property Value
Type | Description |
---|---|
string | The notification type, defaults to DSA |
UpdatedAt
Unix epoch time the notification was last updated
Declaration
[DataMember(Name = "updatedAt", EmitDefaultValue = false)]
[Preserve]
public string UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
string | Unix epoch time the notification was last updated |