Class ClientMetadata
Client Metadata.
Inheritance
Inherited Members
Namespace: Gee.External.Browsing.Clients
Assembly: Gee.External.Browsing.dll
Syntax
public sealed class ClientMetadata
Constructors
ClientMetadata(String, Int32, Int32, Int32)
Create a Client Metadata.
Declaration
public ClientMetadata(string id, int majorVersion, int minorVersion, int patchVersion)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | A unique identifier identifying the client. |
System.Int32 | majorVersion | The client's major version. |
System.Int32 | minorVersion | The client's minor version. |
System.Int32 | patchVersion | The client's patch version. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if |
System.ArgumentNullException | Thrown if |
System.ArgumentOutOfRangeException | Thrown if |
ClientMetadata(String, Version)
Create a Client Metadata.
Declaration
public ClientMetadata(string id, Version version)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | A unique identifier identifying the client. |
System.Version | version | The client's version. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown if |
System.ArgumentNullException | Thrown if |
Fields
Default
Default Client Metadata.
Declaration
public static readonly ClientMetadata Default
Field Value
Type |
---|
ClientMetadata |
Properties
Id
Get Client's Unique Identifier.
Declaration
public string Id { get; }
Property Value
Type |
---|
System.String |
Remarks
Represents the unique identifier identifying the client.
Version
Get Client's Version.
Declaration
public Version Version { get; }
Property Value
Type |
---|
System.Version |
Remarks
Represents the client's version.
Methods
Equals(Object)
Determine if This Object is Equal to Another Object.
Declaration
public override bool Equals(object object)
Parameters
Type | Name | Description |
---|---|---|
System.Object | object | An object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | A boolean true if this object is equal to |
Overrides
GetHashCode()
Get Object's Hash Code.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The object's hash code. |
Overrides
ToString()
Get Object's String Representation.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The object's string representation. |