Class Subscription
Represents a product subscription utilized by a consumer account in Developer Portal.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public class Subscription : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Subscription>, IExtensibleEntity
Constructors
Subscription()
Declaration
public Subscription()
Properties
ApplicationCount
Gets the number of application created for this subscription.
Declaration
public int ApplicationCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
ConsumerId
Gets or sets the identifier of the Consumer account that subscription belongs to.
Declaration
public int ConsumerId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ConsumerName
Gets the name of the consumer account that subscription belongs to.
Declaration
public string ConsumerName { get; }
Property Value
Type | Description |
---|---|
String |
CustomAttributes
Gets collection of custom attribute values. The key corresponds to an attribute type identifier.
Declaration
public CustomAttributeDictionary CustomAttributes { get; protected set; }
Property Value
Type | Description |
---|---|
CustomAttributeDictionary |
Expiration
Gets or sets the subscription expiration date and time (UTC). If set to NULL then subscription never expires.
Declaration
public DateTime? Expiration { get; set; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
IsMajorObject
Gets the flag indicating that current object is a major entity.
Declaration
public override bool IsMajorObject { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Name
Gets or sets the display name of the subscription.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
ObjectType
Gets object type identifier.
Declaration
public override EntityType ObjectType { get; }
Property Value
Type | Description |
---|---|
EntityType |
Overrides
ProductId
Gets or sets the identifier of the Product included in this subscription.
Declaration
public int ProductId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
ProductName
Gets the product name included in this subscription.
Declaration
public string ProductName { get; }
Property Value
Type | Description |
---|---|
String |
Status
Gets or sets the current status of the subscription.
Declaration
public SubscriptionStatus Status { get; set; }
Property Value
Type | Description |
---|---|
SubscriptionStatus |
Methods
Equals(Subscription)
Determines whether the specified subscription is equal to the current subscription.
Declaration
public bool Equals(Subscription other)
Parameters
Type | Name | Description |
---|---|---|
Subscription | other | The subscription to compare with the current subscription. |
Returns
Type | Description |
---|---|
Boolean | True, if subscriptions are equal. False, if subscriptions are not equal. |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean | True, if objects are equal. False, if objects are not equal. |
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Hash code of the current instance. |
Overrides
IsSignificantlyDifferent(Subscription)
Returns flag indicating that this subscription is significantly different from the provided one, meaning that changes need to be reported to the nodes.
Declaration
public bool IsSignificantlyDifferent(Subscription other)
Parameters
Type | Name | Description |
---|---|---|
Subscription | other | Previous version of the subscription to compare with. |
Returns
Type | Description |
---|---|
Boolean | True, if versions are significantly different. False otherwise. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
Validate()
Evaluates the state of this object.
Declaration
public override bool Validate()
Returns
Type | Description |
---|---|
Boolean | True if state is valid; otherwise, false. |