Class UserProfile
Represents a TorBox user account returned by the API.
public sealed record UserProfile : IEquatable<UserProfile>
- Inheritance
-
UserProfile
- Implements
- Inherited Members
Properties
AdditionalConcurrentSlots
Gets the number of additional concurrent download slots.
[JsonPropertyName("additional_concurrent_slots")]
public int AdditionalConcurrentSlots { get; init; }
Property Value
AuthId
Gets the authentication identifier of the user, or null if not available.
[JsonPropertyName("auth_id")]
public string? AuthId { get; init; }
Property Value
BaseEmail
Gets the base email address of the user (without aliases), or null if not available.
[JsonPropertyName("base_email")]
public string? BaseEmail { get; init; }
Property Value
CooldownUntil
Gets the date and time until which the user is on cooldown, or null if not on cooldown.
[JsonPropertyName("cooldown_until")]
public DateTimeOffset? CooldownUntil { get; init; }
Property Value
CreatedAt
Gets the date and time when the user account was created, or null if not available.
[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }
Property Value
Customer
Gets the customer identifier from the payment provider, or null if not available.
[JsonPropertyName("customer")]
public string? Customer { get; init; }
Property Value
Gets the email address of the user, or null if not available.
[JsonPropertyName("email")]
public string? Email { get; init; }
Property Value
Id
Gets the unique identifier of the user.
[JsonPropertyName("id")]
public long Id { get; init; }
Property Value
IsSubscribed
Gets a value indicating whether the user has an active subscription.
[JsonPropertyName("is_subscribed")]
public bool IsSubscribed { get; init; }
Property Value
IsVendor
Gets a value indicating whether the user is a vendor.
[JsonPropertyName("is_vendor")]
public bool IsVendor { get; init; }
Property Value
LongTermSeeding
Gets a value indicating whether long-term seeding is enabled.
[JsonPropertyName("long_term_seeding")]
public bool LongTermSeeding { get; init; }
Property Value
LongTermStorage
Gets a value indicating whether long-term storage is enabled.
[JsonPropertyName("long_term_storage")]
public bool LongTermStorage { get; init; }
Property Value
Plan
Gets the numeric identifier of the user's current plan.
[JsonPropertyName("plan")]
public int Plan { get; init; }
Property Value
PremiumExpiresAt
Gets the date and time when the user's premium subscription expires, or null if not subscribed.
[JsonPropertyName("premium_expires_at")]
public DateTimeOffset? PremiumExpiresAt { get; init; }
Property Value
PurchasesReferred
Gets the number of purchases referred by the user.
[JsonPropertyName("purchases_referred")]
public int PurchasesReferred { get; init; }
Property Value
Settings
Gets the user's account settings, or null if not included in the response.
[JsonPropertyName("settings")]
public UserSettings? Settings { get; init; }
Property Value
TorrentsDownloaded
Gets the number of torrents downloaded by the user.
[JsonPropertyName("torrents_downloaded")]
public long TorrentsDownloaded { get; init; }
Property Value
TotalBytesDownloaded
Gets the total number of bytes downloaded by the user.
[JsonPropertyName("total_bytes_downloaded")]
public long TotalBytesDownloaded { get; init; }
Property Value
TotalBytesUploaded
Gets the total number of bytes uploaded by the user.
[JsonPropertyName("total_bytes_uploaded")]
public long TotalBytesUploaded { get; init; }
Property Value
TotalDownloaded
Gets the total bytes downloaded by the user.
[JsonPropertyName("total_downloaded")]
public long TotalDownloaded { get; init; }
Property Value
UpdatedAt
Gets the date and time when the user account was last updated, or null if not available.
[JsonPropertyName("updated_at")]
public DateTimeOffset? UpdatedAt { get; init; }
Property Value
UsenetDownloadsDownloaded
Gets the number of usenet downloads completed by the user.
[JsonPropertyName("usenet_downloads_downloaded")]
public long UsenetDownloadsDownloaded { get; init; }
Property Value
UserReferral
Gets the user's referral identifier, or null if not available.
[JsonPropertyName("user_referral")]
public string? UserReferral { get; init; }
Property Value
VendorId
Gets the vendor identifier, or null if the user is not a vendor.
[JsonPropertyName("vendor_id")]
public string? VendorId { get; init; }
Property Value
WebDownloadsDownloaded
Gets the number of web downloads completed by the user.
[JsonPropertyName("web_downloads_downloaded")]
public long WebDownloadsDownloaded { get; init; }