Class Application
Represents an application or a subscription key associated with a product subscription in Developer Portal.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Application : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Application>
Constructors
Application()
Declaration
public Application()
Properties
AccessKey1
Gets or sets the first access key associated with the application. The only value that user can assign to this property is "NEW" to indicate that access key needs to be regenerated.
Declaration
public string AccessKey1 { get; set; }
Property Value
Type | Description |
---|---|
String |
AccessKey1Expiration
Gets the expiration date and time of the first access key.
Declaration
public DateTime? AccessKey1Expiration { get; }
Property Value
Type | Description |
---|---|
Nullable<DateTime> |
AccessKey2
Gets or sets the second access key associated with the application. The only value that user can assign to this property is "NEW" to indicate that access key needs to be regenerated.
Declaration
public string AccessKey2 { get; set; }
Property Value
Type | Description |
---|---|
String |
AccessKey2Expiration
Gets the expiration date and time of the second access key.
Declaration
public DateTime? AccessKey2Expiration { get; }
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 application.
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
SubscriptionId
Gets or sets the identifier of the product Subscription this application is using. This property cannot be updated after the application has been created.
Declaration
public int SubscriptionId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
Equals(Application)
Determines whether the specified application is equal to the current application.
Declaration
public bool Equals(Application other)
Parameters
Type | Name | Description |
---|---|---|
Application | other | The application to compare with the current application. |
Returns
Type | Description |
---|---|
Boolean | True, if applications are equal. False, if applications 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
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. |