Class UserSubscription
User-to-Subscription junction table.
[Table("UserSubscriptions")]
public class UserSubscription
- Inheritance
-
UserSubscription
- Inherited Members
Properties
ActivationTimestampUTC
The unix-timestamp on which this Subscription should be applied and activated for the underlying User.
public long ActivationTimestampUTC { get; set; }
Property Value
CreationTimestampUTC
When this junction-table entry was added.
public long CreationTimestampUTC { get; set; }
Property Value
DeactivatedOnTimestampUTC
The unix-timestamp on which this UserSubscription was marked as expired.
public long? DeactivatedOnTimestampUTC { get; set; }
Property Value
- long?
Id
Primary key.
[Key]
public long Id { get; set; }
Property Value
IsAutomaticRenewalEnabled
public bool IsAutomaticRenewalEnabled { get; set; }
Property Value
Posts
public ICollection<Post> Posts { get; set; }
Property Value
Subscription
The Subscription that the User has paid for.
[ForeignKey("SubscriptionSKU")]
public Subscription Subscription { get; set; }
Property Value
SubscriptionSKU
The ID of the Subscription that the User has paid for.
public string SubscriptionSKU { get; set; }
Property Value
User
The subscribing User.
[ForeignKey("UserId")]
public User User { get; set; }
Property Value
UserId
The ID of the subscribing User.
public long UserId { get; set; }
Property Value
Methods
GetExpirationTimestampUTC()
public long GetExpirationTimestampUTC()