Class Setting
Each Setting consists of a Key, Type, and Value: - key
the name of the setting - type
C# variable data type of the setting value - value
the value for this setting
Implements
Inherited Members
Namespace: Unity.Services.Apis.Admin.RemoteConfig
Assembly: Unity.Services.Apis.dll
Syntax
[JsonConverter(typeof(SettingJsonConverter))]
[DataContract(Name = "Setting")]
[Preserve]
public class Setting : AbstractOpenAPISchema, IEquatable<Setting>
Constructors
Setting(BoolSetting)
Initializes a new instance of the Setting class
with the Bool
Declaration
[Preserve]
public Setting(BoolSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
Bool |
actualInstance | An instance of BoolSetting. |
Setting(FloatSetting)
Initializes a new instance of the Setting class
with the Float
Declaration
[Preserve]
public Setting(FloatSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
Float |
actualInstance | An instance of FloatSetting. |
Setting(IntSetting)
Initializes a new instance of the Setting class
with the Int
Declaration
[Preserve]
public Setting(IntSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
Int |
actualInstance | An instance of IntSetting. |
Setting(JsonSetting)
Initializes a new instance of the Setting class
with the Json
Declaration
[Preserve]
public Setting(JsonSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
Json |
actualInstance | An instance of JsonSetting. |
Setting(LongSetting)
Initializes a new instance of the Setting class
with the Long
Declaration
[Preserve]
public Setting(LongSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
Long |
actualInstance | An instance of LongSetting. |
Setting(StringSetting)
Initializes a new instance of the Setting class
with the String
Declaration
[Preserve]
public Setting(StringSetting actualInstance)
Parameters
Type | Name | Description |
---|---|---|
String |
actualInstance | An instance of StringSetting. |
Properties
ActualInstance
Gets or Sets ActualInstance
Declaration
public override object ActualInstance { get; set; }
Property Value
Type | Description |
---|---|
object |
Overrides
Methods
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
Equals(Setting)
Returns true if Setting instances are equal
Declaration
public bool Equals(Setting input)
Parameters
Type | Name | Description |
---|---|---|
Setting | input | Instance of Setting to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
FromJson(string)
Converts the JSON string into an instance of Setting
Declaration
public static Setting FromJson(string jsonString)
Parameters
Type | Name | Description |
---|---|---|
string | jsonString | JSON string |
Returns
Type | Description |
---|---|
Setting | An instance of Setting |
GetBoolSetting()
Get the actual instance of BoolSetting
. If the actual instance is not BoolSetting
,
the InvalidClassException will be thrown
Declaration
public BoolSetting GetBoolSetting()
Returns
Type | Description |
---|---|
Bool |
An instance of BoolSetting |
GetFloatSetting()
Get the actual instance of FloatSetting
. If the actual instance is not FloatSetting
,
the InvalidClassException will be thrown
Declaration
public FloatSetting GetFloatSetting()
Returns
Type | Description |
---|---|
Float |
An instance of FloatSetting |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
GetIntSetting()
Get the actual instance of IntSetting
. If the actual instance is not IntSetting
,
the InvalidClassException will be thrown
Declaration
public IntSetting GetIntSetting()
Returns
Type | Description |
---|---|
Int |
An instance of IntSetting |
GetJsonSetting()
Get the actual instance of JsonSetting
. If the actual instance is not JsonSetting
,
the InvalidClassException will be thrown
Declaration
public JsonSetting GetJsonSetting()
Returns
Type | Description |
---|---|
Json |
An instance of JsonSetting |
GetLongSetting()
Get the actual instance of LongSetting
. If the actual instance is not LongSetting
,
the InvalidClassException will be thrown
Declaration
public LongSetting GetLongSetting()
Returns
Type | Description |
---|---|
Long |
An instance of LongSetting |
GetStringSetting()
Get the actual instance of StringSetting
. If the actual instance is not StringSetting
,
the InvalidClassException will be thrown
Declaration
public StringSetting GetStringSetting()
Returns
Type | Description |
---|---|
String |
An instance of StringSetting |
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |