-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
66 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System.Collections.Generic; | ||
using ConfigCat.Cli.Models.Api; | ||
|
||
namespace ConfigCat.Cli.Models; | ||
|
||
public class FlagValueJsonOutput | ||
{ | ||
public FlagModel Setting { get; set; } | ||
|
||
public IEnumerable<ValueInEnvironmentJsonOutput> Values { get; set; } | ||
} | ||
|
||
public class ValueInEnvironmentJsonOutput | ||
{ | ||
public string EnvironmentId { get; set; } | ||
|
||
public string EnvironmentName { get; set; } | ||
|
||
public List<PercentageModel> PercentageRules { get; set; } | ||
|
||
public List<TargetingModel> TargetingRules { get; set; } | ||
|
||
public object Value { get; set; } | ||
} | ||
|
||
public class FlagValueV2JsonOutput | ||
{ | ||
public FlagModel Setting { get; set; } | ||
public IEnumerable<ValueV2InEnvironmentJsonOutput> Values { get; set; } | ||
} | ||
|
||
public class ValueV2InEnvironmentJsonOutput | ||
{ | ||
public string EnvironmentId { get; set; } | ||
public string EnvironmentName { get; set; } | ||
public ValueModel DefaultValue { get; set; } | ||
public List<TargetingRuleModel> TargetingRules { get; set; } | ||
public string PercentageEvaluationAttribute { get; set; } | ||
} | ||
|
||
public class ProductJsonOutput : ProductModel | ||
{ | ||
public IEnumerable<EnvironmentModel> Environments { get; set; } | ||
|
||
public IEnumerable<ConfigModel> Configs { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters