Class DiscordApplicationAsset
Represents an asset for an OAuth2 application.
Inherited Members
Namespace: DisCatSharp.Entities
Assembly: DisCatSharp.dll
Syntax
public sealed class DiscordApplicationAsset : DiscordAsset, IEquatable<DiscordApplicationAsset>
Properties
| Improve this Doc View SourceApplication
Gets the application this asset belongs to.
Declaration
public DiscordApplication Application { get; }
Property Value
Type | Description |
---|---|
DiscordApplication |
Name
Gets the asset's name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the asset's type.
Declaration
public ApplicationAssetType Type { get; }
Property Value
Type | Description |
---|---|
ApplicationAssetType |
Url
Gets the Url of this asset.
Declaration
public override Uri Url { get; }
Property Value
Type | Description |
---|---|
System.Uri |
Overrides
Methods
| Improve this Doc View SourceEquals(DiscordApplicationAsset)
Checks whether this DiscordApplicationAsset is equal to another DiscordApplicationAsset.
Declaration
public bool Equals(DiscordApplicationAsset e)
Parameters
Type | Name | Description |
---|---|---|
DiscordApplicationAsset | e | DiscordApplicationAsset to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the DiscordApplicationAsset is equal to this DiscordApplicationAsset. |
Equals(Object)
Checks whether this DiscordApplicationAsset is equal to another object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the object is equal to this DiscordApplicationAsset. |
Overrides
GetHashCode()
Gets the hash code for this DiscordApplication.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The hash code for this DiscordApplication. |
Overrides
Operators
| Improve this Doc View SourceEquality(DiscordApplicationAsset, DiscordApplicationAsset)
Gets whether the two DiscordApplicationAsset objects are equal.
Declaration
public static bool operator ==(DiscordApplicationAsset e1, DiscordApplicationAsset e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordApplicationAsset | e1 | First application asset to compare. |
DiscordApplicationAsset | e2 | Second application asset to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two application assets not equal. |
Inequality(DiscordApplicationAsset, DiscordApplicationAsset)
Gets whether the two DiscordApplicationAsset objects are not equal.
Declaration
public static bool operator !=(DiscordApplicationAsset e1, DiscordApplicationAsset e2)
Parameters
Type | Name | Description |
---|---|---|
DiscordApplicationAsset | e1 | First application asset to compare. |
DiscordApplicationAsset | e2 | Second application asset to compare. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the two application assets are not equal. |