Class Consumer
Represents a consumer account registered in a Developer Portal.
Inherited Members
Namespace: Nevatech.Vsb.Repository.Entities
Assembly: Nevatech.Vsb.Repository.dll
Syntax
public sealed class Consumer : DomainObjectBase, IValidator, IExtensibleDataObject, IEquatable<Consumer>, IExtensibleEntity
Constructors
Consumer()
Declaration
public Consumer()
Properties
CustomAttributes
Gets collection of custom attribute values. The key corresponds to an attribute type identifier.
Declaration
public CustomAttributeDictionary CustomAttributes { get; }
Property Value
Type | Description |
---|---|
CustomAttributeDictionary |
Description
Gets or sets the consumer description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
IsEnabled
Gets or sets the flag indicating that consumer account is enabled and can be used.
Declaration
public bool IsEnabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
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 consumer.
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
Methods
Equals(Consumer)
Determines whether the specified consumer is equal to the current consumer.
Declaration
public bool Equals(Consumer other)
Parameters
Type | Name | Description |
---|---|---|
Consumer | other | The consumer to compare with the current consumer. |
Returns
Type | Description |
---|---|
Boolean | True, if consumers are equal. False, if consumers 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. |