docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    object
    AbstractOpenAPISchema
    Setting
    Implements
    IEquatable<Setting>
    Inherited Members
    AbstractOpenAPISchema.IsNullable
    AbstractOpenAPISchema.SchemaType
    AbstractOpenAPISchema.SerializerSettings
    AbstractOpenAPISchema.AdditionalPropertiesSerializerSettings
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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 BoolSetting class

    Declaration
    [Preserve]
    public Setting(BoolSetting actualInstance)
    Parameters
    Type Name Description
    BoolSetting actualInstance

    An instance of BoolSetting.

    Setting(FloatSetting)

    Initializes a new instance of the Setting class with the FloatSetting class

    Declaration
    [Preserve]
    public Setting(FloatSetting actualInstance)
    Parameters
    Type Name Description
    FloatSetting actualInstance

    An instance of FloatSetting.

    Setting(IntSetting)

    Initializes a new instance of the Setting class with the IntSetting class

    Declaration
    [Preserve]
    public Setting(IntSetting actualInstance)
    Parameters
    Type Name Description
    IntSetting actualInstance

    An instance of IntSetting.

    Setting(JsonSetting)

    Initializes a new instance of the Setting class with the JsonSetting class

    Declaration
    [Preserve]
    public Setting(JsonSetting actualInstance)
    Parameters
    Type Name Description
    JsonSetting actualInstance

    An instance of JsonSetting.

    Setting(LongSetting)

    Initializes a new instance of the Setting class with the LongSetting class

    Declaration
    [Preserve]
    public Setting(LongSetting actualInstance)
    Parameters
    Type Name Description
    LongSetting actualInstance

    An instance of LongSetting.

    Setting(StringSetting)

    Initializes a new instance of the Setting class with the StringSetting class

    Declaration
    [Preserve]
    public Setting(StringSetting actualInstance)
    Parameters
    Type Name Description
    StringSetting actualInstance

    An instance of StringSetting.

    Properties

    ActualInstance

    Gets or Sets ActualInstance

    Declaration
    public override object ActualInstance { get; set; }
    Property Value
    Type Description
    object
    Overrides
    AbstractOpenAPISchema.ActualInstance

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

    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
    BoolSetting

    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
    FloatSetting

    An instance of FloatSetting

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    object.GetHashCode()

    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
    IntSetting

    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
    JsonSetting

    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
    LongSetting

    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
    StringSetting

    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
    AbstractOpenAPISchema.ToJson()

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IEquatable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)