Base implementation of smart deploy for servers, order screen, subscription service
This commit is contained in:
@@ -5,6 +5,12 @@ public class SubscriptionLimit
|
||||
public string Identifier { get; set; } = "";
|
||||
public int Amount { get; set; }
|
||||
public List<LimitOption> Options { get; set; } = new();
|
||||
|
||||
public string? ReadValue(string key)
|
||||
{
|
||||
var d = Options.FirstOrDefault(x => string.Equals(x.Key, key, StringComparison.InvariantCultureIgnoreCase));
|
||||
return d?.Value;
|
||||
}
|
||||
|
||||
public class LimitOption
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user