Show / Hide Table of Contents

    Class Consumer

    Represents a consumer account registered in a Developer Portal.

    Inheritance
    Object
    DomainObjectBase
    Consumer
    Implements
    IValidator
    IExtensibleDataObject
    IEquatable<Consumer>
    IExtensibleEntity
    Inherited Members
    DomainObjectBase.IsValidElementName(String)
    DomainObjectBase.AreEqual(Nullable<DateTime>, Nullable<DateTime>)
    DomainObjectBase.Equals(DomainObjectBase)
    DomainObjectBase.Id
    DomainObjectBase.Key
    DomainObjectBase.Created
    DomainObjectBase.Updated
    DomainObjectBase.ErrorMessage
    DomainObjectBase.ExtensionData
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    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
    DomainObjectBase.IsMajorObject

    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
    DomainObjectBase.ObjectType

    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
    DomainObjectBase.Equals(Object)

    GetHashCode()

    Returns the hash code for this instance.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    Hash code of the current instance.

    Overrides
    DomainObjectBase.GetHashCode()

    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
    DomainObjectBase.ToString()

    Validate()

    Evaluates the state of this object.

    Declaration
    public override bool Validate()
    Returns
    Type Description
    Boolean

    True if state is valid; otherwise, false.

    Overrides
    DomainObjectBase.Validate()

    Implements

    IValidator
    System.Runtime.Serialization.IExtensibleDataObject
    System.IEquatable<T>
    IExtensibleEntity
    Back to top Nevatech Sentinet 6.5 Online Documentation