Table of Contents

Class CompanySubscription

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

Company-to-Subscription junction table.

[Table("CompanySubscriptions")]
public class CompanySubscription
Inheritance
CompanySubscription
Inherited Members

Properties

ActivationTimestampUTC

The unix-timestamp on which this Subscription should be applied and activated for the underlying Company.

public long ActivationTimestampUTC { get; set; }

Property Value

long

Company

The subscribing Company.

[ForeignKey("CompanyId")]
public Company Company { get; set; }

Property Value

Company

CompanyId

The ID of the subscribing Company.

public long CompanyId { 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 CompanySubscription 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 Company has paid for.

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

Property Value

Subscription

SubscriptionSKU

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

public string SubscriptionSKU { get; set; }

Property Value

string

Methods

GetExpirationTimestampUTC()

public long GetExpirationTimestampUTC()

Returns

long