Table of Contents

Class PostPremiumUpgrade

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

Junction-table for premium upgrades.

[Table("PostPremiumUpgrades")]
public class PostPremiumUpgrade
Inheritance
PostPremiumUpgrade
Inherited Members

Properties

ActivationTimestampUTC

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

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 PostPremiumUpgrade was marked as expired for the underlying Post.

public long? DeactivatedOnTimestampUTC { get; set; }

Property Value

long?

Id

DB primary key.

[Key]
public long Id { get; set; }

Property Value

long

Post

Post with which this PremiumUpgrade is associated.

[ForeignKey("PostId")]
public Post Post { get; set; }

Property Value

Post

PostId

Id of the Post with which this PremiumUpgrade is associated.

public long PostId { get; set; }

Property Value

long

PremiumUpgrade

The type of premium post upgrade to activate for the Post.

[ForeignKey("PremiumUpgradeSKU")]
public PremiumUpgrade PremiumUpgrade { get; set; }

Property Value

PremiumUpgrade
See Also

PremiumUpgradeSKU

The SKU of type of premium upgrade to activate for the Post.

public string PremiumUpgradeSKU { get; set; }

Property Value

string
See Also

Methods

GetExpirationTimestampUTC()

public long GetExpirationTimestampUTC()

Returns

long