Table of Contents

Class UserSubscription

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

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

long

CreationTimestampUTC

When this junction-table entry was added.

public long CreationTimestampUTC { get; set; }

Property Value

long

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

long

IsAutomaticRenewalEnabled

public bool IsAutomaticRenewalEnabled { get; set; }

Property Value

bool

Posts

public ICollection<Post> Posts { get; set; }

Property Value

ICollection<Post>

Subscription

The Subscription that the User has paid for.

[ForeignKey("SubscriptionSKU")]
public Subscription Subscription { get; set; }

Property Value

Subscription

SubscriptionSKU

The ID of the Subscription that the User has paid for.

public string SubscriptionSKU { get; set; }

Property Value

string

User

The subscribing User.

[ForeignKey("UserId")]
public User User { get; set; }

Property Value

User

UserId

The ID of the subscribing User.

public long UserId { get; set; }

Property Value

long

Methods

GetExpirationTimestampUTC()

public long GetExpirationTimestampUTC()

Returns

long