Dialogs nullable

This commit is contained in:
Cj
2025-01-08 06:29:57 -05:00
parent c4b2f4b3db
commit ae882e9f7d
25 changed files with 120 additions and 119 deletions
@@ -4,24 +4,24 @@ namespace Core.Models.Eft.Customization;
public class BuyClothingRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "CustomizationBuy";
[JsonPropertyName("Action")]
public string Action { get; set; } = "CustomizationBuy";
[JsonPropertyName("offer")]
public string Offer { get; set; }
[JsonPropertyName("offer")]
public string? Offer { get; set; }
[JsonPropertyName("items")]
public List<PaymentItemForClothing> Items { get; set; }
[JsonPropertyName("items")]
public List<PaymentItemForClothing>? Items { get; set; }
}
public class PaymentItemForClothing
{
[JsonPropertyName("del")]
public bool Del { get; set; }
[JsonPropertyName("del")]
public bool? Del { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("id")]
public string? Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
[JsonPropertyName("count")]
public int? Count { get; set; }
}
@@ -4,21 +4,21 @@ namespace Core.Models.Eft.Customization;
public class CustomizationSetRequest
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "CustomizationSet";
[JsonPropertyName("Action")]
public string Action { get; set; } = "CustomizationSet";
[JsonPropertyName("customizations")]
public List<CustomizationSetOption> Customizations { get; set; }
[JsonPropertyName("customizations")]
public List<CustomizationSetOption>? Customizations { get; set; }
}
public class CustomizationSetOption
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("id")]
public string? Id { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
[JsonPropertyName("type")]
public string? Type { get; set; }
[JsonPropertyName("source")]
public string Source { get; set; }
[JsonPropertyName("source")]
public string? Source { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Customization;
public class GetSuitsResponse
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("suites")]
public List<string> Suites { get; set; }
public List<string>? Suites { get; set; }
}