Class RESTEnumAttribute
Associates an enum with an external API name and an optional key for parsing substring matches.
Inherited Members
Namespace: Glitch9.IO.Networking.RESTApi
Assembly: Glitch9.IO.dll
Syntax
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
public class RESTEnumAttribute : Attribute
Constructors
| Edit this page View SourceRESTEnumAttribute(string, params string[])
Declaration
public RESTEnumAttribute(string propertyName, params string[] additionalCandidates)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | |
| string[] | additionalCandidates |
Properties
| Edit this page View SourceAdditionalCandidates
An optional partial name for matching purposes.
Declaration
public string[] AdditionalCandidates { get; }
Property Value
| Type | Description |
|---|---|
| string[] |
PropertyName
The name of the field as it appears in the API response.
Declaration
public string PropertyName { get; }
Property Value
| Type | Description |
|---|---|
| string |