Class Config
A config object
Inherited Members
Namespace: Unity.Services.Apis.Admin.RemoteConfig
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "Config")]
[Preserve]
public class Config
Constructors
Config(string, string, string, TypeEnum, List<Setting>, DateTime, DateTime)
Initializes a new instance of the Config class.
Declaration
[Preserve]
public Config(string id = null, string projectId = null, string environmentId = null, Config.TypeEnum type = (Config.TypeEnum)0, List<Setting> value = null, DateTime createdAt = default, DateTime updatedAt = default)
Parameters
Type | Name | Description |
---|---|---|
string | id | id. |
string | projectId | projectId. |
string | environmentId | environmentId (required). |
Config.Type |
type | We currently only support one config type. (required). |
List<Setting> | value | Array of |
Date |
createdAt | createdAt. |
Date |
updatedAt | updatedAt. |
Properties
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", EmitDefaultValue = false)]
[Preserve]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
Date |
EnvironmentId
Gets or Sets EnvironmentId
Declaration
[DataMember(Name = "environmentId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string EnvironmentId { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", EmitDefaultValue = false)]
[Preserve]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string |
ProjectId
Gets or Sets ProjectId
Declaration
[DataMember(Name = "projectId", EmitDefaultValue = false)]
[Preserve]
public string ProjectId { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
We currently only support one config type.
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public Config.TypeEnum Type { get; set; }
Property Value
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", EmitDefaultValue = false)]
[Preserve]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
Date |
Value
Array of Setting
objects that represent the default values in your game.
Declaration
[DataMember(Name = "value", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<Setting> Value { get; set; }