Class Notification
- Namespace
- TorBoxSDK.Models.Notifications
- Assembly
- TorBoxSDK.dll
Represents a notification sent to a TorBox user.
public sealed record Notification : IEquatable<Notification>
- Inheritance
-
Notification
- Implements
- Inherited Members
Properties
Action
Gets the action type for the notification (e.g., "url"), or null if not available.
[JsonPropertyName("action")]
public string? Action { get; init; }
Property Value
ActionCta
Gets the call-to-action text for the notification (e.g., "Download Now"), or null if not available.
[JsonPropertyName("action_cta")]
public string? ActionCta { get; init; }
Property Value
ActionData
Gets the action data associated with the notification (e.g., a URL), or null if not available.
[JsonPropertyName("action_data")]
public string? ActionData { get; init; }
Property Value
AuthId
Gets the authentication identifier of the user who owns this notification, or null if not available.
[JsonPropertyName("auth_id")]
public string? AuthId { get; init; }
Property Value
CreatedAt
Gets the date and time when the notification was created, or null if not available.
[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }
Property Value
Id
Gets the unique identifier of the notification.
[JsonPropertyName("id")]
public long Id { get; init; }
Property Value
Message
Gets the message body of the notification, or null if not available.
[JsonPropertyName("message")]
public string? Message { get; init; }
Property Value
Title
Gets the title of the notification, or null if not available.
[JsonPropertyName("title")]
public string? Title { get; init; }