Class CampaignVariants
CampaignVariants
Inherited Members
Namespace: Unity.Services.Apis.Admin.RemoteConfig
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "CampaignVariants")]
[Preserve]
public class CampaignVariants
Constructors
CampaignVariants(string, int, List<CampaignContentVariant>)
Initializes a new instance of the Campaign
Declaration
[Preserve]
public CampaignVariants(string name = null, int weight = 0, List<CampaignContentVariant> content = null)
Parameters
Type | Name | Description |
---|---|---|
string | name | name. |
int | weight | Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100 . |
List<Campaign |
content | content. |
Properties
Content
Gets or Sets Content
Declaration
[DataMember(Name = "content", EmitDefaultValue = false)]
[Preserve]
public List<CampaignContentVariant> Content { get; set; }
Property Value
Type | Description |
---|---|
List<Campaign |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = false)]
[Preserve]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Weight
Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100
Declaration
[DataMember(Name = "weight", EmitDefaultValue = false)]
[Preserve]
public int Weight { get; set; }
Property Value
Type | Description |
---|---|
int | Conditionally optional. If no variants have a weight then Remote Config will treat each variant as equally distributed. However, if one variant has a weight then all variants must define a weight. If defined, the sum of all variant's weights must equal 100 |