public Subscription(Customer customer) { this._id = Guid.NewGuid (); this._createtimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._updatetimestamp = SNDK.Date.CurrentDateTimeToTimestamp (); this._type = Enums.SubscriptionType.Monthly; this._customerid = customer.Id; this._title = string.Empty; this._nextbilling = SNDK.Date.DateTimeToTimestamp (DateTime.Today.AddDays (2)); this._status = Enums.SubscriptionStatus.Active; }
private Subscription() { this._id = Guid.Empty; this._createtimestamp = 0; this._updatetimestamp = 0; this._type = AllectusLib.Enums.SubscriptionType.Monthly; this._customerid = Guid.Empty; this._title = string.Empty; this._nextbilling = 0; this._status = AllectusLib.Enums.SubscriptionStatus.Inactive; }