Table of Contents

Class Subscription

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll

This is the subscription that users can pay for when they are regular customers with increasing as well as recurring needs. Subscription SKU format: GSKY-SUB-{Number of Posts Available}P-{Duration of subscription}M-{Custom user or ALL}-{Company slug or ALL}-V{Version number}

[Table("Subscriptions")]
public class Subscription : Product
Inheritance
Subscription
Inherited Members

Properties

DurationMonths

For how many days the Subscription should be active, starting from its activation on a User.

public short DurationMonths { get; set; }

Property Value

short

NumberOfPostsAvailablePerMonth

public int NumberOfPostsAvailablePerMonth { get; set; }

Property Value

int

VisibleOnlyToUserWithSlug

public string? VisibleOnlyToUserWithSlug { get; set; }

Property Value

string