Esempio n. 1
0
        public static string ConvertFromEnum(SubscriptionStatusValue subscriptionStatus)
        {
            switch (subscriptionStatus)
            {
            case SubscriptionStatusValue.Pending:
                return(Pending);

            case SubscriptionStatusValue.Active:
                return(Active);

            case SubscriptionStatusValue.Inactive:
                return(Inactive);

            default:
                throw new ArgumentOutOfRangeException(nameof(subscriptionStatus));
            }
        }
Esempio n. 2
0
 public SubscriptionStatus(SubscriptionStatusValue status)
 {
     Status = status;
 }