.NET Format Style Fixes

This commit is contained in:
refringe
2025-06-18 17:09:20 +00:00
committed by Format Bot
parent ca0a7d6345
commit 6e01428b2b
774 changed files with 23507 additions and 40003 deletions
@@ -9,25 +9,13 @@ public record AddOfferRequestData : InventoryBaseActionRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("sellInOnePiece")]
public bool? SellInOnePiece
{
get;
set;
}
public bool? SellInOnePiece { get; set; }
[JsonPropertyName("items")]
public List<string>? Items
{
get;
set;
}
public List<string>? Items { get; set; }
[JsonPropertyName("requirements")]
public List<Requirement>? Requirements
{
get;
set;
}
public List<Requirement>? Requirements { get; set; }
}
public record Requirement
@@ -36,38 +24,18 @@ public record Requirement
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("_tpl")]
public string? Template
{
get;
set;
}
public string? Template { get; set; }
// Can be decimal value
[JsonPropertyName("count")]
public double? Count
{
get;
set;
}
public double? Count { get; set; }
[JsonPropertyName("level")]
public int? Level
{
get;
set;
}
public int? Level { get; set; }
[JsonPropertyName("side")]
public int? Side
{
get;
set;
}
public int? Side { get; set; }
[JsonPropertyName("onlyFunctional")]
public bool? OnlyFunctional
{
get;
set;
}
public bool? OnlyFunctional { get; set; }
}
@@ -9,16 +9,8 @@ public record ExtendOfferRequestData : InventoryBaseActionRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("offerId")]
public string? OfferId
{
get;
set;
}
public string? OfferId { get; set; }
[JsonPropertyName("renewalTime")]
public long? RenewalTime
{
get;
set;
}
public long? RenewalTime { get; set; }
}
@@ -6,9 +6,5 @@ namespace SPTarkov.Server.Core.Models.Eft.Ragfair;
public record GetItemPriceResult : MinMax<double>
{
[JsonPropertyName("avg")]
public double? Avg
{
get;
set;
}
public double? Avg { get; set; }
}
@@ -9,9 +9,5 @@ public record GetMarketPriceRequestData : IRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("templateId")]
public string? TemplateId
{
get;
set;
}
public string? TemplateId { get; set; }
}
@@ -8,30 +8,14 @@ public record GetOffersResult
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("categories")]
public Dictionary<string, int>? Categories
{
get;
set;
}
public Dictionary<string, int>? Categories { get; set; }
[JsonPropertyName("offers")]
public List<RagfairOffer>? Offers
{
get;
set;
}
public List<RagfairOffer>? Offers { get; set; }
[JsonPropertyName("offersCount")]
public int? OffersCount
{
get;
set;
}
public int? OffersCount { get; set; }
[JsonPropertyName("selectedCategory")]
public string? SelectedCategory
{
get;
set;
}
public string? SelectedCategory { get; set; }
}
@@ -8,9 +8,5 @@ public record GetRagfairOfferByIdRequest
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("id")]
public int? Id
{
get;
set;
}
public int? Id { get; set; }
}
@@ -14,168 +14,88 @@ public record RagfairOffer
private string? _root;
[JsonPropertyName("sellResult")]
public List<SellResult>? SellResults
{
get;
set;
}
public List<SellResult>? SellResults { get; set; }
[JsonPropertyName("_id")]
public string? Id
{
get
{
return _id;
}
set
{
_id = string.Intern(value);
}
get { return _id; }
set { _id = string.Intern(value); }
}
[JsonPropertyName("items")]
public List<Item>? Items
{
get;
set;
}
public List<Item>? Items { get; set; }
[JsonPropertyName("requirements")]
public List<OfferRequirement>? Requirements
{
get;
set;
}
public List<OfferRequirement>? Requirements { get; set; }
[JsonPropertyName("root")]
public string? Root
{
get
{
return _root;
}
set
{
_root = string.Intern(value);
}
get { return _root; }
set { _root = string.Intern(value); }
}
[JsonPropertyName("intId")]
public int? InternalId
{
get;
set;
}
public int? InternalId { get; set; }
/// <summary>
/// Handbook price
/// </summary>
[JsonPropertyName("itemsCost")]
public double? ItemsCost
{
get;
set;
}
public double? ItemsCost { get; set; }
/// <summary>
/// Rouble price per item
/// </summary>
[JsonPropertyName("requirementsCost")]
public double? RequirementsCost
{
get;
set;
}
public double? RequirementsCost { get; set; }
[JsonPropertyName("startTime")]
public long? StartTime
{
get;
set;
}
public long? StartTime { get; set; }
[JsonPropertyName("endTime")]
public long? EndTime
{
get;
set;
}
public long? EndTime { get; set; }
/// <summary>
/// True when offer is sold as pack
/// </summary>
[JsonPropertyName("sellInOnePiece")]
public bool? SellInOnePiece
{
get;
set;
}
public bool? SellInOnePiece { get; set; }
/// <summary>
/// Rouble price - same as requirementsCost
/// </summary>
[JsonPropertyName("summaryCost")]
public double? SummaryCost
{
get;
set;
}
public double? SummaryCost { get; set; }
[JsonPropertyName("user")]
public RagfairOfferUser? User
{
get;
set;
}
public RagfairOfferUser? User { get; set; }
/// <summary>
/// Trader only
/// </summary>
[JsonPropertyName("unlimitedCount")]
public bool? UnlimitedCount
{
get;
set;
}
public bool? UnlimitedCount { get; set; }
[JsonPropertyName("loyaltyLevel")]
public int? LoyaltyLevel
{
get;
set;
}
public int? LoyaltyLevel { get; set; }
[JsonPropertyName("buyRestrictionMax")]
public int? BuyRestrictionMax
{
get;
set;
}
public int? BuyRestrictionMax { get; set; }
// Confirmed in client
[JsonPropertyName("buyRestrictionCurrent")]
public int? BuyRestrictionCurrent
{
get;
set;
}
public int? BuyRestrictionCurrent { get; set; }
[JsonPropertyName("locked")]
public bool? Locked
{
get;
set;
}
public bool? Locked { get; set; }
/// <summary>
/// Tightly bound to offer.items[0].upd.stackObjectsCount
/// </summary>
[JsonPropertyName("quantity")]
public int? Quantity
{
get;
set;
}
public int? Quantity { get; set; }
}
public record OfferRequirement
@@ -188,43 +108,21 @@ public record OfferRequirement
[JsonPropertyName("_tpl")]
public string? Template
{
get
{
return _tpl;
}
set
{
_tpl = string.Intern(value);
}
get { return _tpl; }
set { _tpl = string.Intern(value); }
}
[JsonPropertyName("count")]
public double? Count
{
get;
set;
}
public double? Count { get; set; }
[JsonPropertyName("onlyFunctional")]
public bool? OnlyFunctional
{
get;
set;
}
public bool? OnlyFunctional { get; set; }
[JsonPropertyName("level")]
public int? Level
{
get;
set;
}
public int? Level { get; set; }
[JsonPropertyName("side")]
public DogtagExchangeSide? Side
{
get;
set;
}
public DogtagExchangeSide? Side { get; set; }
}
public record RagfairOfferUser
@@ -237,64 +135,30 @@ public record RagfairOfferUser
[JsonPropertyName("id")]
public string? Id
{
get
{
return _id;
}
set
{
_id = string.Intern(value);
}
get { return _id; }
set { _id = string.Intern(value); }
}
[JsonPropertyName("nickname")]
public string? Nickname
{
get;
set;
}
public string? Nickname { get; set; }
[JsonPropertyName("rating")]
public double? Rating
{
get;
set;
}
public double? Rating { get; set; }
[JsonPropertyName("memberType")]
public MemberCategory? MemberType
{
get;
set;
}
public MemberCategory? MemberType { get; set; }
[JsonPropertyName("selectedMemberCategory")]
public MemberCategory? SelectedMemberCategory
{
get;
set;
}
public MemberCategory? SelectedMemberCategory { get; set; }
[JsonPropertyName("avatar")]
public string? Avatar
{
get;
set;
}
public string? Avatar { get; set; }
[JsonPropertyName("isRatingGrowing")]
public bool? IsRatingGrowing
{
get;
set;
}
public bool? IsRatingGrowing { get; set; }
[JsonPropertyName("aid")]
public int? Aid
{
get;
set;
}
public int? Aid { get; set; }
}
public record SellResult
@@ -303,16 +167,8 @@ public record SellResult
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("sellTime")]
public long? SellTime
{
get;
set;
}
public long? SellTime { get; set; }
[JsonPropertyName("amount")]
public int? Amount
{
get;
set;
}
public int? Amount { get; set; }
}
@@ -9,9 +9,5 @@ public record RemoveOfferRequestData : InventoryBaseActionRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("offerId")]
public string? OfferId
{
get;
set;
}
public string? OfferId { get; set; }
}
@@ -10,173 +10,81 @@ public record SearchRequestData : IRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("page")]
public int? Page
{
get;
set;
}
public int? Page { get; set; }
[JsonPropertyName("limit")]
public int? Limit
{
get;
set;
}
public int? Limit { get; set; }
[JsonPropertyName("sortType")]
public RagfairSort? SortType
{
get;
set;
}
public RagfairSort? SortType { get; set; }
[JsonPropertyName("sortDirection")]
public int? SortDirection
{
get;
set;
}
public int? SortDirection { get; set; }
[JsonPropertyName("currency")]
public int? Currency
{
get;
set;
}
public int? Currency { get; set; }
[JsonPropertyName("priceFrom")]
public int? PriceFrom
{
get;
set;
}
public int? PriceFrom { get; set; }
[JsonPropertyName("priceTo")]
public int? PriceTo
{
get;
set;
}
public int? PriceTo { get; set; }
[JsonPropertyName("quantityFrom")]
public int? QuantityFrom
{
get;
set;
}
public int? QuantityFrom { get; set; }
[JsonPropertyName("quantityTo")]
public int? QuantityTo
{
get;
set;
}
public int? QuantityTo { get; set; }
[JsonPropertyName("conditionFrom")]
public int? ConditionFrom
{
get;
set;
}
public int? ConditionFrom { get; set; }
[JsonPropertyName("conditionTo")]
public int? ConditionTo
{
get;
set;
}
public int? ConditionTo { get; set; }
[JsonPropertyName("oneHourExpiration")]
public bool? OneHourExpiration
{
get;
set;
}
public bool? OneHourExpiration { get; set; }
[JsonPropertyName("removeBartering")]
public bool? RemoveBartering
{
get;
set;
}
public bool? RemoveBartering { get; set; }
[JsonPropertyName("offerOwnerType")]
public OfferOwnerType? OfferOwnerType
{
get;
set;
}
public OfferOwnerType? OfferOwnerType { get; set; }
/// <summary>
/// 'Only Operational'
/// </summary>
[JsonPropertyName("onlyFunctional")]
public bool? OnlyFunctional
{
get;
set;
}
public bool? OnlyFunctional { get; set; }
[JsonPropertyName("updateOfferCount")]
public bool? UpdateOfferCount
{
get;
set;
}
public bool? UpdateOfferCount { get; set; }
[JsonPropertyName("handbookId")]
public string? HandbookId
{
get;
set;
}
public string? HandbookId { get; set; }
[JsonPropertyName("linkedSearchId")]
public string? LinkedSearchId
{
get;
set;
}
public string? LinkedSearchId { get; set; }
[JsonPropertyName("neededSearchId")]
public string? NeededSearchId
{
get;
set;
}
public string? NeededSearchId { get; set; }
[JsonPropertyName("buildItems")]
public Dictionary<string, double>? BuildItems
{
get;
set;
}
public Dictionary<string, double>? BuildItems { get; set; }
[JsonPropertyName("buildCount")]
public int? BuildCount
{
get;
set;
}
public int? BuildCount { get; set; }
[JsonPropertyName("tm")]
public int? Tm
{
get;
set;
}
public int? Tm { get; set; }
[JsonPropertyName("reload")]
public int? Reload
{
get;
set;
}
public int? Reload { get; set; }
}
public enum OfferOwnerType
{
ANYOWNERTYPE = 0,
TRADEROWNERTYPE = 1,
PLAYEROWNERTYPE = 2
PLAYEROWNERTYPE = 2,
}
@@ -8,9 +8,5 @@ public record SendRagfairReportRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("offerId")]
public int? OfferId
{
get;
set;
}
public int? OfferId { get; set; }
}
@@ -9,30 +9,14 @@ public record StorePlayerOfferTaxAmountRequestData : IRequestData
public Dictionary<string, object> ExtensionData { get; set; }
[JsonPropertyName("id")]
public string? Id
{
get;
set;
}
public string? Id { get; set; }
[JsonPropertyName("tpl")]
public string? Tpl
{
get;
set;
}
public string? Tpl { get; set; }
[JsonPropertyName("count")]
public int? Count
{
get;
set;
}
public int? Count { get; set; }
[JsonPropertyName("fee")]
public double? Fee
{
get;
set;
}
public double? Fee { get; set; }
}