Table of Contents

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

string

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

string

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

string

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

string

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

DateTimeOffset?

Id

Gets the unique identifier of the notification.

[JsonPropertyName("id")]
public long Id { get; init; }

Property Value

long

Message

Gets the message body of the notification, or null if not available.

[JsonPropertyName("message")]
public string? Message { get; init; }

Property Value

string

Title

Gets the title of the notification, or null if not available.

[JsonPropertyName("title")]
public string? Title { get; init; }

Property Value

string