diff --git a/Core/Models/Common/MinMax.cs b/Core/Models/Common/MinMax.cs index cc0dd6bb..1ab1487f 100644 --- a/Core/Models/Common/MinMax.cs +++ b/Core/Models/Common/MinMax.cs @@ -2,7 +2,7 @@ namespace Core.Models.Common; -public class MinMax +public record MinMax { [JsonPropertyName("type")] public string? Type { get; set; } diff --git a/Core/Models/Eft/Bot/GenerateBotsRequestData.cs b/Core/Models/Eft/Bot/GenerateBotsRequestData.cs index b9af521e..1acd439f 100644 --- a/Core/Models/Eft/Bot/GenerateBotsRequestData.cs +++ b/Core/Models/Eft/Bot/GenerateBotsRequestData.cs @@ -3,13 +3,13 @@ using Core.Models.Utils; namespace Core.Models.Eft.Bot; -public class GenerateBotsRequestData : IRequestData +public record GenerateBotsRequestData : IRequestData { [JsonPropertyName("conditions")] public List? Conditions { get; set; } } -public class GenerateCondition +public record GenerateCondition { /// /// e.g. assault/pmcBot/bossKilla diff --git a/Core/Models/Eft/Bot/RandomisedBotLevelResult.cs b/Core/Models/Eft/Bot/RandomisedBotLevelResult.cs index 82bce567..4ff26ec4 100644 --- a/Core/Models/Eft/Bot/RandomisedBotLevelResult.cs +++ b/Core/Models/Eft/Bot/RandomisedBotLevelResult.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Bot; -public class RandomisedBotLevelResult +public record RandomisedBotLevelResult { [JsonPropertyName("level")] public int? Level { get; set; } diff --git a/Core/Models/Eft/Builds/SetMagazineRequest.cs b/Core/Models/Eft/Builds/SetMagazineRequest.cs index 0c3c836a..b88eac3c 100644 --- a/Core/Models/Eft/Builds/SetMagazineRequest.cs +++ b/Core/Models/Eft/Builds/SetMagazineRequest.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Builds; -public class SetMagazineRequest : IRequestData +public record SetMagazineRequest : IRequestData { [JsonPropertyName("Id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Common/EmptyRequestData.cs b/Core/Models/Eft/Common/EmptyRequestData.cs index 17da8767..ce252e9e 100644 --- a/Core/Models/Eft/Common/EmptyRequestData.cs +++ b/Core/Models/Eft/Common/EmptyRequestData.cs @@ -2,6 +2,6 @@ namespace Core.Models.Eft.Common; -public class EmptyRequestData : IRequestData +public record EmptyRequestData : IRequestData { } diff --git a/Core/Models/Eft/Common/Globals.cs b/Core/Models/Eft/Common/Globals.cs index 4558495f..1185fc2d 100644 --- a/Core/Models/Eft/Common/Globals.cs +++ b/Core/Models/Eft/Common/Globals.cs @@ -5,7 +5,7 @@ namespace Core.Models.Eft.Common; using System.Text.Json.Serialization; -public class Globals +public record Globals { [JsonPropertyName("config")] @@ -24,7 +24,7 @@ public class Globals public Dictionary? ItemPresets { get; set; } } -public class PlayerSettings +public record PlayerSettings { [JsonPropertyName("BaseMaxMovementRolloff")] public double? BaseMaxMovementRolloff { get; set; } @@ -48,7 +48,7 @@ public class PlayerSettings public double? OutdoorRolloffMultiplier { get; set; } } -public class MovementRolloffMultiplier +public record MovementRolloffMultiplier { [JsonPropertyName("MovementState")] public string? MovementState { get; set; } @@ -57,7 +57,7 @@ public class MovementRolloffMultiplier public double? RolloffMultiplier { get; set; } } -public class RadioBroadcastSettings +public record RadioBroadcastSettings { [JsonPropertyName("EnabledBroadcast")] public bool? EnabledBroadcast { get; set; } @@ -66,7 +66,7 @@ public class RadioBroadcastSettings public List? RadioStations { get; set; } } -public class RadioStation +public record RadioStation { [JsonPropertyName("Enabled")] public bool? Enabled { get; set; } @@ -75,7 +75,7 @@ public class RadioStation public string? Station { get; set; } } -public class LocationInfection +public record LocationInfection { [JsonPropertyName("Interchange")] public double? Interchange { get; set; } @@ -108,7 +108,7 @@ public class LocationInfection public double? Laboratory { get; set; } } -public class ArtilleryShelling +public record ArtilleryShelling { [JsonPropertyName("ArtilleryMapsConfigs")] public Dictionary? ArtilleryMapsConfigs { get; set; } @@ -120,7 +120,7 @@ public class ArtilleryShelling public double? MaxCalledShellingCount { get; set; } } -public class ArtilleryMapSettings +public record ArtilleryMapSettings { [JsonPropertyName("PlanedShellingOn")] public bool? PlanedShellingOn { get; set; } @@ -156,7 +156,7 @@ public class ArtilleryMapSettings public XYZ? PauseBetweenShellings { get; set; } } -public class ShellingZone +public record ShellingZone { [JsonPropertyName("ID")] public double? ID { get; set; } @@ -210,13 +210,13 @@ public class ShellingZone public bool? IsActive { get; set; } } -public class AlarmStage +public record AlarmStage { [JsonPropertyName("Value")] public Position? Value { get; set; } } -public class Brigade +public record Brigade { [JsonPropertyName("ID")] public double? Id { get; set; } @@ -225,13 +225,13 @@ public class Brigade public List? ArtilleryGuns { get; set; } } -public class ArtilleryGun +public record ArtilleryGun { [JsonPropertyName("Position")] public XYZ? Position { get; set; } } -public class ArtilleryShellingAirDropSettings +public record ArtilleryShellingAirDropSettings { [JsonPropertyName("UseAirDrop")] public bool? UseAirDrop { get; set; } @@ -246,7 +246,7 @@ public class ArtilleryShellingAirDropSettings public string? LootTemplateId { get; set; } } -public class ProjectileExplosionParams +public record ProjectileExplosionParams { [JsonPropertyName("Blindness")] public XYZ? Blindness { get; set; } @@ -291,7 +291,7 @@ public class ProjectileExplosionParams public float? DeadlyDistance { get; set; } } -public class Config +public record Config { [JsonPropertyName("ArtilleryShelling")] public ArtilleryShelling? ArtilleryShelling { get; set; } @@ -608,18 +608,18 @@ public class Config public PveSettings? PveSettings { get; set; } } -public class PveSettings +public record PveSettings { public List? AvailableVersions { get; set; } public bool? ModeEnabled { get; set; } } -public class CoopSettings +public record CoopSettings { public List? AvailableVersions { get; set; } } -public class RunddansSettings +public record RunddansSettings { [JsonPropertyName("accessKeys")] public List? AccessKeys { get; set; } @@ -676,13 +676,13 @@ public class RunddansSettings public List? SleighLocations { get; set; } } -public class SeasonActivity +public record SeasonActivity { [JsonPropertyName("InfectionHalloween")] public SeasonActivityHalloween? InfectionHalloween { get; set; } } -public class SeasonActivityHalloween +public record SeasonActivityHalloween { [JsonPropertyName("DisplayUIEnabled")] public bool? DisplayUIEnabled { get; set; } @@ -694,17 +694,17 @@ public class SeasonActivityHalloween public double? ZombieBleedMul { get; set; } } -public class EnvironmentSetting2 +public record EnvironmentSetting2 { public EnvironmentUIData? EnvironmentUIData { get; set; } } -public class EnvironmentUIData +public record EnvironmentUIData { public string[] TheUnheardEditionEnvironmentUiType { get; set; } } -public class BodyPartColliderSettings +public record BodyPartColliderSettings { public BodyPartColliderPart? BackHead { get; set; } public BodyPartColliderPart? Ears { get; set; } @@ -734,7 +734,7 @@ public class BodyPartColliderSettings public BodyPartColliderPart? SpineTop { get; set; } } -public class BodyPartColliderPart +public record BodyPartColliderPart { [JsonPropertyName("PenetrationChance")] public double? PenetrationChance { get; set; } @@ -746,7 +746,7 @@ public class BodyPartColliderPart public double? PenetrationLevel { get; set; } } -public class WeaponFastDrawSettings +public record WeaponFastDrawSettings { [JsonPropertyName("HandShakeCurveFrequency")] public double? HandShakeCurveFrequency { get; set; } @@ -773,7 +773,7 @@ public class WeaponFastDrawSettings public double? WeaponPistolFastSwitchMinSpeedMult { get; set; } } -public class EventSettings +public record EventSettings { [JsonPropertyName("EventActive")] public bool? EventActive { get; set; } @@ -800,7 +800,7 @@ public class EventSettings public double? WeatherChangeTime { get; set; } } -public class EventWeather +public record EventWeather { [JsonPropertyName("Cloudness")] public double? Cloudness { get; set; } @@ -830,7 +830,7 @@ public class EventWeather public double? WindDirection { get; set; } } -public class TransitSettings +public record TransitSettings { [JsonPropertyName("BearPriceMod")] public double? BearPriceMod { get; set; } @@ -872,7 +872,7 @@ public class TransitSettings public bool? Active { get; set; } } -public class TripwiresSettings +public record TripwiresSettings { [JsonPropertyName("CollisionCapsuleCheckCoef")] public double? CollisionCapsuleCheckCoef { get; set; } @@ -917,7 +917,7 @@ public class TripwiresSettings public double? ShotSqrDistance { get; set; } } -public class MountingSettings +public record MountingSettings { [JsonPropertyName("MovementSettings")] public MountingMovementSettings? MovementSettings { get; set; } @@ -926,7 +926,7 @@ public class MountingSettings public MountingPointDetectionSettings? PointDetectionSettings { get; set; } } -public class MountingMovementSettings +public record MountingMovementSettings { [JsonPropertyName("ApproachTime")] public double? ApproachTime { get; set; } @@ -974,7 +974,7 @@ public class MountingMovementSettings public double? SensitivityMultiplier { get; set; } } -public class MountingPointDetectionSettings +public record MountingPointDetectionSettings { [JsonPropertyName("CheckHorizontalSecondaryOffset")] public double? CheckHorizontalSecondaryOffset { get; set; } @@ -1040,13 +1040,13 @@ public class MountingPointDetectionSettings public double? VerticalGridStepsAmount { get; set; } } -public class GraphicSettings +public record GraphicSettings { [JsonPropertyName("ExperimentalFogInCity")] public bool? ExperimentalFogInCity { get; set; } } -public class BufferZone +public record BufferZone { [JsonPropertyName("CustomerAccessTime")] public double? CustomerAccessTime { get; set; } @@ -1058,13 +1058,13 @@ public class BufferZone public double? CustomerKickNotifTime { get; set; } } -public class ItemsCommonSettings +public record ItemsCommonSettings { [JsonPropertyName("ItemRemoveAfterInterruptionTime")] public double? ItemRemoveAfterInterruptionTime { get; set; } } -public class TradingSettings +public record TradingSettings { [JsonPropertyName("BuyRestrictionMaxBonus")] public Dictionary? BuyRestrictionMaxBonus { get; set; } @@ -1073,13 +1073,13 @@ public class TradingSettings public BuyoutRestrictions? BuyoutRestrictions { get; set; } } -public class BuyRestrictionMaxBonus +public record BuyRestrictionMaxBonus { [JsonPropertyName("multiplier")] public double? Multiplier { get; set; } } -public class BuyoutRestrictions +public record BuyoutRestrictions { [JsonPropertyName("MinDurability")] public double? MinDurability { get; set; } @@ -1091,7 +1091,7 @@ public class BuyoutRestrictions public double? MinMedsResource { get; set; } } -public class Content +public record Content { [JsonPropertyName("ip")] public string? Ip { get; set; } @@ -1103,7 +1103,7 @@ public class Content public string? Root { get; set; } } -public class Exp +public record Exp { [JsonPropertyName("heal")] public Heal? Heal { get; set; } @@ -1133,7 +1133,7 @@ public class Exp public double? TriggerMult { get; set; } } -public class Heal +public record Heal { [JsonPropertyName("expForHeal")] public double? ExpForHeal { get; set; } @@ -1145,7 +1145,7 @@ public class Heal public double? ExpForEnergy { get; set; } } -public class MatchEnd +public record MatchEnd { [JsonPropertyName("README")] public string? ReadMe { get; set; } @@ -1187,7 +1187,7 @@ public class MatchEnd public List>? TransitMultiplier { get; set; } } -public class Kill +public record Kill { [JsonPropertyName("combo")] public Combo[] Combos { get; set; } @@ -1223,13 +1223,13 @@ public class Kill public double? PmcHeadShotMultiplier { get; set; } } -public class Combo +public record Combo { [JsonPropertyName("percent")] public double? Percentage { get; set; } } -public class Level +public record Level { [JsonPropertyName("exp_table")] public ExpTable[] ExperienceTable { get; set; } @@ -1250,31 +1250,31 @@ public class Level public double? Mastering2 { get; set; } } -public class ExpTable +public record ExpTable { [JsonPropertyName("exp")] public int? Experience { get; set; } } -public class LootAttempt +public record LootAttempt { [JsonPropertyName("k_exp")] public double? ExperiencePoints { get; set; } } -public class Armor +public record Armor { [JsonPropertyName("class")] public List? Classes { get; set; } } -public class Class +public record Class { [JsonPropertyName("resistance")] public double? Resistance { get; set; } } -public class Mastering +public record Mastering { [JsonPropertyName("Name")] public string? Name { get; set; } @@ -1289,7 +1289,7 @@ public class Mastering public double? Level3 { get; set; } } -public class Customization +public record Customization { [JsonPropertyName("SavageHead")] public Dictionary? Head { get; set; } @@ -1307,7 +1307,7 @@ public class Customization public BodyParts? BodyParts { get; set; } } -public class WildHead +public record WildHead { [JsonPropertyName("head")] public string? Head { get; set; } @@ -1319,7 +1319,7 @@ public class WildHead public bool? NotRandom { get; set; } } -public class WildBody +public record WildBody { [JsonPropertyName("body")] public string? Body { get; set; } @@ -1330,7 +1330,7 @@ public class WildBody [JsonPropertyName("isNotRandom")] public bool? IsNotRandom { get; set; } } -public class WildFeet +public record WildFeet { [JsonPropertyName("feet")] public string? Feet { get; set; } @@ -1342,7 +1342,7 @@ public class WildFeet public bool? NotRandom { get; set; } } -public class CustomizationVoice +public record CustomizationVoice { [JsonPropertyName("voice")] public string? Voice { get; set; } @@ -1354,7 +1354,7 @@ public class CustomizationVoice public bool? IsNotRandom { get; set; } } -public class BodyParts +public record BodyParts { public string? Head { get; set; } public string? Body { get; set; } @@ -1362,7 +1362,7 @@ public class BodyParts public string? Hands { get; set; } } -public class AirdropGlobalSettings +public record AirdropGlobalSettings { public string? AirdropViewType { get; set; } public double? ParachuteEndOpenHeight { get; set; } @@ -1377,7 +1377,7 @@ public class AirdropGlobalSettings public double? SmokeActivateHeight { get; set; } } -public class KarmaCalculationSettings +public record KarmaCalculationSettings { [JsonPropertyName("defaultPveKarmaValue")] public double? DefaultPveKarmaValue { get; set; } @@ -1398,7 +1398,7 @@ public class KarmaCalculationSettings public double? MinSurvivedRaidCount { get; set; } } -public class ArenaEftTransferSettings +public record ArenaEftTransferSettings { public double? ArenaManagerReputationTaxMultiplier { get; set; } public double? CharismaTaxMultiplier { get; set; } @@ -1408,7 +1408,7 @@ public class ArenaEftTransferSettings public Dictionary? TransferLimitsSettings { get; set; } } -public class ArmorMaterials +public record ArmorMaterials { [JsonPropertyName("UHMWPE")] public ArmorType? UHMWPE { get; set; } @@ -1435,7 +1435,7 @@ public class ArmorMaterials public ArmorType? Glass { get; set; } } -public class ArmorType +public record ArmorType { [JsonPropertyName("Destructibility")] public double? Destructibility { get; set; } @@ -1456,7 +1456,7 @@ public class ArmorType public double? MaxRepairKitDegradation { get; set; } } -public class Health +public record Health { [JsonPropertyName("Falling")] public Falling? Falling { get; set; } @@ -1471,7 +1471,7 @@ public class Health public ProfileHealthSettings? ProfileHealthSettings { get; set; } } -public class Falling +public record Falling { [JsonPropertyName("DamagePerMeter")] public double? DamagePerMeter { get; set; } @@ -1480,7 +1480,7 @@ public class Falling public double? SafeHeight { get; set; } } -public class Effects +public record Effects { [JsonPropertyName("Existence")] public Existence? Existence { get; set; } @@ -1567,7 +1567,7 @@ public class Effects public ZombieInfection? ZombieInfection { get; set; } } -public class ZombieInfection +public record ZombieInfection { [JsonPropertyName("Dehydration")] public double? Dehydration { get; set; } @@ -1581,7 +1581,7 @@ public class ZombieInfection public double? CumulativeTime { get; set; } } -public class Existence +public record Existence { [JsonPropertyName("EnergyLoopTime")] public double? EnergyLoopTime { get; set; } @@ -1602,7 +1602,7 @@ public class Existence public double? DestroyedStomachHydrationTimeFactor { get; set; } } -public class Dehydration +public record Dehydration { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1626,7 +1626,7 @@ public class Dehydration public double? StrongDehydrationLoopTime { get; set; } } -public class BreakPart +public record BreakPart { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1656,19 +1656,19 @@ public class BreakPart public Probability? FallingProbability { get; set; } } -public class Contusion +public record Contusion { [JsonPropertyName("Dummy")] public double? Dummy { get; set; } } -public class Disorientation +public record Disorientation { [JsonPropertyName("Dummy")] public double? Dummy { get; set; } } -public class Exhaustion +public record Exhaustion { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1683,7 +1683,7 @@ public class Exhaustion public double? DamageLoopTime { get; set; } } -public class LowEdgeHealth +public record LowEdgeHealth { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1695,7 +1695,7 @@ public class LowEdgeHealth public double? StartCommonHealth { get; set; } } -public class RadExposure +public record RadExposure { [JsonPropertyName("Damage")] public double? Damage { get; set; } @@ -1704,13 +1704,13 @@ public class RadExposure public double? DamageLoopTime { get; set; } } -public class Stun +public record Stun { [JsonPropertyName("Dummy")] public double? Dummy { get; set; } } -public class Intoxication +public record Intoxication { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1740,7 +1740,7 @@ public class Intoxication public double? RemovePrice { get; set; } } -public class Regeneration +public record Regeneration { [JsonPropertyName("LoopTime")] public double? LoopTime { get; set; } @@ -1761,7 +1761,7 @@ public class Regeneration public Influences? Influences { get; set; } } -public class BodyHealth +public record BodyHealth { [JsonPropertyName("Head")] public BodyHealthValue? Head { get; set; } @@ -1785,13 +1785,13 @@ public class BodyHealth public BodyHealthValue? RightLeg { get; set; } } -public class BodyHealthValue +public record BodyHealthValue { [JsonPropertyName("Value")] public double? Value { get; set; } } -public class Influences +public record Influences { [JsonPropertyName("LightBleeding")] public Influence? LightBleeding { get; set; } @@ -1809,7 +1809,7 @@ public class Influences public Influence? Intoxication { get; set; } } -public class Influence +public record Influence { [JsonPropertyName("HealthSlowDownPercentage")] public double? HealthSlowDownPercentage { get; set; } @@ -1821,7 +1821,7 @@ public class Influence public double? HydrationSlowDownPercentage { get; set; } } -public class Wound +public record Wound { [JsonPropertyName("WorkingTime")] public double? WorkingTime { get; set; } @@ -1833,7 +1833,7 @@ public class Wound public double? ThresholdMax { get; set; } } -public class Berserk +public record Berserk { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1845,13 +1845,13 @@ public class Berserk public double? DefaultResidueTime { get; set; } } -public class Flash +public record Flash { [JsonPropertyName("Dummy")] public double? Dummy { get; set; } } -public class MedEffect +public record MedEffect { [JsonPropertyName("LoopTime")] public double? LoopTime { get; set; } @@ -1878,7 +1878,7 @@ public class MedEffect public double? StimulatorStartDelay { get; set; } } -public class Pain +public record Pain { [JsonPropertyName("TremorDelay")] public double? TremorDelay { get; set; } @@ -1887,17 +1887,17 @@ public class Pain public double? HealExperience { get; set; } } -public class PainKiller +public record PainKiller { public double? Dummy { get; set; } } -public class SandingScreen +public record SandingScreen { public double? Dummy { get; set; } } -public class MusclePainEffect +public record MusclePainEffect { public double? GymEffectivity { get; set; } public double? OfflineDurationMax { get; set; } @@ -1905,13 +1905,13 @@ public class MusclePainEffect public double? TraumaChance { get; set; } } -public class Stimulator +public record Stimulator { public double? BuffLoopTime { get; set; } public Dictionary>? Buffs { get; set; } } -public class Buff +public record Buff { [JsonPropertyName("BuffType")] public string? BuffType { get; set; } @@ -1937,7 +1937,7 @@ public class Buff public List? AppliesTo { get; set; } } -public class Tremor +public record Tremor { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1946,7 +1946,7 @@ public class Tremor public double? DefaultResidueTime { get; set; } } -public class ChronicStaminaFatigue +public record ChronicStaminaFatigue { [JsonPropertyName("EnergyRate")] public double? EnergyRate { get; set; } @@ -1961,7 +1961,7 @@ public class ChronicStaminaFatigue public double? EnergyRatePerStack { get; set; } } -public class Fracture +public record Fracture { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -1991,7 +1991,7 @@ public class Fracture public Probability? FallingProbability { get; set; } } -public class HeavyBleeding +public record HeavyBleeding { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -2042,7 +2042,7 @@ public class HeavyBleeding public Probability? Probability { get; set; } } -public class Probability +public record Probability { [JsonPropertyName("FunctionType")] public string? FunctionType { get; set; } @@ -2057,7 +2057,7 @@ public class Probability public double? Threshold { get; set; } } -public class LightBleeding +public record LightBleeding { [JsonPropertyName("DefaultDelay")] public double? DefaultDelay { get; set; } @@ -2108,7 +2108,7 @@ public class LightBleeding public Probability? Probability { get; set; } } -public class BodyTemperature +public record BodyTemperature { [JsonPropertyName("DefaultBuildUpTime")] public double? DefaultBuildUpTime { get; set; } @@ -2120,7 +2120,7 @@ public class BodyTemperature public double? LoopTime { get; set; } } -public class HealPrice +public record HealPrice { [JsonPropertyName("HealthPointPrice")] public double? HealthPointPrice { get; set; } @@ -2138,7 +2138,7 @@ public class HealPrice public double? TrialRaids { get; set; } } -public class ProfileHealthSettings +public record ProfileHealthSettings { [JsonPropertyName("BodyPartsSettings")] public BodyPartsSettings? BodyPartsSettings { get; set; } @@ -2150,7 +2150,7 @@ public class ProfileHealthSettings public string? DefaultStimulatorBuff { get; set; } } -public class BodyPartsSettings +public record BodyPartsSettings { [JsonPropertyName("Head")] public BodyPartsSetting? Head { get; set; } @@ -2174,7 +2174,7 @@ public class BodyPartsSettings public BodyPartsSetting? RightLeg { get; set; } } -public class BodyPartsSetting +public record BodyPartsSetting { [JsonPropertyName("Minimum")] public double? Minimum { get; set; } @@ -2192,7 +2192,7 @@ public class BodyPartsSetting public float? OverDamageReceivedMultiplier { get; set; } } -public class HealthFactorsSettings +public record HealthFactorsSettings { [JsonPropertyName("Energy")] public HealthFactorSetting? Energy { get; set; } @@ -2210,7 +2210,7 @@ public class HealthFactorsSettings public HealthFactorSetting? Radiation { get; set; } } -public class HealthFactorSetting +public record HealthFactorSetting { [JsonPropertyName("Minimum")] public double? Minimum { get; set; } @@ -2222,7 +2222,7 @@ public class HealthFactorSetting public double? Default { get; set; } } -public class Rating +public record Rating { [JsonPropertyName("levelRequired")] public double? LevelRequired { get; set; } @@ -2234,7 +2234,7 @@ public class Rating public Categories? Categories { get; set; } } -public class Categories +public record Categories { [JsonPropertyName("experience")] public bool? Experience { get; set; } @@ -2267,7 +2267,7 @@ public class Categories public bool? RagFairStanding { get; set; } } -public class Tournament +public record Tournament { [JsonPropertyName("categories")] public TournamentCategories? Categories { get; set; } @@ -2279,13 +2279,13 @@ public class Tournament public double? LevelRequired { get; set; } } -public class TournamentCategories +public record TournamentCategories { [JsonPropertyName("dogtags")] public bool? Dogtags { get; set; } } -public class RagFair +public record RagFair { [JsonPropertyName("enabled")] public bool? Enabled { get; set; } @@ -2399,7 +2399,7 @@ public class RagFair public double? SellInOnePiece { get; set; } } -public class ItemGlobalRestrictions +public record ItemGlobalRestrictions { [JsonPropertyName("MaxFlea")] public double? MaxFlea { get; set; } @@ -2411,7 +2411,7 @@ public class ItemGlobalRestrictions public string? TemplateId { get; set; } } -public class MaxActiveOfferCount +public record MaxActiveOfferCount { [JsonPropertyName("from")] public double? From { get; set; } @@ -2426,7 +2426,7 @@ public class MaxActiveOfferCount public double? CountForSpecialEditions { get; set; } } -public class MaxSumForRarity +public record MaxSumForRarity { [JsonPropertyName("Common")] public RarityMaxSum? Common { get; set; } @@ -2441,19 +2441,19 @@ public class MaxSumForRarity public RarityMaxSum? NotExist { get; set; } } -public class RarityMaxSum +public record RarityMaxSum { [JsonPropertyName("value")] public double? Value { get; set; } } -public class Handbook +public record Handbook { [JsonPropertyName("defaultCategory")] public string? DefaultCategory { get; set; } } -public class Stamina +public record Stamina { [JsonPropertyName("Capacity")] public double? Capacity { get; set; } @@ -2609,7 +2609,7 @@ public class Stamina public XYZ? VaultOneHandConsumption { get; set; } } -public class StaminaRestoration +public record StaminaRestoration { [JsonPropertyName("LowerLeftPoint")] public double? LowerLeftPoint { get; set; } @@ -2630,7 +2630,7 @@ public class StaminaRestoration public double? ZeroValue { get; set; } } -public class StaminaDrain +public record StaminaDrain { [JsonPropertyName("LowerLeftPoint")] public double? LowerLeftPoint { get; set; } @@ -2651,13 +2651,13 @@ public class StaminaDrain public double? ZeroValue { get; set; } } -public class RequirementReferences +public record RequirementReferences { [JsonPropertyName("Alpinist")] public List? Alpinists { get; set; } } -public class Alpinist +public record Alpinist { [JsonPropertyName("Requirement")] public string? Requirement { get; set; } @@ -2675,7 +2675,7 @@ public class Alpinist public string? RequirementTip { get; set; } } -public class RestrictionsInRaid +public record RestrictionsInRaid { [JsonPropertyName("MaxInLobby")] public double? MaxInLobby { get; set; } @@ -2687,7 +2687,7 @@ public class RestrictionsInRaid public string? TemplateId { get; set; } } -public class FavoriteItemsSettings +public record FavoriteItemsSettings { [JsonPropertyName("WeaponStandMaxItemsCount")] public double? WeaponStandMaxItemsCount { get; set; } @@ -2696,7 +2696,7 @@ public class FavoriteItemsSettings public double? PlaceOfFameMaxItemsCount { get; set; } } -public class VaultingSettings +public record VaultingSettings { [JsonPropertyName("IsActive")] public bool? IsActive { get; set; } @@ -2711,7 +2711,7 @@ public class VaultingSettings public VaultingMovesSettings? MovesSettings { get; set; } } -public class VaultingGridSettings +public record VaultingGridSettings { [JsonPropertyName("GridSizeX")] public double? GridSizeX { get; set; } @@ -2744,7 +2744,7 @@ public class VaultingGridSettings public double? OffsetFactor { get; set; } } -public class VaultingMovesSettings +public record VaultingMovesSettings { [JsonPropertyName("VaultSettings")] public VaultingSubMoveSettings? VaultSettings { get; set; } @@ -2753,7 +2753,7 @@ public class VaultingMovesSettings public VaultingSubMoveSettings? ClimbSettings { get; set; } } -public class VaultingSubMoveSettings +public record VaultingSubMoveSettings { [JsonPropertyName("IsActive")] public bool? IsActive { get; set; } @@ -2773,7 +2773,7 @@ public class VaultingSubMoveSettings public MoveRestrictions? AutoMoveRestrictions { get; set; } } -public class MoveRestrictions +public record MoveRestrictions { [JsonPropertyName("IsActive")] public bool? IsActive { get; set; } @@ -2794,7 +2794,7 @@ public class MoveRestrictions public double? MaxLength { get; set; } } -public class BTRSettings +public record BTRSettings { [JsonPropertyName("LocationsWithBTR")] public List? LocationsWithBTR { get; set; } @@ -2860,7 +2860,7 @@ public class BTRSettings public double? HeightWheelOffset { get; set; } } -public class BtrMapConfig +public record BtrMapConfig { [JsonPropertyName("BtrSkin")] public string? BtrSkin { get; set; } @@ -2908,7 +2908,7 @@ public class BtrMapConfig public List? PathsConfigurations { get; set; } } -public class PathConfig +public record PathConfig { [JsonPropertyName("active")] public bool? Active { get; set; } @@ -2938,7 +2938,7 @@ public class PathConfig public List? SkinType { get; set; } } -public class SquadSettings +public record SquadSettings { [JsonPropertyName("CountOfRequestsToOnePlayer")] public double? CountOfRequestsToOnePlayer { get; set; } @@ -2950,7 +2950,7 @@ public class SquadSettings public double? SendRequestDelaySeconds { get; set; } } -public class Insurance +public record Insurance { [JsonPropertyName("ChangeForReturnItemsInOfflineRaid")] public double? ChangeForReturnItemsInOfflineRaid { get; set; } @@ -2971,13 +2971,13 @@ public class Insurance public bool? OnlyInDeathCase { get; set; } } -public class MessageSendTimeMultiplier +public record MessageSendTimeMultiplier { [JsonPropertyName("multiplier")] public double? Multiplier { get; set; } } -public class SkillsSettings +public record SkillsSettings { [JsonPropertyName("SkillProgressRate")] public double? SkillProgressRate { get; set; } @@ -3187,12 +3187,12 @@ public class SkillsSettings public TroubleShooting? TroubleShooting { get; set; } } -public class MeleeSkill +public record MeleeSkill { public BuffSettings? BuffSettings { get; set; } } -public class ArmorSkills +public record ArmorSkills { public double? BluntThroughputDamageHVestsReducePerLevel { get; set; } public double? WearAmountRepairHVestsReducePerLevel { get; set; } @@ -3210,13 +3210,13 @@ public class ArmorSkills public double? WearChanceRepairLVestsReduceEliteLevel { get; set; } } -public class ArmorCounters +public record ArmorCounters { [JsonPropertyName("armorDurability")] public SkillCounter? ArmorDurability { get; set; } } -public class HideoutManagement +public record HideoutManagement { public double? SkillPointsPerAreaUpgrade { get; set; } public double? SkillPointsPerCraft { get; set; } @@ -3227,7 +3227,7 @@ public class HideoutManagement public EliteSlots? EliteSlots { get; set; } } -public class SkillPointsRate +public record SkillPointsRate { public SkillPointRate? Generator { get; set; } public SkillPointRate? AirFilteringUnit { get; set; } @@ -3235,13 +3235,13 @@ public class SkillPointsRate public SkillPointRate? SolarPower { get; set; } } -public class SkillPointRate +public record SkillPointRate { public double? ResourceSpent { get; set; } public double? PointsGained { get; set; } } -public class EliteSlots +public record EliteSlots { public EliteSlot? Generator { get; set; } public EliteSlot? AirFilteringUnit { get; set; } @@ -3249,13 +3249,13 @@ public class EliteSlots public EliteSlot? BitcoinFarm { get; set; } } -public class EliteSlot +public record EliteSlot { public double? Slots { get; set; } public double? Container { get; set; } } -public class Crafting +public record Crafting { [JsonPropertyName("DependentSkillRatios")] public List? DependentSkillRatios { get; set; } @@ -3286,7 +3286,7 @@ public class Crafting public double? CraftingPointsToIntelligence { get; set; } } -public class Metabolism +public record Metabolism { [JsonPropertyName("HydrationRecoveryRate")] public double? HydrationRecoveryRate { get; set; } @@ -3304,7 +3304,7 @@ public class Metabolism public double? DecreasePoisonDurationRate { get; set; } } -public class Immunity +public record Immunity { [JsonPropertyName("ImmunityMiscEffects")] public double? ImmunityMiscEffects { get; set; } @@ -3322,7 +3322,7 @@ public class Immunity public double? StimulatorNegativeBuff { get; set; } } -public class Endurance +public record Endurance { [JsonPropertyName("MovementAction")] public double? MovementAction { get; set; } @@ -3340,7 +3340,7 @@ public class Endurance public Dictionary>? QTELevelMultipliers { get; set; } } -public class Strength +public record Strength { [JsonPropertyName("DependentSkillRatios")] public List? DependentSkillRatios { get; set; } @@ -3373,7 +3373,7 @@ public class Strength public double? ThrowAction { get; set; } } -public class DependentSkillRatio +public record DependentSkillRatio { [JsonPropertyName("Ratio")] public double? Ratio { get; set; } @@ -3382,7 +3382,7 @@ public class DependentSkillRatio public string? SkillId { get; set; } } -public class QTELevelMultiplier +public record QTELevelMultiplier { [JsonPropertyName("Level")] public double? Level { get; set; } @@ -3391,7 +3391,7 @@ public class QTELevelMultiplier public double? Multiplier { get; set; } } -public class Vitality +public record Vitality { [JsonPropertyName("DamageTakenAction")] public double? DamageTakenAction { get; set; } @@ -3400,13 +3400,13 @@ public class Vitality public double? HealthNegativeEffect { get; set; } } -public class HealthSkillProgress +public record HealthSkillProgress { [JsonPropertyName("SkillProgress")] public double? SkillProgress { get; set; } } -public class StressResistance +public record StressResistance { [JsonPropertyName("HealthNegativeEffect")] public double? HealthNegativeEffect { get; set; } @@ -3415,13 +3415,13 @@ public class StressResistance public double? LowHPDuration { get; set; } } -public class Throwing +public record Throwing { [JsonPropertyName("ThrowAction")] public double? ThrowAction { get; set; } } -public class RecoilControl +public record RecoilControl { [JsonPropertyName("RecoilAction")] public double? RecoilAction { get; set; } @@ -3430,7 +3430,7 @@ public class RecoilControl public double? RecoilBonusPerLevel { get; set; } } -public class WeaponSkills +public record WeaponSkills { [JsonPropertyName("WeaponReloadAction")] public double? WeaponReloadAction { get; set; } @@ -3445,13 +3445,13 @@ public class WeaponSkills public double? WeaponChamberAction { get; set; } } -public class CovertMovement +public record CovertMovement { [JsonPropertyName("MovementAction")] public double? MovementAction { get; set; } } -public class Search +public record Search { [JsonPropertyName("SearchAction")] public double? SearchAction { get; set; } @@ -3460,7 +3460,7 @@ public class Search public double? FindAction { get; set; } } -public class WeaponTreatment +public record WeaponTreatment { [JsonPropertyName("BuffMaxCount")] public double? BuffMaxCount { get; set; } @@ -3487,13 +3487,13 @@ public class WeaponTreatment public double? WearChanceRepairGunsReduceEliteLevel { get; set; } } -public class WeaponTreatmentCounters +public record WeaponTreatmentCounters { [JsonPropertyName("firearmsDurability")] public SkillCounter? FirearmsDurability { get; set; } } -public class BuffSettings +public record BuffSettings { [JsonPropertyName("CommonBuffChanceLevelBonus")] public double? CommonBuffChanceLevelBonus { get; set; } @@ -3514,7 +3514,7 @@ public class BuffSettings public double? ReceivedDurabilityMaxPercent { get; set; } } -public class MagDrills +public record MagDrills { [JsonPropertyName("RaidLoadedAmmoAction")] public double? RaidLoadedAmmoAction { get; set; } @@ -3526,7 +3526,7 @@ public class MagDrills public double? MagazineCheckAction { get; set; } } -public class Perception +public record Perception { [JsonPropertyName("DependentSkillRatios")] public List? DependentSkillRatios { get; set; } @@ -3538,7 +3538,7 @@ public class Perception public double? UniqueLoot { get; set; } } -public class SkillRatio +public record SkillRatio { [JsonPropertyName("Ratio")] public double? Ratio { get; set; } @@ -3547,7 +3547,7 @@ public class SkillRatio public string? SkillId { get; set; } } -public class Intellect +public record Intellect { public SkillRatio[] DependentSkillRatios { get; set; } @@ -3573,7 +3573,7 @@ public class Intellect public double? RepairPointsCostReduction { get; set; } } -public class IntellectCounters +public record IntellectCounters { [JsonPropertyName("armorDurability")] public SkillCounter? ArmorDurability { get; set; } @@ -3585,7 +3585,7 @@ public class IntellectCounters public SkillCounter? MeleeWeaponDurability { get; set; } } -public class SkillCounter +public record SkillCounter { [JsonPropertyName("divisor")] public double? Divisor { get; set; } @@ -3594,7 +3594,7 @@ public class SkillCounter public double? Points { get; set; } } -public class Attention +public record Attention { [JsonPropertyName("DependentSkillRatios")] public SkillRatio[] DependentSkillRatios { get; set; } @@ -3609,7 +3609,7 @@ public class Attention public double? FindActionTrue { get; set; } } -public class Charisma +public record Charisma { [JsonPropertyName("BonusSettings")] public BonusSettings? BonusSettings { get; set; } @@ -3627,7 +3627,7 @@ public class Charisma public double? SkillProgressPer { get; set; } } -public class CharismaSkillCounters +public record CharismaSkillCounters { [JsonPropertyName("insuranceCost")] public SkillCounter? InsuranceCost { get; set; } @@ -3645,7 +3645,7 @@ public class CharismaSkillCounters public SkillCounter? ScavCaseCost { get; set; } } -public class BonusSettings +public record BonusSettings { [JsonPropertyName("EliteBonusSettings")] public EliteBonusSettings? EliteBonusSettings { get; set; } @@ -3654,7 +3654,7 @@ public class BonusSettings public LevelBonusSettings? LevelBonusSettings { get; set; } } -public class EliteBonusSettings +public record EliteBonusSettings { [JsonPropertyName("FenceStandingLossDiscount")] public double? FenceStandingLossDiscount { get; set; } @@ -3666,7 +3666,7 @@ public class EliteBonusSettings public double? ScavCaseDiscount { get; set; } } -public class LevelBonusSettings +public record LevelBonusSettings { [JsonPropertyName("HealthRestoreDiscount")] public double? HealthRestoreDiscount { get; set; } @@ -3687,7 +3687,7 @@ public class LevelBonusSettings public double? RepeatableQuestChangeDiscount { get; set; } } -public class Memory +public record Memory { [JsonPropertyName("AnySkillUp")] public double? AnySkillUp { get; set; } @@ -3696,7 +3696,7 @@ public class Memory public double? SkillProgress { get; set; } } -public class Surgery +public record Surgery { [JsonPropertyName("SurgeryAction")] public double? SurgeryAction { get; set; } @@ -3705,13 +3705,13 @@ public class Surgery public double? SkillProgress { get; set; } } -public class AimDrills +public record AimDrills { [JsonPropertyName("WeaponShotAction")] public double? WeaponShotAction { get; set; } } -public class TroubleShooting +public record TroubleShooting { [JsonPropertyName("MalfRepairSpeedBonusPerLevel")] public double? MalfRepairSpeedBonusPerLevel { get; set; } @@ -3729,7 +3729,7 @@ public class TroubleShooting public double? EliteMagChanceReduceMult { get; set; } } -public class Aiming +public record Aiming { [JsonPropertyName("ProceduralIntensityByPose")] public XYZ? ProceduralIntensityByPose { get; set; } @@ -3789,7 +3789,7 @@ public class Aiming public double? RecoilBackBonus { get; set; } } -public class Malfunction +public record Malfunction { [JsonPropertyName("AmmoMalfChanceMult")] public double? AmmoMalfChanceMult { get; set; } @@ -3867,7 +3867,7 @@ public class Malfunction public double? OverheatHardSlideMaxWt { get; set; } } -public class Overheat +public record Overheat { [JsonPropertyName("MinOverheat")] public double? MinimumOverheat { get; set; } @@ -3954,7 +3954,7 @@ public class Overheat public double? MaximumOverheatCoolCoefficient { get; set; } } -public class FenceSettings +public record FenceSettings { [JsonPropertyName("FenceId")] public string? FenceIdentifier { get; set; } @@ -3968,7 +3968,7 @@ public class FenceSettings public double? PmcBotKillStandingMultiplier { get; set; } } -public class FenceLevel +public record FenceLevel { [JsonPropertyName("ReachOnMarkOnUnknowns")] public bool? CanReachOnMarkOnUnknowns { get; set; } @@ -4049,7 +4049,7 @@ public class FenceLevel public double? CircleOfCultistsBonusPercentage { get; set; } } -public class Inertia +public record Inertia { [JsonPropertyName("InertiaLimits")] public XYZ? InertiaLimits { get; set; } @@ -4168,13 +4168,13 @@ public class Inertia public XYZ? CrouchSpeedAccelerationRange { get; set; } } -public class Ballistic +public record Ballistic { [JsonPropertyName("GlobalDamageDegradationCoefficient")] public double? GlobalDamageDegradationCoefficient { get; set; } } -public class RepairSettings +public record RepairSettings { [JsonPropertyName("ItemEnhancementSettings")] public ItemEnhancementSettings? ItemEnhancementSettings { get; set; } @@ -4195,7 +4195,7 @@ public class RepairSettings public double? DurabilityPointCostGuns { get; set; } } -public class ItemEnhancementSettings +public record ItemEnhancementSettings { [JsonPropertyName("DamageReduction")] public PriceModifier? DamageReduction { get; set; } @@ -4207,13 +4207,13 @@ public class ItemEnhancementSettings public PriceModifier? WeaponSpread { get; set; } } -public class PriceModifier +public record PriceModifier { [JsonPropertyName("PriceModifier")] public double? PriceModifierValue { get; set; } } -public class RepairStrategies +public record RepairStrategies { [JsonPropertyName("Armor")] public RepairStrategy? Armor { get; set; } @@ -4222,7 +4222,7 @@ public class RepairStrategies public RepairStrategy? Firearms { get; set; } } -public class RepairStrategy +public record RepairStrategy { [JsonPropertyName("BuffTypes")] public List? BuffTypes { get; set; } @@ -4231,7 +4231,7 @@ public class RepairStrategy public List? Filter { get; set; } } -public class BotPreset +public record BotPreset { [JsonPropertyName("UseThis")] public bool? UseThis { get; set; } @@ -4267,7 +4267,7 @@ public class BotPreset public double? CoefIfMove { get; set; } } -public class AudioSettings +public record AudioSettings { [JsonPropertyName("AudioGroupPresets")] public List? AudioGroupPresets { get; set; } @@ -4282,7 +4282,7 @@ public class AudioSettings public RadioBroadcastSettings? RadioBroadcastSettings { get; set; } } -public class AudioGroupPreset +public record AudioGroupPreset { [JsonPropertyName("AngleToAllowBinaural")] public double? AngleToAllowBinaural { get; set; } @@ -4315,7 +4315,7 @@ public class AudioGroupPreset public double? OverallVolume { get; set; } } -public class EnvironmentSettings +public record EnvironmentSettings { [JsonPropertyName("SnowStepsVolumeMultiplier")] public double? SnowStepsVolumeMultiplier { get; set; } @@ -4324,7 +4324,7 @@ public class EnvironmentSettings public List? SurfaceMultipliers { get; set; } } -public class SurfaceMultiplier +public record SurfaceMultiplier { [JsonPropertyName("SurfaceType")] public string? SurfaceType { get; set; } @@ -4333,7 +4333,7 @@ public class SurfaceMultiplier public double? VolumeMultiplier { get; set; } } -public class BotWeaponScattering +public record BotWeaponScattering { [JsonPropertyName("Name")] public string? Name { get; set; } @@ -4348,7 +4348,7 @@ public class BotWeaponScattering public double? PriorityScatter100Meter { get; set; } } -public class Preset +public record Preset { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -4373,7 +4373,7 @@ public class Preset public string? Encyclopedia { get; set; } } -public class QuestSettings +public record QuestSettings { [JsonPropertyName("GlobalRewardRepModifierDailyQuestPvE")] public double? GlobalRewardRepModifierDailyQuestPvE { get; set; } diff --git a/Core/Models/Eft/Common/Location.cs b/Core/Models/Eft/Common/Location.cs index 9d656ced..1b4d3cd6 100644 --- a/Core/Models/Eft/Common/Location.cs +++ b/Core/Models/Eft/Common/Location.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Common; -public class Location +public record Location { /** Map meta-data */ [JsonPropertyName("base")] @@ -37,7 +37,7 @@ public class Location public Dictionary? Statics { get; set; } } -public class StaticContainer +public record StaticContainer { [JsonPropertyName("containersGroups")] public Dictionary? ContainersGroups { get; set; } @@ -46,7 +46,7 @@ public class StaticContainer public Dictionary? Containers { get; set; } } -public class ContainerMinMax +public record ContainerMinMax { [JsonPropertyName("minContainers")] public int? MinContainers { get; set; } @@ -61,13 +61,13 @@ public class ContainerMinMax public int? ChosenCount { get; set; } } -public class ContainerData +public record ContainerData { [JsonPropertyName("groupId")] public string? GroupId { get; set; } } -public class StaticLootDetails +public record StaticLootDetails { [JsonPropertyName("itemcountDistribution")] public ItemCountDistribution[] ItemCountDistribution { get; set; } @@ -76,7 +76,7 @@ public class StaticLootDetails public ItemDistribution[] ItemDistribution { get; set; } } -public class ItemCountDistribution +public record ItemCountDistribution { [JsonPropertyName("count")] public int? Count { get; set; } @@ -85,7 +85,7 @@ public class ItemCountDistribution public float? RelativeProbability { get; set; } } -public class ItemDistribution +public record ItemDistribution { [JsonPropertyName("tpl")] public string? Tpl { get; set; } @@ -94,7 +94,7 @@ public class ItemDistribution public float? RelativeProbability { get; set; } } -public class StaticPropsBase +public record StaticPropsBase { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -130,13 +130,13 @@ public class StaticPropsBase public Item[] Items { get; set; } } -public class StaticWeaponProps : StaticPropsBase +public record StaticWeaponProps : StaticPropsBase { [JsonPropertyName("Items")] public Item[] Items { get; set; } } -public class StaticContainerDetails +public record StaticContainerDetails { [JsonPropertyName("staticWeapons")] public StaticWeaponProps[] StaticWeapons { get; set; } @@ -148,7 +148,7 @@ public class StaticContainerDetails public StaticForcedProps[] StaticForced { get; set; } } -public class StaticContainerData +public record StaticContainerData { [JsonPropertyName("probability")] public float? Probability { get; set; } @@ -157,7 +157,7 @@ public class StaticContainerData public StaticContainerProps? Template { get; set; } } -public class StaticAmmoDetails +public record StaticAmmoDetails { [JsonPropertyName("tpl")] public string? Tpl { get; set; } @@ -166,7 +166,7 @@ public class StaticAmmoDetails public float? RelativeProbability { get; set; } } -public class StaticForcedProps +public record StaticForcedProps { [JsonPropertyName("containerId")] public string? ContainerId { get; set; } @@ -175,13 +175,13 @@ public class StaticForcedProps public string? ItemTpl { get; set; } } -public class StaticContainerProps : StaticPropsBase +public record StaticContainerProps : StaticPropsBase { [JsonPropertyName("Items")] public StaticItem[] Items { get; set; } } -public class StaticItem +public record StaticItem { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -191,4 +191,4 @@ public class StaticItem [JsonPropertyName("upd")] public Upd? Upd { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/LocationBase.cs b/Core/Models/Eft/Common/LocationBase.cs index f33046f7..2d94887e 100644 --- a/Core/Models/Eft/Common/LocationBase.cs +++ b/Core/Models/Eft/Common/LocationBase.cs @@ -3,7 +3,7 @@ using Core.Models.Common; namespace Core.Models.Eft.Common; -public class LocationBase +public record LocationBase { [JsonPropertyName("AccessKeys")] public List? AccessKeys { get; set; } @@ -329,7 +329,7 @@ public class LocationBase public List? Waves { get; set; } } -public class Transit +public record Transit { [JsonPropertyName("activateAfterSec")] public int? ActivateAfterSeconds { get; set; } // TODO: Int in client @@ -362,7 +362,7 @@ public class Transit public int? Time { get; set; } } -public class NonWaveGroupScenario +public record NonWaveGroupScenario { [JsonPropertyName("Chance")] public double? Chance { get; set; } @@ -377,7 +377,7 @@ public class NonWaveGroupScenario public int? MinimumToBeGrouped { get; set; } } -public class Limit : MinMax +public record Limit : MinMax { [JsonPropertyName("items")] public object[] Items { get; set; } // TODO: was on TS any[] hmmm.. @@ -389,7 +389,7 @@ public class Limit : MinMax public int? Max { get; set; } } -public class AirdropParameter +public record AirdropParameter { [JsonPropertyName("AirdropPointDeactivateDistance")] public int? AirdropPointDeactivateDistance { get; set; } @@ -422,7 +422,7 @@ public class AirdropParameter public int? UnsuccessfulTryPenalty { get; set; } } -public class Banner +public record Banner { [JsonPropertyName("id")] public string? Id { get; set; } @@ -431,7 +431,7 @@ public class Banner public Pic? Picture { get; set; } } -public class Pic +public record Pic { [JsonPropertyName("path")] public string? Path { get; set; } @@ -440,7 +440,7 @@ public class Pic public string? Rcid { get; set; } } -public class BossLocationSpawn +public record BossLocationSpawn { [JsonPropertyName("BossChance")] public double? BossChance { get; set; } @@ -503,7 +503,7 @@ public class BossLocationSpawn public string[] SpawnMode { get; set; } } -public class BossSupport +public record BossSupport { [JsonPropertyName("BossEscortAmount")] public string? BossEscortAmount { get; set; } @@ -515,7 +515,7 @@ public class BossSupport public string? BossEscortType { get; set; } } -public class BotLocationModifier +public record BotLocationModifier { [JsonPropertyName("AccuracySpeed")] public double? AccuracySpeed { get; set; } @@ -563,7 +563,7 @@ public class BotLocationModifier public double? MinExfiltrationTime { get; set; } } -public class AdditionalHostilitySettings +public record AdditionalHostilitySettings { [JsonPropertyName("AlwaysEnemies")] public List? AlwaysEnemies { get; set; } @@ -602,7 +602,7 @@ public class AdditionalHostilitySettings public List? Warn { get; set; } } -public class ChancedEnemy +public record ChancedEnemy { [JsonPropertyName("EnemyChance")] public int? EnemyChance { get; set; } @@ -611,13 +611,13 @@ public class ChancedEnemy public string? Role { get; set; } } -public class MinMaxBot : MinMax +public record MinMaxBot : MinMax { [JsonPropertyName("WildSpawnType")] public object? WildSpawnType { get; set; } // TODO: Could be WildSpawnType or string } -public class MinPlayerWaitTime +public record MinPlayerWaitTime { [JsonPropertyName("minPlayers")] public int? MinPlayers { get; set; } @@ -626,7 +626,7 @@ public class MinPlayerWaitTime public int? Time { get; set; } } -public class Preview +public record Preview { [JsonPropertyName("path")] public string? Path { get; set; } @@ -635,7 +635,7 @@ public class Preview public string? Rcid { get; set; } } -public class Scene +public record Scene { [JsonPropertyName("path")] public string? Path { get; set; } @@ -644,7 +644,7 @@ public class Scene public string? Rcid { get; set; } } -public class SpawnPointParam +public record SpawnPointParam { [JsonPropertyName("BotZoneName")] public string? BotZoneName { get; set; } @@ -677,7 +677,7 @@ public class SpawnPointParam public List? Sides { get; set; } } -public class ColliderParams +public record ColliderParams { [JsonPropertyName("_parent")] public string? Parent { get; set; } @@ -686,7 +686,7 @@ public class ColliderParams public Props? Props { get; set; } } -public class Props +public record Props { [JsonPropertyName("Center")] public XYZ? Center { get; set; } @@ -698,7 +698,7 @@ public class Props public double? Radius { get; set; } } -public class Exit +public record Exit { /** % Chance out of 100 exit will appear in raid */ [JsonPropertyName("Chance")] @@ -785,7 +785,7 @@ public class Exit public string? Side { get; set; } } -public class MaxItemCountInLocation +public record MaxItemCountInLocation { [JsonPropertyName("TemplateId")] public string? TemplateId { get; set; } @@ -794,7 +794,7 @@ public class MaxItemCountInLocation public int? Value { get; set; } } -public class Wave +public record Wave { [JsonPropertyName("BotPreset")] public string? BotPreset { get; set; } @@ -842,7 +842,7 @@ public class Wave public string? OpenZones { get; set; } } -public class LocationEvents +public record LocationEvents { [JsonPropertyName("Halloween2024")] public Halloween2024? Halloween2024 { get; set; } @@ -850,12 +850,12 @@ public class LocationEvents public Khorovod? Khorovod { get; set; } } -public class Khorovod +public record Khorovod { public double? Chance { get; set; } } -public class Halloween2024 +public record Halloween2024 { [JsonPropertyName("CrowdAttackBlockRadius")] public int? CrowdAttackBlockRadius { get; set; } @@ -902,7 +902,7 @@ public class Halloween2024 public Khorovod? Khorovod { get; set; } } -public class CrowdAttackSpawnParam +public record CrowdAttackSpawnParam { [JsonPropertyName("Difficulty")] public string? Difficulty { get; set; } @@ -914,7 +914,7 @@ public class CrowdAttackSpawnParam public int? Weight { get; set; } } -public class Area +public record Area { [JsonPropertyName("center")] public XYZ? Center { get; set; } diff --git a/Core/Models/Eft/Common/LooseLoot.cs b/Core/Models/Eft/Common/LooseLoot.cs index dea6989c..40083f49 100644 --- a/Core/Models/Eft/Common/LooseLoot.cs +++ b/Core/Models/Eft/Common/LooseLoot.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Common; -public class LooseLoot +public record LooseLoot { [JsonPropertyName("spawnpointCount")] public SpawnpointCount? SpawnpointCount { get; set; } @@ -15,7 +15,7 @@ public class LooseLoot public List? Spawnpoints { get; set; } } -public class SpawnpointCount +public record SpawnpointCount { [JsonPropertyName("mean")] public double? Mean { get; set; } @@ -24,7 +24,7 @@ public class SpawnpointCount public double? Std { get; set; } } -public class SpawnpointsForced +public record SpawnpointsForced { [JsonPropertyName("locationId")] public string? LocationId { get; set; } @@ -36,7 +36,7 @@ public class SpawnpointsForced public SpawnpointTemplate? Template { get; set; } } -public class SpawnpointTemplate +public record SpawnpointTemplate { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -72,7 +72,7 @@ public class SpawnpointTemplate public List? Items { get; set; } } -public class GroupPosition +public record GroupPosition { [JsonPropertyName("Name")] public string? Name { get; set; } @@ -87,7 +87,7 @@ public class GroupPosition public XYZ? Rotation { get; set; } } -public class Spawnpoint +public record Spawnpoint { [JsonPropertyName("locationId")] public string? LocationId { get; set; } @@ -102,7 +102,7 @@ public class Spawnpoint public List? ItemDistribution { get; set; } } -public class LooseLootItemDistribution +public record LooseLootItemDistribution { [JsonPropertyName("composedKey")] public ComposedKey? ComposedKey { get; set; } @@ -111,8 +111,8 @@ public class LooseLootItemDistribution public double? RelativeProbability { get; set; } } -public class ComposedKey +public record ComposedKey { [JsonPropertyName("key")] public string? Key { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/MetricsTableData.cs b/Core/Models/Eft/Common/MetricsTableData.cs index 9f37630b..a6ec70a3 100644 --- a/Core/Models/Eft/Common/MetricsTableData.cs +++ b/Core/Models/Eft/Common/MetricsTableData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Common; -public class MetricsTableData +public record MetricsTableData { [JsonPropertyName("Keys")] public List? Keys { get; set; } diff --git a/Core/Models/Eft/Common/PmcData.cs b/Core/Models/Eft/Common/PmcData.cs index 8f240e00..49d53a62 100644 --- a/Core/Models/Eft/Common/PmcData.cs +++ b/Core/Models/Eft/Common/PmcData.cs @@ -4,20 +4,20 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common; -public class PmcData : BotBase +public record PmcData : BotBase { [JsonPropertyName("Prestige")] [JsonConverter(typeof(ArrayToObjectFactoryConverter))] public Dictionary? Prestige { get; set; } } -public class PostRaidPmcData : BotBase +public record PostRaidPmcData : BotBase { [JsonPropertyName("Stats")] public PostRaidStats? Stats { get; set; } } -public class PostRaidStats +public record PostRaidStats { [JsonPropertyName("Eft")] public EftStats? Eft { get; set; } diff --git a/Core/Models/Eft/Common/Request/BaseInteractionRequestData.cs b/Core/Models/Eft/Common/Request/BaseInteractionRequestData.cs index 6e5d54f1..b2dd2d0a 100644 --- a/Core/Models/Eft/Common/Request/BaseInteractionRequestData.cs +++ b/Core/Models/Eft/Common/Request/BaseInteractionRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Request; -public class BaseInteractionRequestData +public record BaseInteractionRequestData { [JsonPropertyName("Action")] public virtual string? Action { get; set; } @@ -14,11 +14,11 @@ public class BaseInteractionRequestData public OwnerInfo? ToOwner { get; set; } } -public class OwnerInfo +public record OwnerInfo { [JsonPropertyName("id")] public string? Id { get; set; } [JsonPropertyName("type")] public string? Type { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/Request/UIDRequestData.cs b/Core/Models/Eft/Common/Request/UIDRequestData.cs index 6d4030a7..859dbe51 100644 --- a/Core/Models/Eft/Common/Request/UIDRequestData.cs +++ b/Core/Models/Eft/Common/Request/UIDRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Common.Request; -public class UIDRequestData : IRequestData +public record UIDRequestData : IRequestData { [JsonPropertyName("uid")] public string? Uid { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Achievement.cs b/Core/Models/Eft/Common/Tables/Achievement.cs index bbb42b05..0c3a9b9b 100644 --- a/Core/Models/Eft/Common/Tables/Achievement.cs +++ b/Core/Models/Eft/Common/Tables/Achievement.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Common.Tables; -public class Achievement +public record Achievement { [JsonPropertyName("id")] public string? Id { get; set; } @@ -50,7 +50,7 @@ public class Achievement public int? Index { get; set; } } -public class AchievementQuestConditionTypes +public record AchievementQuestConditionTypes { [JsonPropertyName("started")] public List? Started { get; set; } diff --git a/Core/Models/Eft/Common/Tables/BotBase.cs b/Core/Models/Eft/Common/Tables/BotBase.cs index 7d7fcafd..0332b081 100644 --- a/Core/Models/Eft/Common/Tables/BotBase.cs +++ b/Core/Models/Eft/Common/Tables/BotBase.cs @@ -7,7 +7,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class BotBase +public record BotBase { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -103,7 +103,7 @@ public class BotBase public bool? IsPmc { get; set; } } -public class MoneyTransferLimits +public record MoneyTransferLimits { // Resets every 24 hours in live /** TODO: Implement */ @@ -120,7 +120,7 @@ public class MoneyTransferLimits public double? ResetInterval { get; set; } } -public class TaskConditionCounter +public record TaskConditionCounter { [JsonPropertyName("id")] public string? Id { get; set; } @@ -136,13 +136,13 @@ public class TaskConditionCounter public string? SourceId { get; set; } } -public class UnlockedInfo +public record UnlockedInfo { [JsonPropertyName("unlockedProductionRecipe")] public List? UnlockedProductionRecipe { get; set; } } -public class Info +public record Info { public string? EntryPoint { get; set; } public string? Nickname { get; set; } @@ -188,7 +188,7 @@ public class Info public int? PrestigeLevel { get; set; } } -public class BotInfoSettings +public record BotInfoSettings { public string? Role { get; set; } public string? BotDifficulty { get; set; } @@ -198,7 +198,7 @@ public class BotInfoSettings public bool? UseSimpleAnimator { get; set; } } -public class Ban +public record Ban { [JsonPropertyName("banType")] public BanType? BanType { get; set; } @@ -218,7 +218,7 @@ public enum BanType CHANGE_NICKNAME = 6 } -public class Customization +public record Customization { public string? Head { get; set; } public string? Body { get; set; } @@ -227,7 +227,7 @@ public class Customization public string? DogTag { get; set; } } -public class BotBaseHealth +public record BotBaseHealth { public CurrentMax? Hydration { get; set; } public CurrentMax? Energy { get; set; } @@ -237,26 +237,26 @@ public class BotBaseHealth public bool? Immortal { get; set; } } -public class BodyPartHealth +public record BodyPartHealth { public CurrentMax? Health { get; set; } public Dictionary? Effects { get; set; } } -public class BodyPartEffectProperties +public record BodyPartEffectProperties { // TODO: this was any, what actual type is it? public object? ExtraData { get; set; } public double? Time { get; set; } } -public class CurrentMax +public record CurrentMax { public double? Current { get; set; } public double? Maximum { get; set; } } -public class BotBaseInventory +public record BotBaseInventory { [JsonPropertyName("items")] public List? Items { get; set; } @@ -290,7 +290,7 @@ public class BotBaseInventory public string? HideoutCustomizationStashId { get; set; } } -public class BaseJsonSkills +public record BaseJsonSkills { public List? Common { get; set; } @@ -299,7 +299,7 @@ public class BaseJsonSkills public double? Points { get; set; } } -public class Skills +public record Skills { public List? Common { get; set; } @@ -308,7 +308,7 @@ public class Skills public double? Points { get; set; } } -public class BaseSkill +public record BaseSkill { public int? PointsEarnedDuringSession { get; set; } public long? LastAccess { get; set; } @@ -322,21 +322,21 @@ public class BaseSkill public int? Min { get; set; } } -public class Common : BaseSkill +public record Common : BaseSkill { } -public class Mastering : BaseSkill +public record Mastering : BaseSkill { } -public class Stats +public record Stats { public EftStats? Eft { get; set; } } -public class EftStats +public record EftStats { public List? CarriedQuestItems { get; set; } public List? Victims { get; set; } @@ -359,21 +359,21 @@ public class EftStats public float? SptLastRaidFenceRepChange { get; set; } } -public class DroppedItem +public record DroppedItem { public string? QuestId { get; set; } public string? ItemId { get; set; } public string? ZoneId { get; set; } } -public class FoundInRaidItem +public record FoundInRaidItem { public string? QuestId { get; set; } public string? ItemId { get; set; } } // TODO: Same as Aggressor? -public class Victim +public record Victim { public string? AccountId { get; set; } public string? ProfileId { get; set; } @@ -388,23 +388,23 @@ public class Victim public string? Location { get; set; } } -public class SessionCounters +public record SessionCounters { public List? Items { get; set; } } -public class OverallCounters +public record OverallCounters { public List? Items { get; set; } } -public class CounterKeyValue +public record CounterKeyValue { public List? Key { get; set; } public double? Value { get; set; } } -public class Aggressor +public record Aggressor { public string? AccountId { get; set; } public string? ProfileId { get; set; } @@ -417,7 +417,7 @@ public class Aggressor public string? Category { get; set; } } -public class DamageHistory +public record DamageHistory { public string? LethalDamagePart { get; set; } public LethalDamage? LethalDamage { get; set; } @@ -426,8 +426,8 @@ public class DamageHistory public BodyPartsDamageHistory? BodyParts { get; set; } } -// TODO: this class seems exactly the same as DamageStats, why have it? -public class LethalDamage +// TODO: this record seems exactly the same as DamageStats, why have it? +public record LethalDamage { public double? Amount { get; set; } public string? Type { get; set; } @@ -437,7 +437,7 @@ public class LethalDamage public double? ImpactsCount { get; set; } } -public class BodyPartsDamageHistory +public record BodyPartsDamageHistory { public List? Head { get; set; } public List? Chest { get; set; } @@ -449,7 +449,7 @@ public class BodyPartsDamageHistory public List? Common { get; set; } } -public class DamageStats +public record DamageStats { public double? Amount { get; set; } public string? Type { get; set; } @@ -459,7 +459,7 @@ public class DamageStats public double? ImpactsCount { get; set; } } -public class DeathCause +public record DeathCause { public string? DamageType { get; set; } public string? Side { get; set; } @@ -467,7 +467,7 @@ public class DeathCause public string? WeaponId { get; set; } } -public class LastPlayerState +public record LastPlayerState { public LastPlayerStateInfo? Info { get; set; } public Dictionary? Customization { get; set; } @@ -476,7 +476,7 @@ public class LastPlayerState public object? Equipment { get; set; } } -public class LastPlayerStateInfo +public record LastPlayerStateInfo { public string? Nickname { get; set; } public string? Side { get; set; } @@ -484,7 +484,7 @@ public class LastPlayerStateInfo public MemberCategory? MemberCategory { get; set; } } -public class BackendCounter +public record BackendCounter { [JsonPropertyName("id")] public string? Id { get; set; } @@ -496,7 +496,7 @@ public class BackendCounter public double? Value { get; set; } } -public class InsuredItem +public record InsuredItem { /** Trader Id item was insured by */ [JsonPropertyName("tid")] @@ -506,7 +506,7 @@ public class InsuredItem public string? ItemId { get; set; } } -public class Hideout +public record Hideout { public Dictionary? Production { get; set; } public List? Areas { get; set; } @@ -522,7 +522,7 @@ public class Hideout public Dictionary? Customization { get; set; } } -public class HideoutCounters +public record HideoutCounters { [JsonPropertyName("fuelCounter")] public double? FuelCounter { get; set; } @@ -537,7 +537,7 @@ public class HideoutCounters public double? CraftingTimeCounter { get; set; } } -public class HideoutImprovement +public record HideoutImprovement { [JsonPropertyName("completed")] public bool? Completed { get; set; } @@ -546,7 +546,7 @@ public class HideoutImprovement public long? ImproveCompleteTimestamp { get; set; } } -public class Productive +public record Productive { public List? Products { get; set; } @@ -595,19 +595,19 @@ public class Productive public bool? SptIsCultistCircle { get; set; } } -public class Production : Productive +public record Production : Productive { public string? RecipeId { get; set; } public int? SkipTime { get; set; } public int? ProductionTime { get; set; } } -public class ScavCase : Productive +public record ScavCase : Productive { public string? RecipeId { get; set; } } -public class Product +public record Product { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -619,7 +619,7 @@ public class Product public Upd? Upd { get; set; } } -public class BotHideoutArea +public record BotHideoutArea { [JsonPropertyName("type")] public HideoutAreas? Type { get; set; } @@ -647,7 +647,7 @@ public class BotHideoutArea public string? LastRecipe { get; set; } } -public class HideoutSlot +public record HideoutSlot { /// /// SPT specific value to keep track of what index this slot is (0,1,2,3 etc) @@ -659,7 +659,7 @@ public class HideoutSlot public List? Items { get; set; } } -public class HideoutItem +public record HideoutItem { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -671,13 +671,13 @@ public class HideoutItem public Upd? Upd { get; set; } } -public class LastCompleted +public record LastCompleted { [JsonPropertyName("$oid")] public string? OId { get; set; } } -public class Notes +public record Notes { [JsonPropertyName("Notes")] public List? DataNotes { get; set; } @@ -692,7 +692,7 @@ public enum SurvivorClass SURVIVOR = 4 } -public class Quests +public record Quests { [JsonPropertyName("qid")] public string? QId { get; set; } @@ -714,7 +714,7 @@ public class Quests public long? AvailableAfter { get; set; } } -public class TraderInfo +public record TraderInfo { [JsonPropertyName("loyaltyLevel")] public int? LoyaltyLevel { get; set; } @@ -735,7 +735,7 @@ public class TraderInfo public bool? Disabled { get; set; } } -public class RagfairInfo +public record RagfairInfo { [JsonPropertyName("rating")] public double? Rating { get; set; } @@ -747,7 +747,7 @@ public class RagfairInfo public List? Offers { get; set; } } -public class Bonus +public record Bonus { [JsonPropertyName("id")] public string? Id { get; set; } @@ -781,7 +781,7 @@ public class Bonus public BonusSkillType? SkillType { get; set; } } -public class Note +public record Note { public double? Time { get; set; } public string? Text { get; set; } diff --git a/Core/Models/Eft/Common/Tables/BotCore.cs b/Core/Models/Eft/Common/Tables/BotCore.cs index 26e0196e..df5529b9 100644 --- a/Core/Models/Eft/Common/Tables/BotCore.cs +++ b/Core/Models/Eft/Common/Tables/BotCore.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Common.Tables; -public class BotCore +public record BotCore { [JsonPropertyName("SAVAGE_KILL_DIST")] public double? SavageKillDistance { get; set; } @@ -396,4 +396,4 @@ public class BotCore [JsonPropertyName("AXE_MAN_KILLS_END")] public double? AxeManKillsEnd { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/Tables/BotType.cs b/Core/Models/Eft/Common/Tables/BotType.cs index 17ab603c..9806b7e8 100644 --- a/Core/Models/Eft/Common/Tables/BotType.cs +++ b/Core/Models/Eft/Common/Tables/BotType.cs @@ -5,7 +5,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class BotType +public record BotType { [JsonPropertyName("appearance")] public Appearance? BotAppearance { get; set; } @@ -38,7 +38,7 @@ public class BotType public BotDbSkills? BotSkills { get; set; } } -public class Appearance +public record Appearance { [JsonPropertyName("body")] public Dictionary? Body { get; set; } @@ -59,7 +59,7 @@ public class Appearance public Dictionary? Voice { get; set; } } -public class Chances +public record Chances { [JsonPropertyName("equipment")] public Dictionary? EquipmentChances { get; set; } @@ -74,12 +74,12 @@ public class Chances public Dictionary? Mods { get; set; } } -/* class removed in favor of Dictionary +/* record removed in favor of Dictionary used to be used in: Chances.WeaponModsChances Chances.EquipmentModsChances GenerateWeaponRequest.ModSpawnChances -public class ModsChances +public record ModsChances { [JsonPropertyName("mod_charge")] public double? ModCharge { get; set; } @@ -239,7 +239,7 @@ public double? ModPistol_Grip { get; set; } } */ -public class Difficulties +public record Difficulties { [JsonPropertyName("easy")] public DifficultyCategories? Easy { get; set; } @@ -254,7 +254,7 @@ public class Difficulties public DifficultyCategories? Impossible { get; set; } } -public class DifficultyCategories +public record DifficultyCategories { public Dictionary? Aiming { get; set; } // TODO: string | number | boolean public Dictionary? Boss { get; set; } // TODO: string | number | boolean @@ -272,7 +272,7 @@ public class DifficultyCategories public Dictionary? Shoot { get; set; } // TODO: string | number | boolean } -public class Experience +public record Experience { /** key = bot difficulty */ [JsonPropertyName("aggressorBonus")] @@ -293,13 +293,13 @@ public class Experience public bool? UseSimpleAnimator { get; set; } } -public class Generation +public record Generation { [JsonPropertyName("items")] public GenerationWeightingItems? Items { get; set; } } -public class GenerationData +public record GenerationData { /** key: number of items, value: weighting */ [JsonPropertyName("weights")] @@ -311,7 +311,7 @@ public class GenerationData public Dictionary? Whitelist { get; set; } } -public class GenerationWeightingItems +public record GenerationWeightingItems { [JsonPropertyName("grenades")] public GenerationData Grenades { get; set; } @@ -353,7 +353,7 @@ public class GenerationWeightingItems public GenerationData LooseLoot { get; set; } } -public class BotTypeHealth +public record BotTypeHealth { public List? BodyParts { get; set; } public MinMax? Energy { get; set; } @@ -361,7 +361,7 @@ public class BotTypeHealth public MinMax? Temperature { get; set; } } -public class BodyPart +public record BodyPart { public MinMax? Chest { get; set; } public MinMax? Head { get; set; } @@ -372,7 +372,7 @@ public class BodyPart public MinMax? Stomach { get; set; } } -public class BotTypeInventory +public record BotTypeInventory { [JsonPropertyName("equipment")] public Dictionary>? Equipment { get; set; } @@ -386,7 +386,7 @@ public class BotTypeInventory public GlobalMods? Mods { get; set; } } -public class Equipment +public record Equipment { public Dictionary? ArmBand { get; set; } public Dictionary? ArmorVest { get; set; } @@ -404,7 +404,7 @@ public class Equipment public Dictionary? TacticalVest { get; set; } } -public class ItemPools +public record ItemPools { public Dictionary? Backpack { get; set; } public Dictionary? Pockets { get; set; } @@ -413,7 +413,7 @@ public class ItemPools public Dictionary? TacticalVest { get; set; } } -public class BotDbSkills +public record BotDbSkills { public Dictionary? Common { get; set; } diff --git a/Core/Models/Eft/Common/Tables/CustomisationStorage.cs b/Core/Models/Eft/Common/Tables/CustomisationStorage.cs index 122bc7bc..d539dd3d 100644 --- a/Core/Models/Eft/Common/Tables/CustomisationStorage.cs +++ b/Core/Models/Eft/Common/Tables/CustomisationStorage.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class CustomisationStorage +public record CustomisationStorage { [JsonPropertyName("id")] public string? Id { get; set; } @@ -14,7 +14,7 @@ public class CustomisationStorage public string? Type { get; set; } } -public class CustomisationType +public record CustomisationType { public const string SUITE = "suite"; public const string DOG_TAG = "dogTag"; @@ -31,7 +31,7 @@ public class CustomisationType public const string MANNEQUIN_POSE = "mannequinPose"; } -public class CustomisationSource +public record CustomisationSource { public const string QUEST = "quest"; public const string PRESTIGE = "prestige"; diff --git a/Core/Models/Eft/Common/Tables/CustomizationItem.cs b/Core/Models/Eft/Common/Tables/CustomizationItem.cs index 25ba8884..9f274fc9 100644 --- a/Core/Models/Eft/Common/Tables/CustomizationItem.cs +++ b/Core/Models/Eft/Common/Tables/CustomizationItem.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; -public class CustomizationItem +public record CustomizationItem { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -21,4 +21,4 @@ public class CustomizationItem [JsonPropertyName("_proto")] public string? Proto { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/Tables/HandbookBase.cs b/Core/Models/Eft/Common/Tables/HandbookBase.cs index 58eb73b4..bf994d5d 100644 --- a/Core/Models/Eft/Common/Tables/HandbookBase.cs +++ b/Core/Models/Eft/Common/Tables/HandbookBase.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Common.Tables; -public class HandbookBase +public record HandbookBase { [JsonPropertyName("Categories")] public List? Categories { get; set; } @@ -11,7 +11,7 @@ public class HandbookBase public List? Items { get; set; } } -public class HandbookCategory +public record HandbookCategory { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -31,7 +31,7 @@ public class HandbookCategory public string? Order { get; set; } } -public class HandbookItem +public record HandbookItem { [JsonPropertyName("Id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Item.cs b/Core/Models/Eft/Common/Tables/Item.cs index d7919a8c..73cbead5 100644 --- a/Core/Models/Eft/Common/Tables/Item.cs +++ b/Core/Models/Eft/Common/Tables/Item.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class Item +public record Item { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -26,7 +26,7 @@ public class Item public Upd? Upd { get; set; } } -public class ItemLocation +public record ItemLocation { public double? X { get; set; } public double? Y { get; set; } @@ -37,7 +37,7 @@ public class ItemLocation public object? Rotation { get; set; } // TODO: Can be string or boolean } -public class Upd +public record Upd { public UpdBuff? Buff { get; set; } public int? OriginalStackObjectsCount { get; set; } @@ -79,7 +79,7 @@ public enum PinLockState Pinned } -public class UpdBuff +public record UpdBuff { [JsonPropertyName("Rarity")] public string? Rarity { get; set; } @@ -94,19 +94,19 @@ public class UpdBuff public int? ThresholdDurability { get; set; } } -public class UpdTogglable +public record UpdTogglable { [JsonPropertyName("On")] public bool? On { get; set; } } -public class UpdMap +public record UpdMap { [JsonPropertyName("Markers")] public List? Markers { get; set; } } -public class MapMarker +public record MapMarker { [JsonPropertyName("Type")] public string? Type { get; set; } @@ -121,7 +121,7 @@ public class MapMarker public string? Note { get; set; } } -public class UpdTag +public record UpdTag { [JsonPropertyName("Color")] public int? Color { get; set; } @@ -130,13 +130,13 @@ public class UpdTag public string? Name { get; set; } } -public class UpdFaceShield +public record UpdFaceShield { [JsonPropertyName("Hits")] public int? Hits { get; set; } } -public class UpdRepairable +public record UpdRepairable { [JsonPropertyName("Durability")] public double? Durability { get; set; } @@ -145,19 +145,19 @@ public class UpdRepairable public double? MaxDurability { get; set; } } -public class UpdRecodableComponent +public record UpdRecodableComponent { [JsonPropertyName("IsEncoded")] public bool? IsEncoded { get; set; } } -public class UpdMedKit +public record UpdMedKit { [JsonPropertyName("HpResource")] public double? HpResource { get; set; } } -public class UpdSight +public record UpdSight { [JsonPropertyName("ScopesCurrentCalibPointIndexes")] public List? ScopesCurrentCalibPointIndexes { get; set; } @@ -169,31 +169,31 @@ public class UpdSight public int? SelectedScope { get; set; } } -public class UpdFoldable +public record UpdFoldable { [JsonPropertyName("Folded")] public bool? Folded { get; set; } } -public class UpdFireMode +public record UpdFireMode { [JsonPropertyName("FireMode")] public string? FireMode { get; set; } } -public class UpdFoodDrink +public record UpdFoodDrink { [JsonPropertyName("HpPercent")] public double? HpPercent { get; set; } } -public class UpdKey +public record UpdKey { [JsonPropertyName("NumberOfUsages")] public double? NumberOfUsages { get; set; } } -public class UpdResource +public record UpdResource { [JsonPropertyName("Value")] public double? Value { get; set; } @@ -202,7 +202,7 @@ public class UpdResource public double? UnitsConsumed { get; set; } } -public class UpdLight +public record UpdLight { [JsonPropertyName("IsActive")] public bool? IsActive { get; set; } @@ -211,7 +211,7 @@ public class UpdLight public int? SelectedMode { get; set; } } -public class UpdDogtag +public record UpdDogtag { [JsonPropertyName("AccountId")] public string? AccountId { get; set; } @@ -247,19 +247,19 @@ public class UpdDogtag public string? WeaponName { get; set; } } -public class UpdSideEffect +public record UpdSideEffect { [JsonPropertyName("Value")] public double? Value { get; set; } } -public class UpdRepairKit +public record UpdRepairKit { [JsonPropertyName("Resource")] public double? Resource { get; set; } } -public class UpdCultistAmulet +public record UpdCultistAmulet { [JsonPropertyName("NumberOfUsages")] public double? NumberOfUsages { get; set; } diff --git a/Core/Models/Eft/Common/Tables/LocationServices.cs b/Core/Models/Eft/Common/Tables/LocationServices.cs index e56ec2a9..6d4e3a5b 100644 --- a/Core/Models/Eft/Common/Tables/LocationServices.cs +++ b/Core/Models/Eft/Common/Tables/LocationServices.cs @@ -3,7 +3,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class LocationServices +public record LocationServices { [JsonPropertyName("TraderServerSettings")] public TraderServerSettings? TraderServerSettings { get; set; } @@ -12,13 +12,13 @@ public class LocationServices public BtrServerSettings? BtrServerSettings { get; set; } } -public class TraderServerSettings +public record TraderServerSettings { [JsonPropertyName("TraderServices")] public TraderServices? TraderServices { get; set; } } -public class TraderServices +public record TraderServices { [JsonPropertyName("ExUsecLoyalty")] public TraderService? ExUsecLoyalty { get; set; } @@ -42,7 +42,7 @@ public class TraderServices public TraderService? TransitItemsDelivery { get; set; } } -public class TraderService +public record TraderService { [JsonPropertyName("TraderId")] public string? TraderId { get; set; } @@ -61,7 +61,7 @@ public class TraderService public List? UniqueItems { get; set; } } -public class ServiceRequirements +public record ServiceRequirements { [JsonPropertyName("CompletedQuests")] public List? CompletedQuests { get; set; } @@ -71,25 +71,25 @@ public class ServiceRequirements public Dictionary? Standings { get; set; } } -public class CompletedQuest +public record CompletedQuest { [JsonPropertyName("QuestId")] public string? QuestId { get; set; } } -public class StandingRequirement +public record StandingRequirement { [JsonPropertyName("Value")] public double? Value { get; set; } } -public class ServiceItemCostDetails +public record ServiceItemCostDetails { [JsonPropertyName("Count")] public int? Count { get; set; } } -public class BtrServerSettings +public record BtrServerSettings { [JsonPropertyName("ChanceSpawn")] public double? ChanceSpawn { get; set; } @@ -137,7 +137,7 @@ public class BtrServerSettings public Dictionary? ServerMapBTRSettings { get; set; } } -public class ServerMapBtrsettings +public record ServerMapBtrsettings { [JsonPropertyName("MapID")] public string? MapID { get; set; } diff --git a/Core/Models/Eft/Common/Tables/LocationsBase.cs b/Core/Models/Eft/Common/Tables/LocationsBase.cs index ab2d3c4d..78a4c2c0 100644 --- a/Core/Models/Eft/Common/Tables/LocationsBase.cs +++ b/Core/Models/Eft/Common/Tables/LocationsBase.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class LocationsBase +public record LocationsBase { [JsonPropertyName("locations")] public Locations? Locations { get; set; } @@ -11,12 +11,12 @@ public class LocationsBase public List? Paths { get; set; } } -public class Locations +public record Locations { // Add properties as necessary } -public class Path +public record Path { [JsonPropertyName("Source")] public string? Source { get; set; } diff --git a/Core/Models/Eft/Common/Tables/LocationsGenerateAllResponse.cs b/Core/Models/Eft/Common/Tables/LocationsGenerateAllResponse.cs index 4a6c36f1..f4915e4e 100644 --- a/Core/Models/Eft/Common/Tables/LocationsGenerateAllResponse.cs +++ b/Core/Models/Eft/Common/Tables/LocationsGenerateAllResponse.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class LocationsGenerateAllResponse +public record LocationsGenerateAllResponse { [JsonPropertyName("locations")] public Dictionary Locations { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Match.cs b/Core/Models/Eft/Common/Tables/Match.cs index 0d806095..03de4185 100644 --- a/Core/Models/Eft/Common/Tables/Match.cs +++ b/Core/Models/Eft/Common/Tables/Match.cs @@ -2,13 +2,13 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class Match +public record Match { [JsonPropertyName("metrics")] public Metrics? Metrics { get; set; } } -public class Metrics +public record Metrics { [JsonPropertyName("Keys")] public List? Keys { get; set; } @@ -27,4 +27,4 @@ public class Metrics [JsonPropertyName("PauseReasons")] public List? PauseReasons { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/Tables/Prestige.cs b/Core/Models/Eft/Common/Tables/Prestige.cs index 666e8197..d7c3cdfc 100644 --- a/Core/Models/Eft/Common/Tables/Prestige.cs +++ b/Core/Models/Eft/Common/Tables/Prestige.cs @@ -2,13 +2,13 @@ using System.Text.Json.Serialization; -public class Prestige +public record Prestige { [JsonPropertyName("elements")] public List? Elements { get; set; } } -public class PrestigeElement +public record PrestigeElement { [JsonPropertyName("id")] public string? Id { get; set; } @@ -29,7 +29,7 @@ public class PrestigeElement public string? BigImage { get; set; } } -public class TransferConfigs +public record TransferConfigs { [JsonPropertyName("stashConfig")] public StashPrestigeConfig? StashConfig { get; set; } @@ -41,7 +41,7 @@ public class TransferConfigs public PrestigeMasteringConfig? MasteringConfig { get; set; } } -public class StashPrestigeConfig +public record StashPrestigeConfig { [JsonPropertyName("xCellCount")] public int? XCellCount { get; set; } @@ -53,7 +53,7 @@ public class StashPrestigeConfig public StashPrestigeFilters? Filters { get; set; } } -public class StashPrestigeFilters +public record StashPrestigeFilters { [JsonPropertyName("includedItems")] public List? IncludedItems { get; set; } @@ -62,13 +62,13 @@ public class StashPrestigeFilters public List? ExcludedItems { get; set; } } -public class PrestigeSkillConfig +public record PrestigeSkillConfig { [JsonPropertyName("transferMultiplier")] public double? TransferMultiplier { get; set; } } -public class PrestigeMasteringConfig +public record PrestigeMasteringConfig { [JsonPropertyName("transferMultiplier")] public double? TransferMultiplier { get; set; } diff --git a/Core/Models/Eft/Common/Tables/ProfileTemplate.cs b/Core/Models/Eft/Common/Tables/ProfileTemplate.cs index 35525c46..20426cf0 100644 --- a/Core/Models/Eft/Common/Tables/ProfileTemplate.cs +++ b/Core/Models/Eft/Common/Tables/ProfileTemplate.cs @@ -4,7 +4,7 @@ using Core.Utils.Extensions; namespace Core.Models.Eft.Common.Tables; -public class ProfileTemplates +public record ProfileTemplates { [JsonPropertyName("Standard")] public ProfileSides? Standard { get; set; } @@ -42,7 +42,7 @@ public class ProfileTemplates } } -public class ProfileSides +public record ProfileSides { [JsonPropertyName("descriptionLocaleKey")] public string? DescriptionLocaleKey { get; set; } @@ -62,7 +62,7 @@ public class ProfileSides } } -public class TemplateSide +public record TemplateSide { [JsonPropertyName("character")] public PmcData? Character { get; set; } @@ -86,7 +86,7 @@ public class TemplateSide public object? WeaponBuilds { get; set; } } -public class ProfileTraderTemplate +public record ProfileTraderTemplate { [JsonPropertyName("initialLoyaltyLevel")] public Dictionary? InitialLoyaltyLevel { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Quest.cs b/Core/Models/Eft/Common/Tables/Quest.cs index 66e6000f..d0abe9da 100644 --- a/Core/Models/Eft/Common/Tables/Quest.cs +++ b/Core/Models/Eft/Common/Tables/Quest.cs @@ -4,7 +4,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class Quest +public record Quest { /// /// SPT addition - human readable quest name @@ -133,7 +133,7 @@ public class Quest /// /// Same as BotBase.Quests /// -public class QuestStatus +public record QuestStatus { [JsonPropertyName("id")] public string? Id { get; set; } @@ -160,7 +160,7 @@ public class QuestStatus public double? AvailableAfter { get; set; } } -public class QuestConditionTypes +public record QuestConditionTypes { [JsonPropertyName("Started")] public List? Started { get; set; } @@ -178,7 +178,7 @@ public class QuestConditionTypes public List? Fail { get; set; } } -public class QuestCondition +public record QuestCondition { [JsonPropertyName("id")] public string? Id { get; set; } @@ -314,7 +314,7 @@ public class QuestCondition } -public class QuestConditionCounter +public record QuestConditionCounter { [JsonPropertyName("id")] public string? Id { get; set; } @@ -323,7 +323,7 @@ public class QuestConditionCounter public List? Conditions { get; set; } } -public class QuestConditionCounterCondition +public record QuestConditionCounterCondition { [JsonPropertyName("id")] public string? Id { get; set; } @@ -414,7 +414,7 @@ public class QuestConditionCounterCondition } -public class EnemyHealthEffect +public record EnemyHealthEffect { [JsonPropertyName("bodyParts")] public List? BodyParts { get; set; } @@ -423,7 +423,7 @@ public class EnemyHealthEffect public List? Effects { get; set; } } -public class ValueCompare +public record ValueCompare { [JsonPropertyName("compareMethod")] public string? CompareMethod { get; set; } @@ -432,7 +432,7 @@ public class ValueCompare public double? Value { get; set; } } -public class CounterConditionDistance +public record CounterConditionDistance { [JsonPropertyName("value")] public int? Value { get; set; } @@ -441,7 +441,7 @@ public class CounterConditionDistance public string? CompareMethod { get; set; } } -public class DaytimeCounter +public record DaytimeCounter { [JsonPropertyName("from")] public int? From { get; set; } @@ -450,7 +450,7 @@ public class DaytimeCounter public int? To { get; set; } } -public class VisibilityCondition +public record VisibilityCondition { [JsonPropertyName("id")] public string? Id { get; set; } @@ -471,7 +471,7 @@ public class VisibilityCondition public string? ConditionType { get; set; } } -public class QuestRewards +public record QuestRewards { [JsonPropertyName("AvailableForStart")] public List? AvailableForStart { get; set; } diff --git a/Core/Models/Eft/Common/Tables/RepeatableQuests.cs b/Core/Models/Eft/Common/Tables/RepeatableQuests.cs index add060cc..da0dc8ca 100644 --- a/Core/Models/Eft/Common/Tables/RepeatableQuests.cs +++ b/Core/Models/Eft/Common/Tables/RepeatableQuests.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Common.Tables; -public class RepeatableQuest : Quest +public record RepeatableQuest : Quest { [JsonPropertyName("changeCost")] public List? ChangeCost { get; set; } @@ -32,7 +32,7 @@ public class RepeatableQuest : Quest public RepeatableQuestStatus? QuestStatus { get; set; } } -public class RepeatableQuestDatabase +public record RepeatableQuestDatabase { [JsonPropertyName("templates")] public RepeatableTemplates? Templates { get; set; } @@ -47,7 +47,7 @@ public class RepeatableQuestDatabase public List? Samples { get; set; } } -public class RepeatableQuestStatus +public record RepeatableQuestStatus { [JsonPropertyName("id")] public string? Id { get; set; } @@ -68,7 +68,7 @@ public class RepeatableQuestStatus public object? StatusTimers { get; set; } // Use object for any type } -public class RepeatableTemplates +public record RepeatableTemplates { [JsonPropertyName("Elimination")] public Quest? Elimination { get; set; } @@ -83,7 +83,7 @@ public class RepeatableTemplates public Quest? Pickup { get; set; } } -public class PmcDataRepeatableQuest +public record PmcDataRepeatableQuest { [JsonPropertyName("id")] public string? Id { get; set; } @@ -113,7 +113,7 @@ public class PmcDataRepeatableQuest public int? FreeChangesAvailable { get; set; } } -public class ChangeRequirement +public record ChangeRequirement { [JsonPropertyName("changeCost")] public List? ChangeCost { get; set; } @@ -122,7 +122,7 @@ public class ChangeRequirement public double? ChangeStandingCost { get; set; } } -public class ChangeCost +public record ChangeCost { [JsonPropertyName("templateId")] public string? TemplateId { get; set; } @@ -133,19 +133,19 @@ public class ChangeCost // Config Options -public class RewardOptions +public record RewardOptions { [JsonPropertyName("itemsBlacklist")] public List? ItemsBlacklist { get; set; } } -public class Options +public record Options { [JsonPropertyName("Completion")] public CompletionFilter? Completion { get; set; } } -public class CompletionFilter +public record CompletionFilter { [JsonPropertyName("itemsBlacklist")] public List? ItemsBlacklist { get; set; } @@ -154,7 +154,7 @@ public class CompletionFilter public List? ItemsWhitelist { get; set; } } -public class ItemsBlacklist +public record ItemsBlacklist { [JsonPropertyName("minPlayerLevel")] public int? MinPlayerLevel { get; set; } @@ -163,7 +163,7 @@ public class ItemsBlacklist public List? ItemIds { get; set; } } -public class ItemsWhitelist +public record ItemsWhitelist { [JsonPropertyName("minPlayerLevel")] public int? MinPlayerLevel { get; set; } @@ -172,7 +172,7 @@ public class ItemsWhitelist public List? ItemIds { get; set; } } -public class SampleQuests +public record SampleQuests { [JsonPropertyName("_id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Reward.cs b/Core/Models/Eft/Common/Tables/Reward.cs index 5b8a4836..0993d578 100644 --- a/Core/Models/Eft/Common/Tables/Reward.cs +++ b/Core/Models/Eft/Common/Tables/Reward.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Common.Tables; -public class Reward +public record Reward { [JsonPropertyName("value")] public object? Value { get; set; } // TODO: Can be either string or number diff --git a/Core/Models/Eft/Common/Tables/TemplateItem.cs b/Core/Models/Eft/Common/Tables/TemplateItem.cs index b51628fe..53f4d607 100644 --- a/Core/Models/Eft/Common/Tables/TemplateItem.cs +++ b/Core/Models/Eft/Common/Tables/TemplateItem.cs @@ -3,7 +3,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class TemplateItem +public record TemplateItem { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -24,7 +24,7 @@ public class TemplateItem public string? Prototype { get; set; } } -public class Props +public record Props { [JsonPropertyName("AllowSpawnOnLocations")] public List? AllowSpawnOnLocations { get; set; } @@ -1359,7 +1359,7 @@ public class Props public Dictionary OtherProperties { get; set; } } -public class WeaponRecoilSettings +public record WeaponRecoilSettings { [JsonPropertyName("Enable")] public bool? Enable { get; set; } @@ -1368,7 +1368,7 @@ public class WeaponRecoilSettings public List? Values { get; set; } } -public class WeaponRecoilSettingValues +public record WeaponRecoilSettingValues { [JsonPropertyName("Enable")] public bool? Enable { get; set; } @@ -1380,7 +1380,7 @@ public class WeaponRecoilSettingValues public string? Target { get; set; } } -public class WeaponRecoilProcess +public record WeaponRecoilProcess { [JsonPropertyName("ComponentType")] public string? ComponentType { get; set; } @@ -1398,13 +1398,13 @@ public class WeaponRecoilProcess public WeaponRecoilTransformationCurve? TransformationCurve { get; set; } } -public class WeaponRecoilTransformationCurve +public record WeaponRecoilTransformationCurve { [JsonPropertyName("Keys")] public List? Keys { get; set; } } -public class WeaponRecoilTransformationCurveKey +public record WeaponRecoilTransformationCurveKey { [JsonPropertyName("inTangent")] public double? InTangent { get; set; } @@ -1419,7 +1419,7 @@ public class WeaponRecoilTransformationCurveKey public double? Value { get; set; } } -public class HealthEffect +public record HealthEffect { [JsonPropertyName("type")] public string? Type { get; set; } @@ -1428,7 +1428,7 @@ public class HealthEffect public double? Value { get; set; } } -public class Prefab +public record Prefab { [JsonPropertyName("path")] public string? Path { get; set; } @@ -1437,7 +1437,7 @@ public class Prefab public string? Rcid { get; set; } } -public class Grid +public record Grid { [JsonPropertyName("_name")] public string? Name { get; set; } @@ -1455,7 +1455,7 @@ public class Grid public string? Proto { get; set; } } -public class GridProps +public record GridProps { [JsonPropertyName("filters")] public List? Filters { get; set; } @@ -1479,7 +1479,7 @@ public class GridProps public bool? IsSortingTable { get; set; } } -public class GridFilter +public record GridFilter { [JsonPropertyName("Filter")] public List? Filter { get; set; } @@ -1491,7 +1491,7 @@ public class GridFilter public bool? Locked { get; set; } } -public class Slot +public record Slot { [JsonPropertyName("_name")] public string? Name { get; set; } @@ -1518,7 +1518,7 @@ public class Slot public string? Proto { get; set; } } -public class SlotProps +public record SlotProps { [JsonPropertyName("filters")] public List? Filters { get; set; } @@ -1527,7 +1527,7 @@ public class SlotProps public double? MaxStackCount { get; set; } } -public class SlotFilter +public record SlotFilter { [JsonPropertyName("Shift")] public double? Shift { get; set; } @@ -1557,7 +1557,7 @@ public class SlotFilter public bool? BluntDamageReduceFromSoftArmor { get; set; } } -public class StackSlot +public record StackSlot { [JsonPropertyName("_name")] public string? Name { get; set; } @@ -1581,13 +1581,13 @@ public class StackSlot public object? Upd { get; set; } // TODO: object here } -public class StackSlotProps +public record StackSlotProps { [JsonPropertyName("filters")] public List? Filters { get; set; } } -public class RandomLootSettings +public record RandomLootSettings { [JsonPropertyName("allowToSpawnIdenticalItems")] public bool? AllowToSpawnIdenticalItems { get; set; } @@ -1614,7 +1614,7 @@ public class RandomLootSettings public double? MinCount { get; set; } } -public class RandomLootExcluded +public record RandomLootExcluded { [JsonPropertyName("categoryTemplates")] public List? CategoryTemplates { get; set; } // TODO: object here @@ -1626,7 +1626,7 @@ public class RandomLootExcluded public List? Templates { get; set; } // TODO: object here } -public class EffectsHealth +public record EffectsHealth { [JsonPropertyName("Energy")] public EffectsHealthProps? Energy { get; set; } @@ -1635,13 +1635,13 @@ public class EffectsHealth public EffectsHealthProps? Hydration { get; set; } } -public class EffectsHealthProps +public record EffectsHealthProps { [JsonPropertyName("value")] public double? Value { get; set; } } -public class EffectsDamage +public record EffectsDamage { [JsonPropertyName("Pain")] public EffectDamageProps? Pain { get; set; } @@ -1665,7 +1665,7 @@ public class EffectsDamage public EffectDamageProps? DestroyedPart { get; set; } } -public class EffectDamageProps +public record EffectDamageProps { [JsonPropertyName("delay")] public double? Delay { get; set; } @@ -1686,7 +1686,7 @@ public class EffectDamageProps public double? HealthPenaltyMax { get; set; } } -public class Color +public record Color { [JsonPropertyName("r")] public double? R { get; set; } @@ -1701,7 +1701,7 @@ public class Color public double? A { get; set; } } -public class ShotsGroupSettings +public record ShotsGroupSettings { [JsonPropertyName("EndShotIndex")] public double? EndShotIndex { get; set; } diff --git a/Core/Models/Eft/Common/Tables/Trader.cs b/Core/Models/Eft/Common/Tables/Trader.cs index a20c5142..4d64e881 100644 --- a/Core/Models/Eft/Common/Tables/Trader.cs +++ b/Core/Models/Eft/Common/Tables/Trader.cs @@ -5,7 +5,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Eft.Common.Tables; -public class Trader +public record Trader { [JsonPropertyName("assort")] public TraderAssort? Assort { get; set; } @@ -26,7 +26,7 @@ public class Trader public List? Services { get; set; } } -public class TraderBase +public record TraderBase { [JsonPropertyName("refreshTraderRagfairOffers")] public bool? RefreshTraderRagfairOffers { get; set; } @@ -119,7 +119,7 @@ public class TraderBase public bool? UnlockedByDefault { get; set; } } -public class ItemBuyData +public record ItemBuyData { [JsonPropertyName("category")] public List? Category { get; set; } @@ -128,7 +128,7 @@ public class ItemBuyData public List? IdList { get; set; } } -public class TraderInsurance +public record TraderInsurance { [JsonPropertyName("availability")] public bool? Availability { get; set; } @@ -149,7 +149,7 @@ public class TraderInsurance public double? MinReturnHour { get; set; } } -public class TraderLoyaltyLevel +public record TraderLoyaltyLevel { [JsonPropertyName("buy_price_coef")] public double? BuyPriceCoefficient { get; set; } @@ -177,7 +177,7 @@ public class TraderLoyaltyLevel public double? RepairPriceCoefficient { get; set; } } -public class TraderRepair +public record TraderRepair { [JsonPropertyName("availability")] public bool? Availability { get; set; } @@ -203,7 +203,7 @@ public class TraderRepair } -public class TraderAssort +public record TraderAssort { [JsonPropertyName("nextResupply")] public double? NextResupply { get; set; } @@ -218,7 +218,7 @@ public class TraderAssort public Dictionary? LoyalLevelItems { get; set; } } -public class BarterScheme +public record BarterScheme { [JsonPropertyName("count")] public double? Count { get; set; } @@ -240,7 +240,7 @@ public class BarterScheme public DogtagExchangeSide? Side { get; set; } } -public class Suit +public record Suit { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -267,7 +267,7 @@ public class Suit public SuitRequirements? Requirements { get; set; } } -public class SuitRequirements +public record SuitRequirements { [JsonPropertyName("achievementRequirements")] public List? AchievementRequirements { get; set; } @@ -294,7 +294,7 @@ public class SuitRequirements public string? RequiredTid { get; set; } } -public class ItemRequirement +public record ItemRequirement { [JsonPropertyName("count")] public double? Count { get; set; } diff --git a/Core/Models/Eft/Common/XY.cs b/Core/Models/Eft/Common/XY.cs index 9f0c8c39..91848d99 100644 --- a/Core/Models/Eft/Common/XY.cs +++ b/Core/Models/Eft/Common/XY.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Common; -public class XY +public record XY { [JsonPropertyName("x")] public double? X { get; set; } [JsonPropertyName("y")] public double? Y { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Common/XYZ.cs b/Core/Models/Eft/Common/XYZ.cs index 34ac9b10..cd693c30 100644 --- a/Core/Models/Eft/Common/XYZ.cs +++ b/Core/Models/Eft/Common/XYZ.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Common; -public class XYZ +public record XYZ { [JsonPropertyName("x")] public double? X { get; set; } @@ -12,4 +12,4 @@ public class XYZ [JsonPropertyName("z")] public double? Z { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Customization/BuyClothingRequestData.cs b/Core/Models/Eft/Customization/BuyClothingRequestData.cs index f9b70409..5f583d1a 100644 --- a/Core/Models/Eft/Customization/BuyClothingRequestData.cs +++ b/Core/Models/Eft/Customization/BuyClothingRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Customization; -public class BuyClothingRequestData +public record BuyClothingRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "CustomizationBuy"; @@ -14,7 +14,7 @@ public class BuyClothingRequestData public List? Items { get; set; } } -public class PaymentItemForClothing +public record PaymentItemForClothing { [JsonPropertyName("del")] public bool? Del { get; set; } @@ -24,4 +24,4 @@ public class PaymentItemForClothing [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Customization/CustomizationSetRequest.cs b/Core/Models/Eft/Customization/CustomizationSetRequest.cs index 7e9bc68f..9dc8c708 100644 --- a/Core/Models/Eft/Customization/CustomizationSetRequest.cs +++ b/Core/Models/Eft/Customization/CustomizationSetRequest.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Customization; -public class CustomizationSetRequest +public record CustomizationSetRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "CustomizationSet"; @@ -11,7 +11,7 @@ public class CustomizationSetRequest public List? Customizations { get; set; } } -public class CustomizationSetOption +public record CustomizationSetOption { [JsonPropertyName("id")] public string? Id { get; set; } @@ -21,4 +21,4 @@ public class CustomizationSetOption [JsonPropertyName("source")] public string? Source { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Customization/WearClothingRequestData.cs b/Core/Models/Eft/Customization/WearClothingRequestData.cs index 399686a5..934ccb36 100644 --- a/Core/Models/Eft/Customization/WearClothingRequestData.cs +++ b/Core/Models/Eft/Customization/WearClothingRequestData.cs @@ -1,5 +1,5 @@ namespace Core.Models.Eft.Customization; -public class WearClothingRequestData +public record WearClothingRequestData { -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/AcceptFriendRequestData.cs b/Core/Models/Eft/Dialog/AcceptFriendRequestData.cs index 5fe145cf..2357d7c9 100644 --- a/Core/Models/Eft/Dialog/AcceptFriendRequestData.cs +++ b/Core/Models/Eft/Dialog/AcceptFriendRequestData.cs @@ -3,19 +3,19 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class AcceptFriendRequestData : BaseFriendRequest +public record AcceptFriendRequestData : BaseFriendRequest { } -public class CancelFriendRequestData : BaseFriendRequest +public record CancelFriendRequestData : BaseFriendRequest { } -public class DeclineFriendRequestData : BaseFriendRequest +public record DeclineFriendRequestData : BaseFriendRequest { } -public class BaseFriendRequest : IRequestData +public record BaseFriendRequest : IRequestData { [JsonPropertyName("profileId")] public string? ProfileId { get; set; } diff --git a/Core/Models/Eft/Dialog/AddUserGroupMailRequest.cs b/Core/Models/Eft/Dialog/AddUserGroupMailRequest.cs index 1f58f93f..a716d5ef 100644 --- a/Core/Models/Eft/Dialog/AddUserGroupMailRequest.cs +++ b/Core/Models/Eft/Dialog/AddUserGroupMailRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class AddUserGroupMailRequest : IRequestData +public record AddUserGroupMailRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/ChangeGroupMailOwnerRequest.cs b/Core/Models/Eft/Dialog/ChangeGroupMailOwnerRequest.cs index a6625404..de2343e2 100644 --- a/Core/Models/Eft/Dialog/ChangeGroupMailOwnerRequest.cs +++ b/Core/Models/Eft/Dialog/ChangeGroupMailOwnerRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class ChangeGroupMailOwnerRequest : IRequestData +public record ChangeGroupMailOwnerRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/ChatServer.cs b/Core/Models/Eft/Dialog/ChatServer.cs index a95550fd..cd8bbbcd 100644 --- a/Core/Models/Eft/Dialog/ChatServer.cs +++ b/Core/Models/Eft/Dialog/ChatServer.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Dialog; -public class ChatServer +public record ChatServer { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -33,11 +33,11 @@ public class ChatServer public bool? IsDeveloper { get; set; } } -public class Chat +public record Chat { [JsonPropertyName("_id")] public string? Id { get; set; } [JsonPropertyName("Members")] public int? Members { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/ClearMailMessageRequest.cs b/Core/Models/Eft/Dialog/ClearMailMessageRequest.cs index e1fee7c1..1039dada 100644 --- a/Core/Models/Eft/Dialog/ClearMailMessageRequest.cs +++ b/Core/Models/Eft/Dialog/ClearMailMessageRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class ClearMailMessageRequest : IRequestData +public record ClearMailMessageRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/CreateGroupMailRequest.cs b/Core/Models/Eft/Dialog/CreateGroupMailRequest.cs index ad4b8cf5..8c05d126 100644 --- a/Core/Models/Eft/Dialog/CreateGroupMailRequest.cs +++ b/Core/Models/Eft/Dialog/CreateGroupMailRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class CreateGroupMailRequest : IRequestData +public record CreateGroupMailRequest : IRequestData { [JsonPropertyName("Name")] public string? Name { get; set; } diff --git a/Core/Models/Eft/Dialog/DeleteFriendRequest.cs b/Core/Models/Eft/Dialog/DeleteFriendRequest.cs index 841d006e..ede5dffd 100644 --- a/Core/Models/Eft/Dialog/DeleteFriendRequest.cs +++ b/Core/Models/Eft/Dialog/DeleteFriendRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class DeleteFriendRequest : IRequestData +public record DeleteFriendRequest : IRequestData { [JsonPropertyName("friend_id")] public string? FriendId { get; set; } diff --git a/Core/Models/Eft/Dialog/FriendRequestData.cs b/Core/Models/Eft/Dialog/FriendRequestData.cs index fea8ad4e..d2972265 100644 --- a/Core/Models/Eft/Dialog/FriendRequestData.cs +++ b/Core/Models/Eft/Dialog/FriendRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class FriendRequestData : IRequestData +public record FriendRequestData : IRequestData { [JsonPropertyName("status")] public int? Status { get; set; } diff --git a/Core/Models/Eft/Dialog/FriendRequestSendResponse.cs b/Core/Models/Eft/Dialog/FriendRequestSendResponse.cs index 7de099eb..f0bde0ff 100644 --- a/Core/Models/Eft/Dialog/FriendRequestSendResponse.cs +++ b/Core/Models/Eft/Dialog/FriendRequestSendResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Dialog; -public class FriendRequestSendResponse +public record FriendRequestSendResponse { [JsonPropertyName("status")] public int? Status { get; set; } @@ -12,4 +12,4 @@ public class FriendRequestSendResponse [JsonPropertyName("retryAfter")] public int? RetryAfter { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/GetAllAttachmentsRequestData.cs b/Core/Models/Eft/Dialog/GetAllAttachmentsRequestData.cs index 3ba62fdf..e826f887 100644 --- a/Core/Models/Eft/Dialog/GetAllAttachmentsRequestData.cs +++ b/Core/Models/Eft/Dialog/GetAllAttachmentsRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class GetAllAttachmentsRequestData : IRequestData +public record GetAllAttachmentsRequestData : IRequestData { [JsonPropertyName("dialogId")] public string DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/GetAllAttachmentsResponse.cs b/Core/Models/Eft/Dialog/GetAllAttachmentsResponse.cs index dd1c56c2..4a49fee7 100644 --- a/Core/Models/Eft/Dialog/GetAllAttachmentsResponse.cs +++ b/Core/Models/Eft/Dialog/GetAllAttachmentsResponse.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Profile; namespace Core.Models.Eft.Dialog; -public class GetAllAttachmentsResponse +public record GetAllAttachmentsResponse { [JsonPropertyName("messages")] public List? Messages { get; set; } @@ -13,4 +13,4 @@ public class GetAllAttachmentsResponse [JsonPropertyName("hasMessagesWithRewards")] public bool? HasMessagesWithRewards { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/GetChatServerListRequestData.cs b/Core/Models/Eft/Dialog/GetChatServerListRequestData.cs index 1e8ac4ed..a07ab827 100644 --- a/Core/Models/Eft/Dialog/GetChatServerListRequestData.cs +++ b/Core/Models/Eft/Dialog/GetChatServerListRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class GetChatServerListRequestData : IRequestData +public record GetChatServerListRequestData : IRequestData { [JsonPropertyName("VersionId")] public string? VersionId { get; set; } diff --git a/Core/Models/Eft/Dialog/GetFriendListDataResponse.cs b/Core/Models/Eft/Dialog/GetFriendListDataResponse.cs index f2f8cb41..12e01572 100644 --- a/Core/Models/Eft/Dialog/GetFriendListDataResponse.cs +++ b/Core/Models/Eft/Dialog/GetFriendListDataResponse.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Profile; namespace Core.Models.Eft.Dialog; -public class GetFriendListDataResponse +public record GetFriendListDataResponse { [JsonPropertyName("Friends")] public List? Friends { get; set; } @@ -13,4 +13,4 @@ public class GetFriendListDataResponse [JsonPropertyName("InIgnoreList")] public List? InIgnoreList { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/GetMailDialogInfoRequestData.cs b/Core/Models/Eft/Dialog/GetMailDialogInfoRequestData.cs index 92f275d3..9b89bdaa 100644 --- a/Core/Models/Eft/Dialog/GetMailDialogInfoRequestData.cs +++ b/Core/Models/Eft/Dialog/GetMailDialogInfoRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class GetMailDialogInfoRequestData : IRequestData +public record GetMailDialogInfoRequestData : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/GetMailDialogListRequestData.cs b/Core/Models/Eft/Dialog/GetMailDialogListRequestData.cs index 94309af8..39126070 100644 --- a/Core/Models/Eft/Dialog/GetMailDialogListRequestData.cs +++ b/Core/Models/Eft/Dialog/GetMailDialogListRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class GetMailDialogListRequestData : IRequestData +public record GetMailDialogListRequestData : IRequestData { [JsonPropertyName("limit")] public int? Limit { get; set; } diff --git a/Core/Models/Eft/Dialog/GetMailDialogViewRequestData.cs b/Core/Models/Eft/Dialog/GetMailDialogViewRequestData.cs index 4d265587..05e65571 100644 --- a/Core/Models/Eft/Dialog/GetMailDialogViewRequestData.cs +++ b/Core/Models/Eft/Dialog/GetMailDialogViewRequestData.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class GetMailDialogViewRequestData : IRequestData +public record GetMailDialogViewRequestData : IRequestData { [JsonPropertyName("type")] public MessageType? Type { get; set; } diff --git a/Core/Models/Eft/Dialog/GetMailDialogViewResponseData.cs b/Core/Models/Eft/Dialog/GetMailDialogViewResponseData.cs index fad7d29b..76b50a45 100644 --- a/Core/Models/Eft/Dialog/GetMailDialogViewResponseData.cs +++ b/Core/Models/Eft/Dialog/GetMailDialogViewResponseData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Profile; namespace Core.Models.Eft.Dialog; -public class GetMailDialogViewResponseData +public record GetMailDialogViewResponseData { [JsonPropertyName("messages")] public List? Messages { get; set; } @@ -13,4 +13,4 @@ public class GetMailDialogViewResponseData [JsonPropertyName("hasMessagesWithRewards")] public bool? HasMessagesWithRewards { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Dialog/PinDialogRequestData.cs b/Core/Models/Eft/Dialog/PinDialogRequestData.cs index 49a1c81b..3501e411 100644 --- a/Core/Models/Eft/Dialog/PinDialogRequestData.cs +++ b/Core/Models/Eft/Dialog/PinDialogRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class PinDialogRequestData : IRequestData +public record PinDialogRequestData : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/RemoveDialogRequestData.cs b/Core/Models/Eft/Dialog/RemoveDialogRequestData.cs index b7ccccb4..bb093c70 100644 --- a/Core/Models/Eft/Dialog/RemoveDialogRequestData.cs +++ b/Core/Models/Eft/Dialog/RemoveDialogRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class RemoveDialogRequestData : IRequestData +public record RemoveDialogRequestData : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/RemoveMailMessageRequest.cs b/Core/Models/Eft/Dialog/RemoveMailMessageRequest.cs index 87ac9fd8..66fde976 100644 --- a/Core/Models/Eft/Dialog/RemoveMailMessageRequest.cs +++ b/Core/Models/Eft/Dialog/RemoveMailMessageRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class RemoveMailMessageRequest : IRequestData +public record RemoveMailMessageRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/RemoveUserGroupMailRequest.cs b/Core/Models/Eft/Dialog/RemoveUserGroupMailRequest.cs index 9ce86e8b..a091b515 100644 --- a/Core/Models/Eft/Dialog/RemoveUserGroupMailRequest.cs +++ b/Core/Models/Eft/Dialog/RemoveUserGroupMailRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class RemoveUserGroupMailRequest : IRequestData +public record RemoveUserGroupMailRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/SendMessageRequest.cs b/Core/Models/Eft/Dialog/SendMessageRequest.cs index a07ebdf8..aecbd0b5 100644 --- a/Core/Models/Eft/Dialog/SendMessageRequest.cs +++ b/Core/Models/Eft/Dialog/SendMessageRequest.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class SendMessageRequest : IRequestData +public record SendMessageRequest : IRequestData { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } diff --git a/Core/Models/Eft/Dialog/SetDialogReadRequestData.cs b/Core/Models/Eft/Dialog/SetDialogReadRequestData.cs index cad2c868..b2532c13 100644 --- a/Core/Models/Eft/Dialog/SetDialogReadRequestData.cs +++ b/Core/Models/Eft/Dialog/SetDialogReadRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Dialog; -public class SetDialogReadRequestData : IRequestData +public record SetDialogReadRequestData : IRequestData { [JsonPropertyName("dialogId")] public List? Dialogs { get; set; } diff --git a/Core/Models/Eft/Game/CheckVersionResponse.cs b/Core/Models/Eft/Game/CheckVersionResponse.cs index 6f41bd2c..7a28dc77 100644 --- a/Core/Models/Eft/Game/CheckVersionResponse.cs +++ b/Core/Models/Eft/Game/CheckVersionResponse.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Game; -public class CheckVersionResponse +public record CheckVersionResponse { [JsonPropertyName("isvalid")] public bool? IsValid { get; set; } [JsonPropertyName("latestVersion")] public string? LatestVersion { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/CurrentGroupResponse.cs b/Core/Models/Eft/Game/CurrentGroupResponse.cs index f1d26a0d..0d57e4b1 100644 --- a/Core/Models/Eft/Game/CurrentGroupResponse.cs +++ b/Core/Models/Eft/Game/CurrentGroupResponse.cs @@ -3,13 +3,13 @@ using Core.Models.Enums; namespace Core.Models.Eft.Game; -public class CurrentGroupResponse +public record CurrentGroupResponse { [JsonPropertyName("squad")] public List? Squad { get; set; } } -public class CurrentGroupSquadMember +public record CurrentGroupSquadMember { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -27,7 +27,7 @@ public class CurrentGroupSquadMember public bool? IsReady { get; set; } } -public class CurrentGroupMemberInfo +public record CurrentGroupMemberInfo { [JsonPropertyName("Nickname")] public string? Nickname { get; set; } @@ -40,4 +40,4 @@ public class CurrentGroupMemberInfo [JsonPropertyName("MemberCategory")] public MemberCategory? MemberCategory { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/GameConfigResponse.cs b/Core/Models/Eft/Game/GameConfigResponse.cs index 7b64e263..464669b4 100644 --- a/Core/Models/Eft/Game/GameConfigResponse.cs +++ b/Core/Models/Eft/Game/GameConfigResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Game; -public class GameConfigResponse +public record GameConfigResponse { [JsonPropertyName("aid")] public double? Aid { get; set; } @@ -48,7 +48,7 @@ public class GameConfigResponse public PurchasedGames? PurchasedGames { get; set; } } -public class PurchasedGames +public record PurchasedGames { [JsonPropertyName("eft")] public bool? IsEftPurchased { get; set; } @@ -57,7 +57,7 @@ public class PurchasedGames public bool? IsArenaPurchased { get; set; } } -public class Backend +public record Backend { [JsonPropertyName("Lobby")] public string? Lobby { get; set; } diff --git a/Core/Models/Eft/Game/GameEmptyCrcRequestData.cs b/Core/Models/Eft/Game/GameEmptyCrcRequestData.cs index 91b1f5df..03c5e030 100644 --- a/Core/Models/Eft/Game/GameEmptyCrcRequestData.cs +++ b/Core/Models/Eft/Game/GameEmptyCrcRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Game; -public class GameEmptyCrcRequestData : IRequestData +public record GameEmptyCrcRequestData : IRequestData { [JsonPropertyName("crc")] public int? Crc { get; set; } diff --git a/Core/Models/Eft/Game/GameKeepAliveResponse.cs b/Core/Models/Eft/Game/GameKeepAliveResponse.cs index 7020fb68..b0087123 100644 --- a/Core/Models/Eft/Game/GameKeepAliveResponse.cs +++ b/Core/Models/Eft/Game/GameKeepAliveResponse.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Game; -public class GameKeepAliveResponse +public record GameKeepAliveResponse { [JsonPropertyName("msg")] public string? Message { get; set; } [JsonPropertyName("utc_time")] public double? UtcTime { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/GameLogoutResponseData.cs b/Core/Models/Eft/Game/GameLogoutResponseData.cs index 52e6b891..2b81d5c9 100644 --- a/Core/Models/Eft/Game/GameLogoutResponseData.cs +++ b/Core/Models/Eft/Game/GameLogoutResponseData.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.Game; -public class GameLogoutResponseData +public record GameLogoutResponseData { [JsonPropertyName("status")] public string? Status { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/GameModeRequestData.cs b/Core/Models/Eft/Game/GameModeRequestData.cs index 62f0e98a..a17faa52 100644 --- a/Core/Models/Eft/Game/GameModeRequestData.cs +++ b/Core/Models/Eft/Game/GameModeRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Game; -public class GameModeRequestData : IRequestData +public record GameModeRequestData : IRequestData { [JsonPropertyName("sessionMode")] public string? SessionMode { get; set; } diff --git a/Core/Models/Eft/Game/GameModeResponse.cs b/Core/Models/Eft/Game/GameModeResponse.cs index cd3c21aa..49c7419f 100644 --- a/Core/Models/Eft/Game/GameModeResponse.cs +++ b/Core/Models/Eft/Game/GameModeResponse.cs @@ -8,7 +8,7 @@ public enum SessionMode PVE } -public class GameModeResponse +public record GameModeResponse { [JsonPropertyName("gameMode")] public string? GameMode { get; set; } diff --git a/Core/Models/Eft/Game/GameStartResponse.cs b/Core/Models/Eft/Game/GameStartResponse.cs index 8ea2a124..43972c15 100644 --- a/Core/Models/Eft/Game/GameStartResponse.cs +++ b/Core/Models/Eft/Game/GameStartResponse.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Game; -public class GameStartResponse +public record GameStartResponse { [JsonPropertyName("utc_time")] public double UtcTime { get; set; } diff --git a/Core/Models/Eft/Game/GetItemPricesResponse.cs b/Core/Models/Eft/Game/GetItemPricesResponse.cs index 3dcf90d6..890e8863 100644 --- a/Core/Models/Eft/Game/GetItemPricesResponse.cs +++ b/Core/Models/Eft/Game/GetItemPricesResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Game; -public class GetItemPricesResponse +public record GetItemPricesResponse { [JsonPropertyName("supplyNextTime")] public double? SupplyNextTime { get; set; } @@ -12,4 +12,4 @@ public class GetItemPricesResponse [JsonPropertyName("currencyCourses")] public Dictionary? CurrencyCourses { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/GetRaidTimeRequest.cs b/Core/Models/Eft/Game/GetRaidTimeRequest.cs index dcc62534..1175e52f 100644 --- a/Core/Models/Eft/Game/GetRaidTimeRequest.cs +++ b/Core/Models/Eft/Game/GetRaidTimeRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Game; -public class GetRaidTimeRequest : IRequestData +public record GetRaidTimeRequest : IRequestData { [JsonPropertyName("Side")] public string? Side { get; set; } diff --git a/Core/Models/Eft/Game/GetRaidTimeResponse.cs b/Core/Models/Eft/Game/GetRaidTimeResponse.cs index 2f06aba5..9d18ebde 100644 --- a/Core/Models/Eft/Game/GetRaidTimeResponse.cs +++ b/Core/Models/Eft/Game/GetRaidTimeResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Game; -public class GetRaidTimeResponse +public record GetRaidTimeResponse { [JsonPropertyName("RaidTimeMinutes")] public int? RaidTimeMinutes { get; set; } @@ -17,7 +17,7 @@ public class GetRaidTimeResponse public List? ExitChanges { get; set; } } -public class ExtractChange +public record ExtractChange { [JsonPropertyName("Name")] public string? Name { get; set; } @@ -30,4 +30,4 @@ public class ExtractChange [JsonPropertyName("Chance")] public int? Chance { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/SendSurveyOpinionRequest.cs b/Core/Models/Eft/Game/SendSurveyOpinionRequest.cs index 154a624a..869e125c 100644 --- a/Core/Models/Eft/Game/SendSurveyOpinionRequest.cs +++ b/Core/Models/Eft/Game/SendSurveyOpinionRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Game; -public class SendSurveyOpinionRequest : IRequestData +public record SendSurveyOpinionRequest : IRequestData { [JsonPropertyName("surveyId")] public int? SurveyId { get; set; } @@ -12,7 +12,7 @@ public class SendSurveyOpinionRequest : IRequestData public List? Answers { get; set; } } -public class SurveyOpinionAnswer +public record SurveyOpinionAnswer { [JsonPropertyName("questionId")] public int? QuestionId { get; set; } diff --git a/Core/Models/Eft/Game/ServerDetails.cs b/Core/Models/Eft/Game/ServerDetails.cs index 1f7f2bff..9713cceb 100644 --- a/Core/Models/Eft/Game/ServerDetails.cs +++ b/Core/Models/Eft/Game/ServerDetails.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Game; -public class ServerDetails +public record ServerDetails { [JsonPropertyName("ip")] public string? Ip { get; set; } [JsonPropertyName("port")] public int? Port { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/SurveyResponseData.cs b/Core/Models/Eft/Game/SurveyResponseData.cs index 439e49a5..a9f7c754 100644 --- a/Core/Models/Eft/Game/SurveyResponseData.cs +++ b/Core/Models/Eft/Game/SurveyResponseData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Game; -public class SurveyResponseData +public record SurveyResponseData { [JsonPropertyName("locale")] public Dictionary>? Locale { get; set; } @@ -11,7 +11,7 @@ public class SurveyResponseData public Survey? Survey { get; set; } } -public class Survey +public record Survey { [JsonPropertyName("id")] public int? Id { get; set; } @@ -32,7 +32,7 @@ public class Survey public bool? IsNew { get; set; } } -public class WelcomePageData +public record WelcomePageData { [JsonPropertyName("titleLocaleKey")] public string? TitleLocaleKey { get; set; } @@ -44,13 +44,13 @@ public class WelcomePageData public string? DescriptionLocaleKey { get; set; } } -public class FarewellPageData +public record FarewellPageData { [JsonPropertyName("textLocaleKey")] public string? TextLocaleKey { get; set; } } -public class SurveyQuestion +public record SurveyQuestion { [JsonPropertyName("id")] public int? Id { get; set; } @@ -74,7 +74,7 @@ public class SurveyQuestion public List? Answers { get; set; } } -public class SurveyAnswer +public record SurveyAnswer { [JsonPropertyName("id")] public int? Id { get; set; } @@ -87,4 +87,4 @@ public class SurveyAnswer [JsonPropertyName("localeKey")] public string? LocaleKey { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Game/VersionValidateRequestData.cs b/Core/Models/Eft/Game/VersionValidateRequestData.cs index 64926054..11e3cc80 100644 --- a/Core/Models/Eft/Game/VersionValidateRequestData.cs +++ b/Core/Models/Eft/Game/VersionValidateRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Game; -public class VersionValidateRequestData : IRequestData +public record VersionValidateRequestData : IRequestData { [JsonPropertyName("version")] public Version? Version { get; set; } @@ -12,7 +12,7 @@ public class VersionValidateRequestData : IRequestData public bool? Develop { get; set; } } -public class Version +public record Version { [JsonPropertyName("major")] public string? Major { get; set; } diff --git a/Core/Models/Eft/Health/HealthTreatmentRequestData.cs b/Core/Models/Eft/Health/HealthTreatmentRequestData.cs index ad4e81d8..becbff44 100644 --- a/Core/Models/Eft/Health/HealthTreatmentRequestData.cs +++ b/Core/Models/Eft/Health/HealthTreatmentRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Health; -public class HealthTreatmentRequestData +public record HealthTreatmentRequestData { [JsonPropertyName("Action")] public string Action { get; set; } = "RestoreHealth"; @@ -20,7 +20,7 @@ public class HealthTreatmentRequestData public long? Timestamp { get; set; } } -public class ItemCost +public record ItemCost { /** Id of stack to take money from */ [JsonPropertyName("id")] @@ -31,7 +31,7 @@ public class ItemCost public int? Count { get; set; } } -public class Difference +public record Difference { [JsonPropertyName("BodyParts")] public BodyParts? BodyParts { get; set; } @@ -43,7 +43,7 @@ public class Difference public int? Hydration { get; set; } } -public class BodyParts +public record BodyParts { [JsonPropertyName("Head")] public BodyPart? Head { get; set; } @@ -65,4 +65,4 @@ public class BodyParts [JsonPropertyName("RightLeg")] public BodyPart? RightLeg { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Health/OffraidEatRequestData.cs b/Core/Models/Eft/Health/OffraidEatRequestData.cs index 76f880dc..3244c60b 100644 --- a/Core/Models/Eft/Health/OffraidEatRequestData.cs +++ b/Core/Models/Eft/Health/OffraidEatRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Health; -public class OffraidEatRequestData : BaseInteractionRequestData +public record OffraidEatRequestData : BaseInteractionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Eat"; @@ -16,4 +16,4 @@ public class OffraidEatRequestData : BaseInteractionRequestData [JsonPropertyName("time")] public int? Time { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Health/OffraidHealRequestData.cs b/Core/Models/Eft/Health/OffraidHealRequestData.cs index d3d7285a..580b5178 100644 --- a/Core/Models/Eft/Health/OffraidHealRequestData.cs +++ b/Core/Models/Eft/Health/OffraidHealRequestData.cs @@ -2,7 +2,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Health; -public class OffraidHealRequestData : BaseInteractionRequestData +public record OffraidHealRequestData : BaseInteractionRequestData { public override string? Action { get; set; } = "Heal"; public string? Item { get; set; } @@ -21,4 +21,4 @@ public enum BodyPart LeftLeg, RightLeg, Common -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Health/SyncHealthRequestData.cs b/Core/Models/Eft/Health/SyncHealthRequestData.cs index fba8921d..7e79bced 100644 --- a/Core/Models/Eft/Health/SyncHealthRequestData.cs +++ b/Core/Models/Eft/Health/SyncHealthRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Health; -public class SyncHealthRequestData +public record SyncHealthRequestData { [JsonPropertyName("Health")] public List? Health { get; set; } @@ -20,7 +20,7 @@ public class SyncHealthRequestData public double? Temperature { get; set; } } -public class BodyPartCollection +public record BodyPartCollection { [JsonPropertyName("Head")] public BodyPartHealth? Head { get; set; } @@ -44,7 +44,7 @@ public class BodyPartCollection public BodyPartHealth? RightLeg { get; set; } } -public class BodyPartHealth +public record BodyPartHealth { [JsonPropertyName("Maximum")] public int? Maximum { get; set; } diff --git a/Core/Models/Eft/Health/WorkoutData.cs b/Core/Models/Eft/Health/WorkoutData.cs index d08de768..b7d9d7dc 100644 --- a/Core/Models/Eft/Health/WorkoutData.cs +++ b/Core/Models/Eft/Health/WorkoutData.cs @@ -11,7 +11,7 @@ public class WorkoutData : Dictionary public WorkoutSkills? Skills { get; set; } } -public class WorkoutSkills +public record WorkoutSkills { [JsonPropertyName("Common")] public List? Common { get; set; } @@ -26,7 +26,7 @@ public class WorkoutSkills public int? Points { get; set; } } -public class WorkoutSkillCommon +public record WorkoutSkillCommon { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -41,7 +41,7 @@ public class WorkoutSkillCommon public long? LastAccess { get; set; } } -public class WorkoutEffects +public record WorkoutEffects { [JsonPropertyName("Effects")] public WorkoutEffectsParts? Effects { get; set; } @@ -53,7 +53,7 @@ public class WorkoutEffects public int? Energy { get; set; } } -public class WorkoutEffectsParts +public record WorkoutEffectsParts { [JsonPropertyName("Head")] public WorkoutBodyPart? Head { get; set; } @@ -80,7 +80,7 @@ public class WorkoutEffectsParts public WorkoutBodyPart? Common { get; set; } } -public class WorkoutBodyPart +public record WorkoutBodyPart { [JsonPropertyName("Regeneration")] public int? Regeneration { get; set; } diff --git a/Core/Models/Eft/Hideout/HandleQTEEventRequestData.cs b/Core/Models/Eft/Hideout/HandleQTEEventRequestData.cs index 103e79bc..1c0adafc 100644 --- a/Core/Models/Eft/Hideout/HandleQTEEventRequestData.cs +++ b/Core/Models/Eft/Hideout/HandleQTEEventRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HandleQTEEventRequestData +public record HandleQTEEventRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -17,4 +17,4 @@ public class HandleQTEEventRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutArea.cs b/Core/Models/Eft/Hideout/HideoutArea.cs index 40ea60de..e90ac42d 100644 --- a/Core/Models/Eft/Hideout/HideoutArea.cs +++ b/Core/Models/Eft/Hideout/HideoutArea.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Hideout; -public class HideoutArea +public record HideoutArea { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -40,7 +40,7 @@ public class HideoutArea public Dictionary? Stages { get; set; } } -public class HideoutAreaRequirement +public record HideoutAreaRequirement { [JsonPropertyName("areaType")] public int? AreaType { get; set; } @@ -52,7 +52,7 @@ public class HideoutAreaRequirement public string? Type { get; set; } } -public class Stage +public record Stage { [JsonPropertyName("autoUpgrade")] public bool? AutoUpgrade { get; set; } @@ -86,7 +86,7 @@ public class Stage public int? Slots { get; set; } } -public class StageImprovement +public record StageImprovement { [JsonPropertyName("id")] public string? Id { get; set; } @@ -101,7 +101,7 @@ public class StageImprovement public List? Requirements { get; set; } } -public class StageImprovementBonus +public record StageImprovementBonus { [JsonPropertyName("id")] public string? Id { get; set; } @@ -126,7 +126,7 @@ public class StageImprovementBonus public bool? IsVisible { get; set; } } -public class StageImprovementRequirement +public record StageImprovementRequirement { [JsonPropertyName("count")] public int? Count { get; set; } @@ -147,7 +147,7 @@ public class StageImprovementRequirement public string? Type { get; set; } } -public class StageRequirement : RequirementBase +public record StageRequirement : RequirementBase { [JsonPropertyName("areaType")] public int? AreaType { get; set; } diff --git a/Core/Models/Eft/Hideout/HideoutCircleOfCultistProductionStartRequestData.cs b/Core/Models/Eft/Hideout/HideoutCircleOfCultistProductionStartRequestData.cs index fa09cb7c..bae945fd 100644 --- a/Core/Models/Eft/Hideout/HideoutCircleOfCultistProductionStartRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutCircleOfCultistProductionStartRequestData.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Hideout; -public class HideoutCircleOfCultistProductionStartRequestData +public record HideoutCircleOfCultistProductionStartRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutCircleOfCultistProductionStart"; [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutContinuousProductionStartRequestData.cs b/Core/Models/Eft/Hideout/HideoutContinuousProductionStartRequestData.cs index d77d9033..4049365c 100644 --- a/Core/Models/Eft/Hideout/HideoutContinuousProductionStartRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutContinuousProductionStartRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutContinuousProductionStartRequestData +public record HideoutContinuousProductionStartRequestData { [JsonPropertyName("Action")] public string? Action { get; } = "HideoutContinuousProductionStart"; @@ -12,4 +12,4 @@ public class HideoutContinuousProductionStartRequestData [JsonPropertyName("timestamp")] public double? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutCustomisation.cs b/Core/Models/Eft/Hideout/HideoutCustomisation.cs index 6ba53c6e..b567b02f 100644 --- a/Core/Models/Eft/Hideout/HideoutCustomisation.cs +++ b/Core/Models/Eft/Hideout/HideoutCustomisation.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Hideout; -public class HideoutCustomisation +public record HideoutCustomisation { [JsonPropertyName("globals")] public List? Globals { get; set; } @@ -12,7 +12,7 @@ public class HideoutCustomisation public List? Slots { get; set; } } -public class HideoutCustomisationGlobal +public record HideoutCustomisationGlobal { [JsonPropertyName("id")] public string? Id { get; set; } @@ -36,7 +36,7 @@ public class HideoutCustomisationGlobal public string? ItemId { get; set; } } -public class HideoutCustomisationSlot +public record HideoutCustomisationSlot { [JsonPropertyName("id")] public string? Id { get; set; } @@ -61,4 +61,4 @@ public class HideoutCustomisationSlot [JsonPropertyName("areaTypeId")] public int? AreaTypeId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutCustomizationApplyRequestData.cs b/Core/Models/Eft/Hideout/HideoutCustomizationApplyRequestData.cs index 77feda87..313ea830 100644 --- a/Core/Models/Eft/Hideout/HideoutCustomizationApplyRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutCustomizationApplyRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutCustomizationApplyRequestData +public record HideoutCustomizationApplyRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutCustomizationApply"; @@ -15,4 +15,4 @@ public class HideoutCustomizationApplyRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutCustomizationSetMannequinPoseRequest.cs b/Core/Models/Eft/Hideout/HideoutCustomizationSetMannequinPoseRequest.cs index 658f0967..04fc1416 100644 --- a/Core/Models/Eft/Hideout/HideoutCustomizationSetMannequinPoseRequest.cs +++ b/Core/Models/Eft/Hideout/HideoutCustomizationSetMannequinPoseRequest.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Hideout { - public class HideoutCustomizationSetMannequinPoseRequest + public record HideoutCustomizationSetMannequinPoseRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutCustomizationSetMannequinPose"; diff --git a/Core/Models/Eft/Hideout/HideoutDeleteProductionRequestData.cs b/Core/Models/Eft/Hideout/HideoutDeleteProductionRequestData.cs index 7ea2ba32..fed0741b 100644 --- a/Core/Models/Eft/Hideout/HideoutDeleteProductionRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutDeleteProductionRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutDeleteProductionRequestData +public record HideoutDeleteProductionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutDeleteProductionCommand"; @@ -12,4 +12,4 @@ public class HideoutDeleteProductionRequestData [JsonPropertyName("timestamp")] public double? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutImproveAreaRequestData.cs b/Core/Models/Eft/Hideout/HideoutImproveAreaRequestData.cs index 8eace11d..718d22ad 100644 --- a/Core/Models/Eft/Hideout/HideoutImproveAreaRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutImproveAreaRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutImproveAreaRequestData +public record HideoutImproveAreaRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutImproveArea"; @@ -19,4 +19,4 @@ public class HideoutImproveAreaRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutProduction.cs b/Core/Models/Eft/Hideout/HideoutProduction.cs index b4b17023..885eebf6 100644 --- a/Core/Models/Eft/Hideout/HideoutProduction.cs +++ b/Core/Models/Eft/Hideout/HideoutProduction.cs @@ -3,7 +3,7 @@ using Core.Models.Common; namespace Core.Models.Eft.Hideout; -public class HideoutProductionData +public record HideoutProductionData { [JsonPropertyName("recipes")] public List? Recipes { get; set; } @@ -15,7 +15,7 @@ public class HideoutProductionData public List? CultistRecipes { get; set; } } -public class HideoutProduction +public record HideoutProduction { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -55,7 +55,7 @@ public class HideoutProduction public bool? IsCodeProduction { get; set; } } -public class Requirement : RequirementBase +public record Requirement : RequirementBase { [JsonPropertyName("templateId")] public string? TemplateId { get; set; } @@ -88,13 +88,13 @@ public class Requirement : RequirementBase public List? GameVersions { get; set; } } -public class RequirementBase +public record RequirementBase { [JsonPropertyName("type")] public string? Type { get; set; } } -public class ScavRecipe +public record ScavRecipe { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -109,7 +109,7 @@ public class ScavRecipe public EndProducts? EndProducts { get; set; } } -public class EndProducts +public record EndProducts { [JsonPropertyName("Common")] public MinMax? Common { get; set; } @@ -121,8 +121,8 @@ public class EndProducts public MinMax? Superrare { get; set; } } -public class CultistRecipe +public record CultistRecipe { [JsonPropertyName("_id")] public string? Id { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutPutItemInRequestData.cs b/Core/Models/Eft/Hideout/HideoutPutItemInRequestData.cs index 8784058d..f4015267 100644 --- a/Core/Models/Eft/Hideout/HideoutPutItemInRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutPutItemInRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutPutItemInRequestData +public record HideoutPutItemInRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutPutItemsInAreaSlots"; @@ -17,11 +17,11 @@ public class HideoutPutItemInRequestData public long? Timestamp { get; set; } } -public class ItemDetails +public record ItemDetails { [JsonPropertyName("count")] public int? Count { get; set; } [JsonPropertyName("id")] public string? Id { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutScavCaseStartRequestData.cs b/Core/Models/Eft/Hideout/HideoutScavCaseStartRequestData.cs index 55553158..1d686eb4 100644 --- a/Core/Models/Eft/Hideout/HideoutScavCaseStartRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutScavCaseStartRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutScavCaseStartRequestData +public record HideoutScavCaseStartRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutScavCaseProductionStart"; @@ -20,7 +20,7 @@ public class HideoutScavCaseStartRequestData public long? Timestamp { get; set; } } -public class HideoutItem +public record HideoutItem { [JsonPropertyName("id")] public string? Id { get; set; } @@ -29,11 +29,11 @@ public class HideoutItem public int? Count { get; set; } } -public class Tool +public record Tool { [JsonPropertyName("id")] public string? Id { get; set; } [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutSettingsBase.cs b/Core/Models/Eft/Hideout/HideoutSettingsBase.cs index a490b406..81d74d4c 100644 --- a/Core/Models/Eft/Hideout/HideoutSettingsBase.cs +++ b/Core/Models/Eft/Hideout/HideoutSettingsBase.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Hideout; -public class HideoutSettingsBase +public record HideoutSettingsBase { [JsonPropertyName("generatorSpeedWithoutFuel")] public double? GeneratorSpeedWithoutFuel { get; set; } @@ -18,4 +18,4 @@ public class HideoutSettingsBase [JsonPropertyName("gpuBoostRate")] public double? GpuBoostRate { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutSingleProductionStartRequestData.cs b/Core/Models/Eft/Hideout/HideoutSingleProductionStartRequestData.cs index dc0590cd..8e26dff3 100644 --- a/Core/Models/Eft/Hideout/HideoutSingleProductionStartRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutSingleProductionStartRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutSingleProductionStartRequestData +public record HideoutSingleProductionStartRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutSingleProductionStart"; @@ -20,11 +20,11 @@ public class HideoutSingleProductionStartRequestData public long? Timestamp { get; set; } } -public class HandoverItem +public record HandoverItem { [JsonPropertyName("id")] public string? Id { get; set; } [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutTakeItemOutRequestData.cs b/Core/Models/Eft/Hideout/HideoutTakeItemOutRequestData.cs index d30fc432..90fcdbc6 100644 --- a/Core/Models/Eft/Hideout/HideoutTakeItemOutRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutTakeItemOutRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutTakeItemOutRequestData +public record HideoutTakeItemOutRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutTakeItemsFromAreaSlots"; @@ -15,4 +15,4 @@ public class HideoutTakeItemOutRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutTakeProductionRequestData.cs b/Core/Models/Eft/Hideout/HideoutTakeProductionRequestData.cs index e4c0e219..468bf4dc 100644 --- a/Core/Models/Eft/Hideout/HideoutTakeProductionRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutTakeProductionRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutTakeProductionRequestData +public record HideoutTakeProductionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutTakeProduction"; @@ -12,4 +12,4 @@ public class HideoutTakeProductionRequestData [JsonPropertyName("timestamp")] public int? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutToggleAreaRequestData.cs b/Core/Models/Eft/Hideout/HideoutToggleAreaRequestData.cs index 64127f85..ccd9c178 100644 --- a/Core/Models/Eft/Hideout/HideoutToggleAreaRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutToggleAreaRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutToggleAreaRequestData +public record HideoutToggleAreaRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutToggleArea"; @@ -15,4 +15,4 @@ public class HideoutToggleAreaRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutUpgradeCompleteRequestData.cs b/Core/Models/Eft/Hideout/HideoutUpgradeCompleteRequestData.cs index 5c5a604e..828a2888 100644 --- a/Core/Models/Eft/Hideout/HideoutUpgradeCompleteRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutUpgradeCompleteRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Hideout; -public class HideoutUpgradeCompleteRequestData +public record HideoutUpgradeCompleteRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutUpgradeComplete"; @@ -12,4 +12,4 @@ public class HideoutUpgradeCompleteRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/HideoutUpgradeRequestData.cs b/Core/Models/Eft/Hideout/HideoutUpgradeRequestData.cs index 18d1aabc..5eab1b11 100644 --- a/Core/Models/Eft/Hideout/HideoutUpgradeRequestData.cs +++ b/Core/Models/Eft/Hideout/HideoutUpgradeRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Hideout; -public class HideoutUpgradeRequestData +public record HideoutUpgradeRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "HideoutUpgrade"; @@ -16,4 +16,4 @@ public class HideoutUpgradeRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Hideout/QteData.cs b/Core/Models/Eft/Hideout/QteData.cs index 2cdb8931..c37a19b2 100644 --- a/Core/Models/Eft/Hideout/QteData.cs +++ b/Core/Models/Eft/Hideout/QteData.cs @@ -6,7 +6,7 @@ using Core.Models.Enums.Hideout; namespace Core.Models.Eft.Hideout; -public class QteData +public record QteData { [JsonPropertyName("id")] public string? Id { get; set; } @@ -43,7 +43,7 @@ public class QteData public Dictionary? Results { get; set; } } -public class QuickTimeEvent +public record QuickTimeEvent { [JsonPropertyName("type")] [JsonConverter(typeof(JsonStringEnumConverter))] @@ -68,13 +68,13 @@ public class QuickTimeEvent public string? UniqueKey { get; set; } } -public class QteRequirement +public record QteRequirement { [JsonPropertyName("type")] public RequirementType? RequirementType { get; set; } } -public class QteResult +public record QteResult { [JsonPropertyName("energy")] public int? Energy { get; set; } @@ -86,7 +86,7 @@ public class QteResult public List? RewardEffects { get; set; } } -public class QteEffect +public record QteEffect { [JsonPropertyName("type")] [JsonConverter(typeof(JsonStringEnumConverter))] @@ -110,7 +110,7 @@ public class QteEffect public QteResultType? ResultType { get; set; } } -public class SkillLevelMultiplier +public record SkillLevelMultiplier { [JsonPropertyName("level")] public int? Level { get; set; } @@ -119,7 +119,7 @@ public class SkillLevelMultiplier public float? MultiplierValue { get; set; } } -public class Position +public record Position { [JsonPropertyName("x")] public float? X { get; set; } @@ -128,7 +128,7 @@ public class Position public float? Y { get; set; } } -public class AreaRequirement : QteRequirement +public record AreaRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Area; @@ -140,7 +140,7 @@ public class AreaRequirement : QteRequirement public int? RequiredLevel { get; set; } } -public class TraderUnlockRequirement : QteRequirement +public record TraderUnlockRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.TraderUnlock; @@ -149,7 +149,7 @@ public class TraderUnlockRequirement : QteRequirement public string? TraderId { get; set; } } -public class TraderLoyaltyRequirement : QteRequirement +public record TraderLoyaltyRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.TraderLoyalty; @@ -161,7 +161,7 @@ public class TraderLoyaltyRequirement : QteRequirement public int? LoyaltyLevel { get; set; } } -public class SkillRequirement : QteRequirement +public record SkillRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Skill; @@ -174,7 +174,7 @@ public class SkillRequirement : QteRequirement public int? SkillLevel { get; set; } } -public class ResourceRequirement : QteRequirement +public record ResourceRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Resource; @@ -186,7 +186,7 @@ public class ResourceRequirement : QteRequirement public int? Resource { get; set; } } -public class ItemRequirement : QteRequirement +public record ItemRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Item; @@ -204,7 +204,7 @@ public class ItemRequirement : QteRequirement public bool? IsEncoded { get; set; } } -public class ToolRequirement : QteRequirement +public record ToolRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Tool; @@ -222,7 +222,7 @@ public class ToolRequirement : QteRequirement public bool? IsEncoded { get; set; } } -public class QuestRequirement : QteRequirement +public record QuestRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.QuestComplete; @@ -231,7 +231,7 @@ public class QuestRequirement : QteRequirement public string? QuestId { get; set; } } -public class HealthRequirement : QteRequirement +public record HealthRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.Health; @@ -243,7 +243,7 @@ public class HealthRequirement : QteRequirement public int? Hydration { get; set; } } -public class BodyPartBuffRequirement : QteRequirement +public record BodyPartBuffRequirement : QteRequirement { [JsonPropertyName("type")] public RequirementType? Type { get; set; } = Models.Enums.Hideout.RequirementType.BodyPartBuff; diff --git a/Core/Models/Eft/Hideout/RecordShootingRangePoints.cs b/Core/Models/Eft/Hideout/RecordShootingRangePoints.cs index f8c24b20..043d2f75 100644 --- a/Core/Models/Eft/Hideout/RecordShootingRangePoints.cs +++ b/Core/Models/Eft/Hideout/RecordShootingRangePoints.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Hideout; -public class RecordShootingRangePoints +public record RecordShootingRangePoints { [JsonPropertyName("Action")] public string? Action { get; set; } = "RecordShootingRangePoints"; [JsonPropertyName("points")] public int? Points { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/HttpResponse/GetBodyResponseData.cs b/Core/Models/Eft/HttpResponse/GetBodyResponseData.cs index 8acf13af..c6b01084 100644 --- a/Core/Models/Eft/HttpResponse/GetBodyResponseData.cs +++ b/Core/Models/Eft/HttpResponse/GetBodyResponseData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.HttpResponse; -public class GetBodyResponseData +public record GetBodyResponseData { [JsonPropertyName("err")] public int? Err { get; set; } @@ -12,4 +12,4 @@ public class GetBodyResponseData [JsonPropertyName("data")] public T? Data { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/HttpResponse/NullResponseData.cs b/Core/Models/Eft/HttpResponse/NullResponseData.cs index e903e309..4f6c001d 100644 --- a/Core/Models/Eft/HttpResponse/NullResponseData.cs +++ b/Core/Models/Eft/HttpResponse/NullResponseData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.HttpResponse; -public class NullResponseData +public record NullResponseData { [JsonPropertyName("err")] public int? Err { get; set; } @@ -12,4 +12,4 @@ public class NullResponseData [JsonPropertyName("data")] public object? Data { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/InRaid/InsuredItemsData.cs b/Core/Models/Eft/InRaid/InsuredItemsData.cs index 2d54cb3a..19f86b63 100644 --- a/Core/Models/Eft/InRaid/InsuredItemsData.cs +++ b/Core/Models/Eft/InRaid/InsuredItemsData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.InRaid; -public class InsuredItemsData +public record InsuredItemsData { [JsonPropertyName("id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/InRaid/ItemDeliveryRequestData.cs b/Core/Models/Eft/InRaid/ItemDeliveryRequestData.cs index d582e5af..de717c76 100644 --- a/Core/Models/Eft/InRaid/ItemDeliveryRequestData.cs +++ b/Core/Models/Eft/InRaid/ItemDeliveryRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.InRaid; -public class ItemDeliveryRequestData +public record ItemDeliveryRequestData { [JsonPropertyName("items")] public List? Items { get; set; } diff --git a/Core/Models/Eft/InRaid/RegisterPlayerRequestData.cs b/Core/Models/Eft/InRaid/RegisterPlayerRequestData.cs index 90b9dcda..8a46adee 100644 --- a/Core/Models/Eft/InRaid/RegisterPlayerRequestData.cs +++ b/Core/Models/Eft/InRaid/RegisterPlayerRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.InRaid; -public class RegisterPlayerRequestData : IRequestData +public record RegisterPlayerRequestData : IRequestData { [JsonPropertyName("crc")] public int? Crc { get; set; } diff --git a/Core/Models/Eft/InRaid/ScavSaveRequestData.cs b/Core/Models/Eft/InRaid/ScavSaveRequestData.cs index 8a23c517..793fba81 100644 --- a/Core/Models/Eft/InRaid/ScavSaveRequestData.cs +++ b/Core/Models/Eft/InRaid/ScavSaveRequestData.cs @@ -3,6 +3,6 @@ using Core.Models.Utils; namespace Core.Models.Eft.InRaid; -public class ScavSaveRequestData : PostRaidPmcData, IRequestData +public record ScavSaveRequestData : PostRaidPmcData, IRequestData { } diff --git a/Core/Models/Eft/Insurance/GetInsuranceCostRequestData.cs b/Core/Models/Eft/Insurance/GetInsuranceCostRequestData.cs index f84f87b5..d316845f 100644 --- a/Core/Models/Eft/Insurance/GetInsuranceCostRequestData.cs +++ b/Core/Models/Eft/Insurance/GetInsuranceCostRequestData.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Insurance; -public class GetInsuranceCostRequestData +public record GetInsuranceCostRequestData { [JsonPropertyName("traders")] public List? Traders { get; set; } [JsonPropertyName("items")] public List? Items { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Insurance/GetInsuranceCostResponseData.cs b/Core/Models/Eft/Insurance/GetInsuranceCostResponseData.cs index 53a6eb62..2dc75c2e 100644 --- a/Core/Models/Eft/Insurance/GetInsuranceCostResponseData.cs +++ b/Core/Models/Eft/Insurance/GetInsuranceCostResponseData.cs @@ -2,4 +2,4 @@ public class GetInsuranceCostResponseData : Dictionary> { -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Insurance/InsureRequestData.cs b/Core/Models/Eft/Insurance/InsureRequestData.cs index fd6cc992..bcd967f0 100644 --- a/Core/Models/Eft/Insurance/InsureRequestData.cs +++ b/Core/Models/Eft/Insurance/InsureRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Insurance; -public class InsureRequestData : BaseInteractionRequestData +public record InsureRequestData : BaseInteractionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Insure"; @@ -13,4 +13,4 @@ public class InsureRequestData : BaseInteractionRequestData [JsonPropertyName("items")] public List? Items { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/AddItemDirectRequest.cs b/Core/Models/Eft/Inventory/AddItemDirectRequest.cs index 0dc05c97..ae6937ee 100644 --- a/Core/Models/Eft/Inventory/AddItemDirectRequest.cs +++ b/Core/Models/Eft/Inventory/AddItemDirectRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class AddItemDirectRequest +public record AddItemDirectRequest { /// /// Item and child mods to add to player inventory diff --git a/Core/Models/Eft/Inventory/AddItemRequestData.cs b/Core/Models/Eft/Inventory/AddItemRequestData.cs index 9f4ebdd9..34caf786 100644 --- a/Core/Models/Eft/Inventory/AddItemRequestData.cs +++ b/Core/Models/Eft/Inventory/AddItemRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class AddItemRequestData +public record AddItemRequestData { // Trader id [JsonPropertyName("tid")] @@ -12,7 +12,7 @@ public class AddItemRequestData public List? Items { get; set; } } -public class ItemToAdd +public record ItemToAdd { [JsonPropertyName("count")] public int? Count { get; set; } diff --git a/Core/Models/Eft/Inventory/AddItemTempObject.cs b/Core/Models/Eft/Inventory/AddItemTempObject.cs index 39804d0e..630423c7 100644 --- a/Core/Models/Eft/Inventory/AddItemTempObject.cs +++ b/Core/Models/Eft/Inventory/AddItemTempObject.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class AddItemTempObject +public record AddItemTempObject { [JsonPropertyName("itemRef")] public Item? ItemReference { get; set; } diff --git a/Core/Models/Eft/Inventory/AddItemsDirectRequest.cs b/Core/Models/Eft/Inventory/AddItemsDirectRequest.cs index a34008d9..3b865d5b 100644 --- a/Core/Models/Eft/Inventory/AddItemsDirectRequest.cs +++ b/Core/Models/Eft/Inventory/AddItemsDirectRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class AddItemsDirectRequest +public record AddItemsDirectRequest { /// Item and child mods to add to player inventory [JsonPropertyName("itemsWithModsToAdd")] diff --git a/Core/Models/Eft/Inventory/InventoryAddRequestData.cs b/Core/Models/Eft/Inventory/InventoryAddRequestData.cs index a8c96946..3f2fcb38 100644 --- a/Core/Models/Eft/Inventory/InventoryAddRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryAddRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryAddRequestData : InventoryBaseActionRequestData +public record InventoryAddRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Add"; diff --git a/Core/Models/Eft/Inventory/InventoryBaseActionRequestData.cs b/Core/Models/Eft/Inventory/InventoryBaseActionRequestData.cs index e1ac0323..810d4311 100644 --- a/Core/Models/Eft/Inventory/InventoryBaseActionRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryBaseActionRequestData.cs @@ -3,11 +3,11 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Inventory; -public class InventoryBaseActionRequestData : BaseInteractionRequestData +public record InventoryBaseActionRequestData : BaseInteractionRequestData { } -public class To +public record To { [JsonPropertyName("id")] public string? Id { get; set; } @@ -22,7 +22,7 @@ public class To public bool? IsSearched { get; set; } } -public class Container +public record Container { [JsonPropertyName("id")] public string? Id { get; set; } @@ -34,7 +34,7 @@ public class Container public object? Location { get; set; } // TODO: types given: ILocation or number } -public class Location +public record Location { [JsonPropertyName("x")] public double? X { get; set; } @@ -50,4 +50,4 @@ public class Location [JsonPropertyName("isSearched")] public bool? IsSearched { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryBindRequestData.cs b/Core/Models/Eft/Inventory/InventoryBindRequestData.cs index aaeb1c2b..5c1b2586 100644 --- a/Core/Models/Eft/Inventory/InventoryBindRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryBindRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryBindRequestData : InventoryBaseActionRequestData +public record InventoryBindRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Bind"; @@ -12,4 +12,4 @@ public class InventoryBindRequestData : InventoryBaseActionRequestData [JsonPropertyName("index")] public int? Index { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs b/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs index d9691a2d..34e7b268 100644 --- a/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class InventoryCreateMarkerRequestData : InventoryBaseActionRequestData +public record InventoryCreateMarkerRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "CreateMapMarker"; diff --git a/Core/Models/Eft/Inventory/InventoryDeleteMarkerRequestData.cs b/Core/Models/Eft/Inventory/InventoryDeleteMarkerRequestData.cs index f8c79fa5..d84666ae 100644 --- a/Core/Models/Eft/Inventory/InventoryDeleteMarkerRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryDeleteMarkerRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryDeleteMarkerRequestData : InventoryBaseActionRequestData +public record InventoryDeleteMarkerRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "DeleteMapMarker"; @@ -15,4 +15,4 @@ public class InventoryDeleteMarkerRequestData : InventoryBaseActionRequestData [JsonPropertyName("Y")] public int? Y { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryEditMarkerRequestData.cs b/Core/Models/Eft/Inventory/InventoryEditMarkerRequestData.cs index 1bf4a74b..e38e0ce4 100644 --- a/Core/Models/Eft/Inventory/InventoryEditMarkerRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryEditMarkerRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class InventoryEditMarkerRequestData : InventoryBaseActionRequestData +public record InventoryEditMarkerRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "EditMapMarker"; diff --git a/Core/Models/Eft/Inventory/InventoryExamineRequestData.cs b/Core/Models/Eft/Inventory/InventoryExamineRequestData.cs index d645d010..16f27911 100644 --- a/Core/Models/Eft/Inventory/InventoryExamineRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryExamineRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Inventory; -public class InventoryExamineRequestData : InventoryBaseActionRequestData +public record InventoryExamineRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Examine"; @@ -13,4 +13,4 @@ public class InventoryExamineRequestData : InventoryBaseActionRequestData [JsonPropertyName("fromOwner")] public OwnerInfo? FromOwner { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryFoldRequestData.cs b/Core/Models/Eft/Inventory/InventoryFoldRequestData.cs index e3817674..968af119 100644 --- a/Core/Models/Eft/Inventory/InventoryFoldRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryFoldRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryFoldRequestData : InventoryBaseActionRequestData +public record InventoryFoldRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Fold"; @@ -12,4 +12,4 @@ public class InventoryFoldRequestData : InventoryBaseActionRequestData [JsonPropertyName("value")] public bool? Value { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryMergeRequestData.cs b/Core/Models/Eft/Inventory/InventoryMergeRequestData.cs index 6d318566..05bf3b5c 100644 --- a/Core/Models/Eft/Inventory/InventoryMergeRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryMergeRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryMergeRequestData : InventoryBaseActionRequestData +public record InventoryMergeRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Merge"; @@ -12,4 +12,4 @@ public class InventoryMergeRequestData : InventoryBaseActionRequestData [JsonPropertyName("with")] public string? With { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryMoveRequestData.cs b/Core/Models/Eft/Inventory/InventoryMoveRequestData.cs index 9262be25..59175bcc 100644 --- a/Core/Models/Eft/Inventory/InventoryMoveRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryMoveRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.ItemEvent; namespace Core.Models.Eft.Inventory; -public class InventoryMoveRequestData : InventoryBaseActionRequestData +public record InventoryMoveRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Move"; @@ -13,4 +13,4 @@ public class InventoryMoveRequestData : InventoryBaseActionRequestData [JsonPropertyName("to")] public To? To { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryReadEncyclopediaRequestData.cs b/Core/Models/Eft/Inventory/InventoryReadEncyclopediaRequestData.cs index 944b5739..85084cde 100644 --- a/Core/Models/Eft/Inventory/InventoryReadEncyclopediaRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryReadEncyclopediaRequestData.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Inventory; -public class InventoryReadEncyclopediaRequestData : InventoryBaseActionRequestData +public record InventoryReadEncyclopediaRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "ReadEncyclopedia"; [JsonPropertyName("ids")] public List? Ids { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryRemoveRequestData.cs b/Core/Models/Eft/Inventory/InventoryRemoveRequestData.cs index 6f126f00..dc50a228 100644 --- a/Core/Models/Eft/Inventory/InventoryRemoveRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryRemoveRequestData.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Inventory; -public class InventoryRemoveRequestData : InventoryBaseActionRequestData +public record InventoryRemoveRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Remove"; [JsonPropertyName("item")] public string? Item { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventorySortRequestData.cs b/Core/Models/Eft/Inventory/InventorySortRequestData.cs index 2957e125..df8a4184 100644 --- a/Core/Models/Eft/Inventory/InventorySortRequestData.cs +++ b/Core/Models/Eft/Inventory/InventorySortRequestData.cs @@ -3,11 +3,11 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class InventorySortRequestData : InventoryBaseActionRequestData +public record InventorySortRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "ApplyInventoryChanges"; [JsonPropertyName("changedItems")] public List? ChangedItems { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventorySplitRequestData.cs b/Core/Models/Eft/Inventory/InventorySplitRequestData.cs index 039201d0..720f17c9 100644 --- a/Core/Models/Eft/Inventory/InventorySplitRequestData.cs +++ b/Core/Models/Eft/Inventory/InventorySplitRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventorySplitRequestData : InventoryBaseActionRequestData +public record InventorySplitRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; } = "Split"; @@ -20,4 +20,4 @@ public class InventorySplitRequestData : InventoryBaseActionRequestData public Container? Container { get; set; } public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventorySwapRequestData.cs b/Core/Models/Eft/Inventory/InventorySwapRequestData.cs index 6366280d..5f2e21fc 100644 --- a/Core/Models/Eft/Inventory/InventorySwapRequestData.cs +++ b/Core/Models/Eft/Inventory/InventorySwapRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Inventory; -public class InventorySwapRequestData : InventoryBaseActionRequestData +public record InventorySwapRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Swap"; @@ -25,4 +25,4 @@ public class InventorySwapRequestData : InventoryBaseActionRequestData [JsonPropertyName("toOwner2")] public OwnerInfo? ToOwner2 { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryTagRequestData.cs b/Core/Models/Eft/Inventory/InventoryTagRequestData.cs index 8efd2ebb..57c18dcb 100644 --- a/Core/Models/Eft/Inventory/InventoryTagRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryTagRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryTagRequestData : InventoryBaseActionRequestData +public record InventoryTagRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Tag"; @@ -15,4 +15,4 @@ public class InventoryTagRequestData : InventoryBaseActionRequestData [JsonPropertyName("TagColor")] public int? TagColor { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryToggleRequestData.cs b/Core/Models/Eft/Inventory/InventoryToggleRequestData.cs index 7c863b32..94b00743 100644 --- a/Core/Models/Eft/Inventory/InventoryToggleRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryToggleRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryToggleRequestData : InventoryBaseActionRequestData +public record InventoryToggleRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Toggle"; @@ -12,4 +12,4 @@ public class InventoryToggleRequestData : InventoryBaseActionRequestData [JsonPropertyName("value")] public bool? Value { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryTransferRequestData.cs b/Core/Models/Eft/Inventory/InventoryTransferRequestData.cs index d67ac043..791a5d23 100644 --- a/Core/Models/Eft/Inventory/InventoryTransferRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryTransferRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryTransferRequestData : InventoryBaseActionRequestData +public record InventoryTransferRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Transfer"; @@ -15,4 +15,4 @@ public class InventoryTransferRequestData : InventoryBaseActionRequestData [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/InventoryUnbindRequestData.cs b/Core/Models/Eft/Inventory/InventoryUnbindRequestData.cs index b41131bf..355aad86 100644 --- a/Core/Models/Eft/Inventory/InventoryUnbindRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryUnbindRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class InventoryUnbindRequestData : InventoryBaseActionRequestData +public record InventoryUnbindRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "Unbind"; diff --git a/Core/Models/Eft/Inventory/OpenRandomLootContainerRequestData.cs b/Core/Models/Eft/Inventory/OpenRandomLootContainerRequestData.cs index ea440279..d378d619 100644 --- a/Core/Models/Eft/Inventory/OpenRandomLootContainerRequestData.cs +++ b/Core/Models/Eft/Inventory/OpenRandomLootContainerRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class OpenRandomLootContainerRequestData +public record OpenRandomLootContainerRequestData { public string? Action { get; set; } = "OpenRandomLootContainer"; @@ -14,4 +14,4 @@ public class OpenRandomLootContainerRequestData [JsonPropertyName("to")] public List? To { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/PinOrLockItemRequest.cs b/Core/Models/Eft/Inventory/PinOrLockItemRequest.cs index 042b511e..76252b81 100644 --- a/Core/Models/Eft/Inventory/PinOrLockItemRequest.cs +++ b/Core/Models/Eft/Inventory/PinOrLockItemRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; -public class PinOrLockItemRequest +public record PinOrLockItemRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "PinLock"; @@ -15,4 +15,4 @@ public class PinOrLockItemRequest /** "Pinned"/"Locked"/"Free" */ [JsonPropertyName("State")] public PinLockState? State { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/RedeemProfileRequestData.cs b/Core/Models/Eft/Inventory/RedeemProfileRequestData.cs index 54706400..683aa024 100644 --- a/Core/Models/Eft/Inventory/RedeemProfileRequestData.cs +++ b/Core/Models/Eft/Inventory/RedeemProfileRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class RedeemProfileRequestData : InventoryBaseActionRequestData +public record RedeemProfileRequestData : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "RedeemProfileReward"; @@ -11,11 +11,11 @@ public class RedeemProfileRequestData : InventoryBaseActionRequestData public List? Events { get; set; } } -public class RedeemProfileRequestEvent +public record RedeemProfileRequestEvent { [JsonPropertyName("MessageId")] public string? MessageId { get; set; } [JsonPropertyName("EventId")] public string? EventId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Inventory/SetFavoriteItems.cs b/Core/Models/Eft/Inventory/SetFavoriteItems.cs index 9cdce640..d08272b6 100644 --- a/Core/Models/Eft/Inventory/SetFavoriteItems.cs +++ b/Core/Models/Eft/Inventory/SetFavoriteItems.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Inventory; -public class SetFavoriteItems : InventoryBaseActionRequestData +public record SetFavoriteItems : InventoryBaseActionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "SetFavoriteItems"; @@ -12,4 +12,4 @@ public class SetFavoriteItems : InventoryBaseActionRequestData [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/ItemEvent/EmptyItemEventRouterResponse.cs b/Core/Models/Eft/ItemEvent/EmptyItemEventRouterResponse.cs index 944dd1a2..168b0dfb 100644 --- a/Core/Models/Eft/ItemEvent/EmptyItemEventRouterResponse.cs +++ b/Core/Models/Eft/ItemEvent/EmptyItemEventRouterResponse.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.ItemEvent; -public class EmptyItemEventRouterResponse : ItemEventRouterBase +public record EmptyItemEventRouterResponse : ItemEventRouterBase { [JsonPropertyName("profileChanges")] public string? ProfileChanges { get; set; } = ""; -} \ No newline at end of file +} diff --git a/Core/Models/Eft/ItemEvent/ItemEventRouterBase.cs b/Core/Models/Eft/ItemEvent/ItemEventRouterBase.cs index 6d81ffba..c313f44b 100644 --- a/Core/Models/Eft/ItemEvent/ItemEventRouterBase.cs +++ b/Core/Models/Eft/ItemEvent/ItemEventRouterBase.cs @@ -6,7 +6,7 @@ namespace Core.Models.Eft.ItemEvent; using System.Text.Json.Serialization; -public class ItemEventRouterBase +public record ItemEventRouterBase { [JsonPropertyName("warnings")] public List? Warnings { get; set; } @@ -15,7 +15,7 @@ public class ItemEventRouterBase public Dictionary ProfileChanges { get; set; } } -public class Warning +public record Warning { [JsonPropertyName("index")] public int? Index { get; set; } @@ -30,7 +30,7 @@ public class Warning public object? Data { get; set; } } -public class ProfileChange +public record ProfileChange { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -85,7 +85,7 @@ public class ProfileChange public List? QuestsStatus { get; set; } } -public class HideoutStashItem +public record HideoutStashItem { [JsonPropertyName("id")] public string? Id { get; set; } @@ -94,7 +94,7 @@ public class HideoutStashItem public string? Template { get; set; } } -public class WeaponBuildChange +public record WeaponBuildChange { [JsonPropertyName("id")] public string? Id { get; set; } @@ -109,7 +109,7 @@ public class WeaponBuildChange public List? Items { get; set; } } -public class EquipmentBuildChange +public record EquipmentBuildChange { [JsonPropertyName("id")] public string? Id { get; set; } @@ -133,7 +133,7 @@ public class EquipmentBuildChange public EquipmentBuildType? BuildType { get; set; } } -public class ItemChanges +public record ItemChanges { [JsonPropertyName("new")] public List? NewItems { get; set; } @@ -146,7 +146,7 @@ public class ItemChanges } /** Related to TraderInfo */ -public class TraderData +public record TraderData { [JsonPropertyName("salesSum")] public double? SalesSum { get; set; } @@ -164,7 +164,7 @@ public class TraderData public bool? Disabled { get; set; } } -public class Product +public record Product { [JsonPropertyName("_id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/ItemEvent/ItemEventRouterRequest.cs b/Core/Models/Eft/ItemEvent/ItemEventRouterRequest.cs index 214e0d66..b13114cf 100644 --- a/Core/Models/Eft/ItemEvent/ItemEventRouterRequest.cs +++ b/Core/Models/Eft/ItemEvent/ItemEventRouterRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.ItemEvent; -public class ItemEventRouterRequest : IRequestData +public record ItemEventRouterRequest : IRequestData { [JsonPropertyName("data")] public List? Data { get; set; } @@ -15,7 +15,7 @@ public class ItemEventRouterRequest : IRequestData public int? Reload { get; set; } } -public class Daum +public record Daum { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -27,7 +27,7 @@ public class Daum public To? To { get; set; } } -public class To +public record To { [JsonPropertyName("id")] public string? Id { get; set; } @@ -39,7 +39,7 @@ public class To public Location? Location { get; set; } } -public class Location +public record Location { [JsonPropertyName("x")] public int? X { get; set; } diff --git a/Core/Models/Eft/ItemEvent/ItemEventRouterResponse.cs b/Core/Models/Eft/ItemEvent/ItemEventRouterResponse.cs index 8bfb384b..baf949f6 100644 --- a/Core/Models/Eft/ItemEvent/ItemEventRouterResponse.cs +++ b/Core/Models/Eft/ItemEvent/ItemEventRouterResponse.cs @@ -1,5 +1,5 @@ namespace Core.Models.Eft.ItemEvent; -public class ItemEventRouterResponse : ItemEventRouterBase +public record ItemEventRouterResponse : ItemEventRouterBase { -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Launcher/ChangeRequestData.cs b/Core/Models/Eft/Launcher/ChangeRequestData.cs index 57b29ed8..19e1327a 100644 --- a/Core/Models/Eft/Launcher/ChangeRequestData.cs +++ b/Core/Models/Eft/Launcher/ChangeRequestData.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.Launcher; -public class ChangeRequestData : LoginRequestData +public record ChangeRequestData : LoginRequestData { [JsonPropertyName("change")] public string? Change { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Launcher/GetMiniProfileRequestData.cs b/Core/Models/Eft/Launcher/GetMiniProfileRequestData.cs index 7ca442eb..a2b10e84 100644 --- a/Core/Models/Eft/Launcher/GetMiniProfileRequestData.cs +++ b/Core/Models/Eft/Launcher/GetMiniProfileRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Launcher; -public class GetMiniProfileRequestData : IRequestData +public record GetMiniProfileRequestData : IRequestData { [JsonPropertyName("username")] public string? Username { get; set; } diff --git a/Core/Models/Eft/Launcher/LoginRequestData.cs b/Core/Models/Eft/Launcher/LoginRequestData.cs index a17c130f..1cfd6d81 100644 --- a/Core/Models/Eft/Launcher/LoginRequestData.cs +++ b/Core/Models/Eft/Launcher/LoginRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Launcher; -public class LoginRequestData : IRequestData +public record LoginRequestData : IRequestData { [JsonPropertyName("username")] public string? Username { get; set; } diff --git a/Core/Models/Eft/Launcher/MiniProfile.cs b/Core/Models/Eft/Launcher/MiniProfile.cs index 584609e8..4a97e3e8 100644 --- a/Core/Models/Eft/Launcher/MiniProfile.cs +++ b/Core/Models/Eft/Launcher/MiniProfile.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Launcher; -public class MiniProfile +public record MiniProfile { [JsonPropertyName("username")] public string? Username { get; set; } diff --git a/Core/Models/Eft/Launcher/RegisterData.cs b/Core/Models/Eft/Launcher/RegisterData.cs index e961c5ef..b055ffe9 100644 --- a/Core/Models/Eft/Launcher/RegisterData.cs +++ b/Core/Models/Eft/Launcher/RegisterData.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.Launcher; -public class RegisterData : LoginRequestData +public record RegisterData : LoginRequestData { [JsonPropertyName("edition")] public string? Edition { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Launcher/RemoveProfileData.cs b/Core/Models/Eft/Launcher/RemoveProfileData.cs index 51b02171..98fb4f00 100644 --- a/Core/Models/Eft/Launcher/RemoveProfileData.cs +++ b/Core/Models/Eft/Launcher/RemoveProfileData.cs @@ -1,5 +1,5 @@ namespace Core.Models.Eft.Launcher; -public class RemoveProfileData : LoginRequestData +public record RemoveProfileData : LoginRequestData { -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Location/AirdropLootResult.cs b/Core/Models/Eft/Location/AirdropLootResult.cs index a25ace10..c2c760bf 100644 --- a/Core/Models/Eft/Location/AirdropLootResult.cs +++ b/Core/Models/Eft/Location/AirdropLootResult.cs @@ -3,7 +3,7 @@ using Core.Models.Spt.Services; namespace Core.Models.Eft.Location; -public class AirdropLootResult +public record AirdropLootResult { [JsonPropertyName("dropType")] public string? DropType { get; set; } diff --git a/Core/Models/Eft/Location/GetAirdropLootRequest.cs b/Core/Models/Eft/Location/GetAirdropLootRequest.cs index db8d8373..3c3c613a 100644 --- a/Core/Models/Eft/Location/GetAirdropLootRequest.cs +++ b/Core/Models/Eft/Location/GetAirdropLootRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Location; -public class GetAirdropLootRequest : IRequestData +public record GetAirdropLootRequest : IRequestData { [JsonPropertyName("containerId")] public string? ContainerId { get; set; } diff --git a/Core/Models/Eft/Location/GetAirdropLootResponse.cs b/Core/Models/Eft/Location/GetAirdropLootResponse.cs index 023fcccd..2c5cf353 100644 --- a/Core/Models/Eft/Location/GetAirdropLootResponse.cs +++ b/Core/Models/Eft/Location/GetAirdropLootResponse.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Location; -public class GetAirdropLootResponse +public record GetAirdropLootResponse { // The type of airdrop [JsonPropertyName("icon")] @@ -12,4 +12,4 @@ public class GetAirdropLootResponse [JsonPropertyName("container")] public List? Container { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Location/GetLocationRequestData.cs b/Core/Models/Eft/Location/GetLocationRequestData.cs index d246eca7..3d29c498 100644 --- a/Core/Models/Eft/Location/GetLocationRequestData.cs +++ b/Core/Models/Eft/Location/GetLocationRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Location; -public class GetLocationRequestData +public record GetLocationRequestData { [JsonPropertyName("crc")] public int? Crc { get; set; } diff --git a/Core/Models/Eft/Match/EndLocalRaidRequestData.cs b/Core/Models/Eft/Match/EndLocalRaidRequestData.cs index 13ae2ed6..573c4d0e 100644 --- a/Core/Models/Eft/Match/EndLocalRaidRequestData.cs +++ b/Core/Models/Eft/Match/EndLocalRaidRequestData.cs @@ -6,7 +6,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class EndLocalRaidRequestData : IRequestData +public record EndLocalRaidRequestData : IRequestData { /// /// ID of server player just left @@ -33,7 +33,7 @@ public class EndLocalRaidRequestData : IRequestData public LocationTransit? LocationTransit { get; set; } } -public class EndRaidResult +public record EndRaidResult { public PmcData? Profile { get; set; } @@ -68,7 +68,7 @@ public class EndRaidResult public int? PlayTime { get; set; } } -public class LocationTransit +public record LocationTransit { [JsonPropertyName("hash")] public string? Hash { get; set; } @@ -110,7 +110,7 @@ public class LocationTransit public string? SptExitName { get; set; } } -public class TransitProfile +public record TransitProfile { [JsonPropertyName("_id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Match/EndOfflineRaidRequestData.cs b/Core/Models/Eft/Match/EndOfflineRaidRequestData.cs index 72c5774f..d9b12926 100644 --- a/Core/Models/Eft/Match/EndOfflineRaidRequestData.cs +++ b/Core/Models/Eft/Match/EndOfflineRaidRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Match; -public class EndOfflineRaidRequestData +public record EndOfflineRaidRequestData { [JsonPropertyName("crc")] public int? Crc { get; set; } diff --git a/Core/Models/Eft/Match/GetRaidConfigurationRequestData.cs b/Core/Models/Eft/Match/GetRaidConfigurationRequestData.cs index 81d29ddb..670b23df 100644 --- a/Core/Models/Eft/Match/GetRaidConfigurationRequestData.cs +++ b/Core/Models/Eft/Match/GetRaidConfigurationRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class GetRaidConfigurationRequestData : RaidSettings, IRequestData +public record GetRaidConfigurationRequestData : RaidSettings, IRequestData { [JsonPropertyName("keyId")] public string? KeyId { get; set; } diff --git a/Core/Models/Eft/Match/GroupCharacter.cs b/Core/Models/Eft/Match/GroupCharacter.cs index a558812d..ca29ffee 100644 --- a/Core/Models/Eft/Match/GroupCharacter.cs +++ b/Core/Models/Eft/Match/GroupCharacter.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Match; -public class GroupCharacter +public record GroupCharacter { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -31,7 +31,7 @@ public class GroupCharacter public bool? LookingGroup { get; set; } } -public class CharacterInfo +public record CharacterInfo { [JsonPropertyName("Nickname")] public string? Nickname { get; set; } @@ -58,7 +58,7 @@ public class CharacterInfo public bool? HasCoopExtension { get; set; } } -public class PlayerVisualRepresentation +public record PlayerVisualRepresentation { [JsonPropertyName("Info")] public VisualInfo? Info { get; set; } @@ -70,7 +70,7 @@ public class PlayerVisualRepresentation public Equipment? Equipment { get; set; } } -public class VisualInfo +public record VisualInfo { [JsonPropertyName("Side")] public string? Side { get; set; } @@ -88,7 +88,7 @@ public class VisualInfo public string? GameVersion { get; set; } } -public class Customization +public record Customization { [JsonPropertyName("Head")] public string? Head { get; set; } @@ -103,7 +103,7 @@ public class Customization public string? Hands { get; set; } } -public class Equipment +public record Equipment { [JsonPropertyName("Id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Match/MatchGroupCurrentResponse.cs b/Core/Models/Eft/Match/MatchGroupCurrentResponse.cs index 7b22899e..f2c41aab 100644 --- a/Core/Models/Eft/Match/MatchGroupCurrentResponse.cs +++ b/Core/Models/Eft/Match/MatchGroupCurrentResponse.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.Match; -public class MatchGroupCurrentResponse +public record MatchGroupCurrentResponse { [JsonPropertyName("squad")] public List? Squad { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/MatchGroupInviteSendRequest.cs b/Core/Models/Eft/Match/MatchGroupInviteSendRequest.cs index 89f55428..9403f2a5 100644 --- a/Core/Models/Eft/Match/MatchGroupInviteSendRequest.cs +++ b/Core/Models/Eft/Match/MatchGroupInviteSendRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class MatchGroupInviteSendRequest : IRequestData +public record MatchGroupInviteSendRequest : IRequestData { [JsonPropertyName("to")] public string? To { get; set; } diff --git a/Core/Models/Eft/Match/MatchGroupPlayerRemoveRequest.cs b/Core/Models/Eft/Match/MatchGroupPlayerRemoveRequest.cs index 769e04f0..6daf1fd9 100644 --- a/Core/Models/Eft/Match/MatchGroupPlayerRemoveRequest.cs +++ b/Core/Models/Eft/Match/MatchGroupPlayerRemoveRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class MatchGroupPlayerRemoveRequest : IRequestData +public record MatchGroupPlayerRemoveRequest : IRequestData { [JsonPropertyName("aidToKick")] public string? AidToKick { get; set; } diff --git a/Core/Models/Eft/Match/MatchGroupStartGameRequest.cs b/Core/Models/Eft/Match/MatchGroupStartGameRequest.cs index 35f2a71b..43227a08 100644 --- a/Core/Models/Eft/Match/MatchGroupStartGameRequest.cs +++ b/Core/Models/Eft/Match/MatchGroupStartGameRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class MatchGroupStartGameRequest : IRequestData +public record MatchGroupStartGameRequest : IRequestData { [JsonPropertyName("groupId")] public string? GroupId { get; set; } diff --git a/Core/Models/Eft/Match/MatchGroupStatusRequest.cs b/Core/Models/Eft/Match/MatchGroupStatusRequest.cs index 674c731b..39ee3522 100644 --- a/Core/Models/Eft/Match/MatchGroupStatusRequest.cs +++ b/Core/Models/Eft/Match/MatchGroupStatusRequest.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class MatchGroupStatusRequest : IRequestData +public record MatchGroupStatusRequest : IRequestData { [JsonPropertyName("location")] public string? Location { get; set; } diff --git a/Core/Models/Eft/Match/MatchGroupStatusResponse.cs b/Core/Models/Eft/Match/MatchGroupStatusResponse.cs index 4f50f5e6..304eadfc 100644 --- a/Core/Models/Eft/Match/MatchGroupStatusResponse.cs +++ b/Core/Models/Eft/Match/MatchGroupStatusResponse.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Match; -public class MatchGroupStatusResponse +public record MatchGroupStatusResponse { [JsonPropertyName("players")] public List? Players { get; set; } [JsonPropertyName("maxPveCountExceeded")] public bool? MaxPveCountExceeded { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/MatchGroupTransferRequest.cs b/Core/Models/Eft/Match/MatchGroupTransferRequest.cs index 10c0dd13..08f7fd37 100644 --- a/Core/Models/Eft/Match/MatchGroupTransferRequest.cs +++ b/Core/Models/Eft/Match/MatchGroupTransferRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class MatchGroupTransferRequest : IRequestData +public record MatchGroupTransferRequest : IRequestData { [JsonPropertyName("aidToChange")] public string? AidToChange { get; set; } diff --git a/Core/Models/Eft/Match/ProfileStatusRequest.cs b/Core/Models/Eft/Match/ProfileStatusRequest.cs index 56273bfe..61811018 100644 --- a/Core/Models/Eft/Match/ProfileStatusRequest.cs +++ b/Core/Models/Eft/Match/ProfileStatusRequest.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Match; -public class ProfileStatusRequest +public record ProfileStatusRequest { [JsonPropertyName("groupId")] public int? GroupId { get; set; } diff --git a/Core/Models/Eft/Match/ProfileStatusResponse.cs b/Core/Models/Eft/Match/ProfileStatusResponse.cs index 0ecc5f40..6ed4e3dc 100644 --- a/Core/Models/Eft/Match/ProfileStatusResponse.cs +++ b/Core/Models/Eft/Match/ProfileStatusResponse.cs @@ -2,11 +2,11 @@ namespace Core.Models.Eft.Match; -public class ProfileStatusResponse +public record ProfileStatusResponse { [JsonPropertyName("maxPveCountExceeded")] public bool? MaxPveCountExceeded { get; set; } [JsonPropertyName("profiles")] public List? Profiles { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/PutMetricsRequestData.cs b/Core/Models/Eft/Match/PutMetricsRequestData.cs index 4f8f9b0a..b01cdd2f 100644 --- a/Core/Models/Eft/Match/PutMetricsRequestData.cs +++ b/Core/Models/Eft/Match/PutMetricsRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class PutMetricsRequestData : IRequestData +public record PutMetricsRequestData : IRequestData { [JsonPropertyName("sid")] public string? SessionId { get; set; } @@ -33,13 +33,13 @@ public class PutMetricsRequestData : IRequestData public string? Mode { get; set; } } -public class SharedSettings +public record SharedSettings { [JsonPropertyName("StatedFieldOfView")] public double? StatedFieldOfView { get; set; } } -public class HardwareDescription +public record HardwareDescription { [JsonPropertyName("deviceUniqueIdentifier")] public string? DeviceUniqueIdentifier { get; set; } @@ -93,7 +93,7 @@ public class HardwareDescription public string? SwapDriveType { get; set; } } -public class ClientEvents +public record ClientEvents { [JsonPropertyName("MatchingCompleted")] public double? MatchingCompleted { get; set; } diff --git a/Core/Models/Eft/Match/RaidSettings.cs b/Core/Models/Eft/Match/RaidSettings.cs index 0498c075..14a051ad 100644 --- a/Core/Models/Eft/Match/RaidSettings.cs +++ b/Core/Models/Eft/Match/RaidSettings.cs @@ -5,7 +5,7 @@ using Core.Models.Enums.RaidSettings.TimeAndWeather; namespace Core.Models.Eft.Match; -public class RaidSettings +public record RaidSettings { [JsonPropertyName("keyId")] public string? KeyId { get; set; } @@ -44,7 +44,7 @@ public class RaidSettings public bool? CanShowGroupPreview { get; set; } } -public class TimeAndWeatherSettings +public record TimeAndWeatherSettings { [JsonPropertyName("isRandomTime")] public bool? IsRandomTime { get; set; } @@ -71,7 +71,7 @@ public class TimeAndWeatherSettings public int? HourOfDay { get; set; } } -public class BotSettings +public record BotSettings { [JsonPropertyName("isScavWars")] public bool? IsScavWars { get; set; } @@ -80,7 +80,7 @@ public class BotSettings public BotAmount? BotAmount { get; set; } } -public class WavesSettings +public record WavesSettings { [JsonPropertyName("botAmount")] public BotAmount? BotAmount { get; set; } diff --git a/Core/Models/Eft/Match/RequestIdRequest.cs b/Core/Models/Eft/Match/RequestIdRequest.cs index d844e274..a2dc61d3 100644 --- a/Core/Models/Eft/Match/RequestIdRequest.cs +++ b/Core/Models/Eft/Match/RequestIdRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class RequestIdRequest : IRequestData +public record RequestIdRequest : IRequestData { [JsonPropertyName("requestId")] public string? RequestId { get; set; } diff --git a/Core/Models/Eft/Match/Server.cs b/Core/Models/Eft/Match/Server.cs index cf1ce343..2591ec25 100644 --- a/Core/Models/Eft/Match/Server.cs +++ b/Core/Models/Eft/Match/Server.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Match; -public class Server +public record Server { [JsonPropertyName("ping")] public int? Ping { get; set; } @@ -12,4 +12,4 @@ public class Server [JsonPropertyName("port")] public int? Port { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/SessionStatus.cs b/Core/Models/Eft/Match/SessionStatus.cs index 869df3d8..7ddb1344 100644 --- a/Core/Models/Eft/Match/SessionStatus.cs +++ b/Core/Models/Eft/Match/SessionStatus.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Match; -public class SessionStatus +public record SessionStatus { [JsonPropertyName("profileid")] public string? ProfileId { get; set; } @@ -39,4 +39,4 @@ public class SessionStatus [JsonPropertyName("additional_info")] public List? AdditionalInfo { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/StartLocalRaidRequestData.cs b/Core/Models/Eft/Match/StartLocalRaidRequestData.cs index c9b1c3c2..18ca1d8f 100644 --- a/Core/Models/Eft/Match/StartLocalRaidRequestData.cs +++ b/Core/Models/Eft/Match/StartLocalRaidRequestData.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class StartLocalRaidRequestData : IRequestData +public record StartLocalRaidRequestData : IRequestData { [JsonPropertyName("serverId")] public string? ServerId { get; set; } diff --git a/Core/Models/Eft/Match/StartLocalRaidResponseData.cs b/Core/Models/Eft/Match/StartLocalRaidResponseData.cs index 7b39d028..6fa41d1f 100644 --- a/Core/Models/Eft/Match/StartLocalRaidResponseData.cs +++ b/Core/Models/Eft/Match/StartLocalRaidResponseData.cs @@ -5,7 +5,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Match; -public class StartLocalRaidResponseData +public record StartLocalRaidResponseData { [JsonPropertyName("serverId")] public string? ServerId { get; set; } @@ -26,13 +26,13 @@ public class StartLocalRaidResponseData public Transition? Transition { get; set; } } -public class ProfileInsuredItems +public record ProfileInsuredItems { [JsonPropertyName("insuredItems")] public List? InsuredItems { get; set; } } -public class Transition +public record Transition { [JsonPropertyName("transitionType")] public TransitionType? TransitionType { get; set; } @@ -45,4 +45,4 @@ public class Transition [JsonPropertyName("visitedLocations")] public List? VisitedLocations { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Match/UpdatePingRequestData.cs b/Core/Models/Eft/Match/UpdatePingRequestData.cs index 4504afe5..24f2cc77 100644 --- a/Core/Models/Eft/Match/UpdatePingRequestData.cs +++ b/Core/Models/Eft/Match/UpdatePingRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Match; -public class UpdatePingRequestData : IRequestData +public record UpdatePingRequestData : IRequestData { [JsonPropertyName("servers")] public List? servers { get; set; } diff --git a/Core/Models/Eft/Notes/NoteActionData.cs b/Core/Models/Eft/Notes/NoteActionData.cs index b39321aa..21b4fee5 100644 --- a/Core/Models/Eft/Notes/NoteActionData.cs +++ b/Core/Models/Eft/Notes/NoteActionData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Notes; -public class NoteActionData : BaseInteractionRequestData +public record NoteActionData : BaseInteractionRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -15,11 +15,11 @@ public class NoteActionData : BaseInteractionRequestData public Note? Note { get; set; } } -public class Note +public record Note { [JsonPropertyName("Time")] public int? Time { get; set; } [JsonPropertyName("Text")] public string? Text { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Notifier/Notifier.cs b/Core/Models/Eft/Notifier/Notifier.cs index c575f9cc..afad1fdb 100644 --- a/Core/Models/Eft/Notifier/Notifier.cs +++ b/Core/Models/Eft/Notifier/Notifier.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Notifier; -public class NotifierChannel +public record NotifierChannel { [JsonPropertyName("server")] public string? Server { get; set; } @@ -18,4 +18,4 @@ public class NotifierChannel [JsonPropertyName("ws")] public string? WebSocket { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Notifier/SelectProfileResponse.cs b/Core/Models/Eft/Notifier/SelectProfileResponse.cs index 01fd5b10..cd03f923 100644 --- a/Core/Models/Eft/Notifier/SelectProfileResponse.cs +++ b/Core/Models/Eft/Notifier/SelectProfileResponse.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Notifier; -public class SelectProfileResponse +public record SelectProfileResponse { [JsonPropertyName("status")] public string? Status { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Player/PlayerIncrementSkillLevelRequestData.cs b/Core/Models/Eft/Player/PlayerIncrementSkillLevelRequestData.cs index 3c4ac344..dec03da5 100644 --- a/Core/Models/Eft/Player/PlayerIncrementSkillLevelRequestData.cs +++ b/Core/Models/Eft/Player/PlayerIncrementSkillLevelRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Player; -public class PlayerIncrementSkillLevelRequestData +public record PlayerIncrementSkillLevelRequestData { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -34,7 +34,7 @@ public class PlayerIncrementSkillLevelRequestData } // TODO: These are all lists of objects. -public class Items +public record Items { [JsonPropertyName("new")] public List? NewItems { get; set; } @@ -46,10 +46,10 @@ public class Items public List? DeletedItems { get; set; } } -public class Production +public record Production { } -public class TraderRelations +public record TraderRelations { -} \ No newline at end of file +} diff --git a/Core/Models/Eft/PresetBuild/PresetBuildActionRequestData.cs b/Core/Models/Eft/PresetBuild/PresetBuildActionRequestData.cs index 18dc7720..36590735 100644 --- a/Core/Models/Eft/PresetBuild/PresetBuildActionRequestData.cs +++ b/Core/Models/Eft/PresetBuild/PresetBuildActionRequestData.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.PresetBuild; -public class PresetBuildActionRequestData : IRequestData +public record PresetBuildActionRequestData : IRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } diff --git a/Core/Models/Eft/PresetBuild/RemoveBuildRequestData.cs b/Core/Models/Eft/PresetBuild/RemoveBuildRequestData.cs index 4d0c7542..9a7851c1 100644 --- a/Core/Models/Eft/PresetBuild/RemoveBuildRequestData.cs +++ b/Core/Models/Eft/PresetBuild/RemoveBuildRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.PresetBuild; -public class RemoveBuildRequestData : IRequestData +public record RemoveBuildRequestData : IRequestData { [JsonPropertyName("id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Prestige/GetPrestigeResponse.cs b/Core/Models/Eft/Prestige/GetPrestigeResponse.cs index e324108a..0701981c 100644 --- a/Core/Models/Eft/Prestige/GetPrestigeResponse.cs +++ b/Core/Models/Eft/Prestige/GetPrestigeResponse.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Prestige; -public class GetPrestigeResponse +public record GetPrestigeResponse { [JsonPropertyName("elements")] public List? Elements { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Prestige/ObtainPrestigeRequest.cs b/Core/Models/Eft/Prestige/ObtainPrestigeRequest.cs index be220073..44ae3ab1 100644 --- a/Core/Models/Eft/Prestige/ObtainPrestigeRequest.cs +++ b/Core/Models/Eft/Prestige/ObtainPrestigeRequest.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Prestige { - public class ObtainPrestigeRequest + public record ObtainPrestigeRequest { [JsonPropertyName("id")] public string Id { get; set; } @@ -11,7 +11,7 @@ namespace Core.Models.Eft.Prestige public Location Location { get; set; } } - public class Location + public record Location { [JsonPropertyName("x")] public int X { get; set; } diff --git a/Core/Models/Eft/Profile/CompletedAchievementsResponse.cs b/Core/Models/Eft/Profile/CompletedAchievementsResponse.cs index 10b0ada8..52d1e0b2 100644 --- a/Core/Models/Eft/Profile/CompletedAchievementsResponse.cs +++ b/Core/Models/Eft/Profile/CompletedAchievementsResponse.cs @@ -2,8 +2,8 @@ namespace Core.Models.Eft.Profile; -public class CompletedAchievementsResponse +public record CompletedAchievementsResponse { [JsonPropertyName("elements")] public Dictionary? Elements { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/ConnectResponse.cs b/Core/Models/Eft/Profile/ConnectResponse.cs index b8bf583f..92aa0ce9 100644 --- a/Core/Models/Eft/Profile/ConnectResponse.cs +++ b/Core/Models/Eft/Profile/ConnectResponse.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Profile; -public class ConnectResponse +public record ConnectResponse { [JsonPropertyName("backendUrl")] public string? BackendUrl { get; set; } @@ -15,4 +15,4 @@ public class ConnectResponse [JsonPropertyName("profileDescriptions")] public Dictionary? ProfileDescriptions { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/CreateProfileResponse.cs b/Core/Models/Eft/Profile/CreateProfileResponse.cs index bd129f94..b10dba79 100644 --- a/Core/Models/Eft/Profile/CreateProfileResponse.cs +++ b/Core/Models/Eft/Profile/CreateProfileResponse.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Profile; -public class CreateProfileResponse +public record CreateProfileResponse { [JsonPropertyName("uid")] public string? UserId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/GetAchievementsResponse.cs b/Core/Models/Eft/Profile/GetAchievementsResponse.cs index a0fa0224..7c19d836 100644 --- a/Core/Models/Eft/Profile/GetAchievementsResponse.cs +++ b/Core/Models/Eft/Profile/GetAchievementsResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Profile; -public class GetAchievementsResponse +public record GetAchievementsResponse { public List? Achievements { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/GetOtherProfileRequest.cs b/Core/Models/Eft/Profile/GetOtherProfileRequest.cs index 20388cf1..40e0cea9 100644 --- a/Core/Models/Eft/Profile/GetOtherProfileRequest.cs +++ b/Core/Models/Eft/Profile/GetOtherProfileRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class GetOtherProfileRequest : IRequestData +public record GetOtherProfileRequest : IRequestData { [JsonPropertyName("accountId")] public string? AccountId { get; set; } diff --git a/Core/Models/Eft/Profile/GetOtherProfileResponse.cs b/Core/Models/Eft/Profile/GetOtherProfileResponse.cs index cac1cbd2..b1b009db 100644 --- a/Core/Models/Eft/Profile/GetOtherProfileResponse.cs +++ b/Core/Models/Eft/Profile/GetOtherProfileResponse.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Profile; -public class GetOtherProfileResponse +public record GetOtherProfileResponse { [JsonPropertyName("id")] public string? Id { get; set; } @@ -48,7 +48,7 @@ public class GetOtherProfileResponse public List Items { get; set; } } -public class OtherProfileInfo +public record OtherProfileInfo { [JsonPropertyName("nickname")] public string? Nickname { get; set; } @@ -72,7 +72,7 @@ public class OtherProfileInfo public long? RegistrationDate { get; set; } } -public class OtherProfileCustomization +public record OtherProfileCustomization { [JsonPropertyName("head")] public string? Head { get; set; } @@ -90,7 +90,7 @@ public class OtherProfileCustomization public string? Dogtag { get; set; } } -public class OtherProfileEquipment +public record OtherProfileEquipment { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -99,13 +99,13 @@ public class OtherProfileEquipment public List? Items { get; set; } } -public class OtherProfileStats +public record OtherProfileStats { [JsonPropertyName("eft")] public OtherProfileSubStats? Eft { get; set; } } -public class OtherProfileSubStats +public record OtherProfileSubStats { [JsonPropertyName("totalInGameTime")] public long? TotalInGameTime { get; set; } diff --git a/Core/Models/Eft/Profile/GetProfileSettingsRequest.cs b/Core/Models/Eft/Profile/GetProfileSettingsRequest.cs index f14e553c..db69135b 100644 --- a/Core/Models/Eft/Profile/GetProfileSettingsRequest.cs +++ b/Core/Models/Eft/Profile/GetProfileSettingsRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class GetProfileSettingsRequest : IRequestData +public record GetProfileSettingsRequest : IRequestData { /// /// Chosen value for profile.Info.SelectedMemberCategory diff --git a/Core/Models/Eft/Profile/GetProfileStatusResponseData.cs b/Core/Models/Eft/Profile/GetProfileStatusResponseData.cs index 8804e251..481e3ade 100644 --- a/Core/Models/Eft/Profile/GetProfileStatusResponseData.cs +++ b/Core/Models/Eft/Profile/GetProfileStatusResponseData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Profile; -public class GetProfileStatusResponseData +public record GetProfileStatusResponseData { [JsonPropertyName("maxPveCountExceeded")] public bool? MaxPveCountExceeded { get; set; } = false; @@ -11,7 +11,7 @@ public class GetProfileStatusResponseData public List? Profiles { get; set; } } -public class ProfileStatusData +public record ProfileStatusData { [JsonPropertyName("profileid")] public string? ProfileId { get; set; } @@ -48,4 +48,4 @@ public class ProfileStatusData [JsonPropertyName("additional_info")] public List? AdditionalInfo { get; set; } // TODO: Was `any` in the node server -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/MessageContentRagfair.cs b/Core/Models/Eft/Profile/MessageContentRagfair.cs index adcd2c7e..3594204d 100644 --- a/Core/Models/Eft/Profile/MessageContentRagfair.cs +++ b/Core/Models/Eft/Profile/MessageContentRagfair.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Profile; -public class MessageContentRagfair +public record MessageContentRagfair { [JsonPropertyName("offerId")] public string? OfferId { get; set; } diff --git a/Core/Models/Eft/Profile/ProfileChangeNicknameRequestData.cs b/Core/Models/Eft/Profile/ProfileChangeNicknameRequestData.cs index 06e87f70..83873ed4 100644 --- a/Core/Models/Eft/Profile/ProfileChangeNicknameRequestData.cs +++ b/Core/Models/Eft/Profile/ProfileChangeNicknameRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class ProfileChangeNicknameRequestData : IRequestData +public record ProfileChangeNicknameRequestData : IRequestData { [JsonPropertyName("nickname")] public string? Nickname { get; set; } diff --git a/Core/Models/Eft/Profile/ProfileChangeVoiceRequestData.cs b/Core/Models/Eft/Profile/ProfileChangeVoiceRequestData.cs index 9dab45c2..77b5d734 100644 --- a/Core/Models/Eft/Profile/ProfileChangeVoiceRequestData.cs +++ b/Core/Models/Eft/Profile/ProfileChangeVoiceRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class ProfileChangeVoiceRequestData : IRequestData +public record ProfileChangeVoiceRequestData : IRequestData { [JsonPropertyName("voice")] public string? Voice { get; set; } diff --git a/Core/Models/Eft/Profile/ProfileCreateRequestData.cs b/Core/Models/Eft/Profile/ProfileCreateRequestData.cs index 0501352b..c56d464e 100644 --- a/Core/Models/Eft/Profile/ProfileCreateRequestData.cs +++ b/Core/Models/Eft/Profile/ProfileCreateRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class ProfileCreateRequestData : IRequestData +public record ProfileCreateRequestData : IRequestData { [JsonPropertyName("side")] public string? Side { get; set; } diff --git a/Core/Models/Eft/Profile/SearchFriendRequestData.cs b/Core/Models/Eft/Profile/SearchFriendRequestData.cs index 2de4775d..2e1c98e5 100644 --- a/Core/Models/Eft/Profile/SearchFriendRequestData.cs +++ b/Core/Models/Eft/Profile/SearchFriendRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class SearchFriendRequestData : IRequestData +public record SearchFriendRequestData : IRequestData { [JsonPropertyName("nickname")] public string? Nickname { get; set; } diff --git a/Core/Models/Eft/Profile/SearchFriendResponse.cs b/Core/Models/Eft/Profile/SearchFriendResponse.cs index 5de6d376..24bf6168 100644 --- a/Core/Models/Eft/Profile/SearchFriendResponse.cs +++ b/Core/Models/Eft/Profile/SearchFriendResponse.cs @@ -5,7 +5,7 @@ namespace Core.Models.Eft.Profile; /// /// Identical to `UserDialogInfo` /// -public class SearchFriendResponse +public record SearchFriendResponse { [JsonPropertyName("_id")] public string? Id { get; set; } diff --git a/Core/Models/Eft/Profile/SptProfile.cs b/Core/Models/Eft/Profile/SptProfile.cs index 160aacfd..f9b01acb 100644 --- a/Core/Models/Eft/Profile/SptProfile.cs +++ b/Core/Models/Eft/Profile/SptProfile.cs @@ -6,7 +6,7 @@ using Core.Models.Spt.Dialog; namespace Core.Models.Eft.Profile; -public class SptProfile +public record SptProfile { [JsonPropertyName("info")] public Info? ProfileInfo { get; set; } @@ -52,7 +52,7 @@ public class SptProfile public List CustomisationUnlocks { get; set; } } -public class TraderPurchaseData +public record TraderPurchaseData { [JsonPropertyName("count")] public int? PurchaseCount { get; set; } @@ -61,7 +61,7 @@ public class TraderPurchaseData public long? PurchaseTimestamp { get; set; } } -public class Info +public record Info { /** main profile id */ [JsonPropertyName("id")] @@ -86,7 +86,7 @@ public class Info public string? Edition { get; set; } } -public class Characters +public record Characters { [JsonPropertyName("pmc")] public PmcData? PmcData { get; set; } @@ -96,7 +96,7 @@ public class Characters } /** used by profile.userbuilds */ -public class UserBuilds +public record UserBuilds { [JsonPropertyName("weaponBuilds")] public List? WeaponBuilds { get; set; } @@ -108,7 +108,7 @@ public class UserBuilds public List? MagazineBuilds { get; set; } } -public class UserBuild +public record UserBuild { [JsonPropertyName("Id")] public string? Id { get; set; } @@ -117,7 +117,7 @@ public class UserBuild public string? Name { get; set; } } -public class WeaponBuild : UserBuild +public record WeaponBuild : UserBuild { [JsonPropertyName("Root")] public string? Root { get; set; } @@ -126,7 +126,7 @@ public class WeaponBuild : UserBuild public List? Items { get; set; } // Same as PMC inventory items } -public class EquipmentBuild : UserBuild +public record EquipmentBuild : UserBuild { [JsonPropertyName("Root")] public string? Root { get; set; } @@ -139,7 +139,7 @@ public class EquipmentBuild : UserBuild public EquipmentBuildType? BuildType { get; set; } } -public class MagazineBuild : UserBuild +public record MagazineBuild : UserBuild { [JsonPropertyName("Caliber")] public string? Caliber { get; set; } @@ -154,7 +154,7 @@ public class MagazineBuild : UserBuild public List? Items { get; set; } } -public class MagazineTemplateAmmoItem +public record MagazineTemplateAmmoItem { [JsonPropertyName("TemplateId")] public string? TemplateId { get; set; } @@ -164,13 +164,13 @@ public class MagazineTemplateAmmoItem } /** Used by defaultEquipmentPresets.json */ -public class DefaultEquipmentPreset : EquipmentBuild +public record DefaultEquipmentPreset : EquipmentBuild { [JsonPropertyName("type")] public string? Type { get; set; } } -public class Dialogue +public record Dialogue { [JsonPropertyName("attachmentsNew")] public int? AttachmentsNew { get; set; } @@ -195,7 +195,7 @@ public class Dialogue } // @Cleanup: Maybe the same as Dialogue? -public class DialogueInfo +public record DialogueInfo { [JsonPropertyName("attachmentsNew")] public int? AttachmentsNew { get; set; } @@ -219,7 +219,7 @@ public class DialogueInfo public MessagePreview? Message { get; set; } } -public class Message +public record Message { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -267,7 +267,7 @@ public class Message public List? ProfileChangeEvents { get; set; } } -public class ReplyTo +public record ReplyTo { [JsonPropertyName("_id")] public string? Id { get; set; } @@ -285,7 +285,7 @@ public class ReplyTo public string? Text { get; set; } } -public class MessagePreview +public record MessagePreview { [JsonPropertyName("uid")] public string? UserId { get; set; } @@ -306,7 +306,7 @@ public class MessagePreview public SystemData? SystemData { get; set; } } -public class MessageItems +public record MessageItems { [JsonPropertyName("stash")] public string? Stash { get; set; } @@ -315,7 +315,7 @@ public class MessageItems public List? Data { get; set; } } -public class UpdatableChatMember +public record UpdatableChatMember { [JsonPropertyName("Nickname")] public string? Nickname { get; set; } @@ -336,7 +336,7 @@ public class UpdatableChatMember public bool? IsBanned { get; set; } } -public class Spt +public record Spt { /** What version of SPT was this profile made with */ [JsonPropertyName("version")] @@ -367,7 +367,7 @@ public class Spt public Dictionary? CultistRewards { get; set; } } -public class AcceptedCultistReward +public record AcceptedCultistReward { [JsonPropertyName("timestamp")] public long? Timestamp { get; set; } @@ -379,7 +379,7 @@ public class AcceptedCultistReward public List? RewardItems { get; set; } } -public class ModDetails +public record ModDetails { [JsonPropertyName("name")] public string? Name { get; set; } @@ -397,7 +397,7 @@ public class ModDetails public string? Url { get; set; } } -public class ReceivedGift +public record ReceivedGift { [JsonPropertyName("giftId")] public string? GiftId { get; set; } @@ -409,7 +409,7 @@ public class ReceivedGift public int? Current { get; set; } } -public class Vitality +public record Vitality { [JsonPropertyName("health")] public Health? Health { get; set; } @@ -418,7 +418,7 @@ public class Vitality public Effects? Effects { get; set; } } -public class Health +public record Health { [JsonPropertyName("Hydration")] public double? Hydration { get; set; } @@ -451,7 +451,7 @@ public class Health public double? RightLeg { get; set; } } -public class Effects +public record Effects { [JsonPropertyName("Head")] public Head? Head { get; set; } @@ -475,43 +475,43 @@ public class Effects public RightLeg? RightLeg { get; set; } } -public class Head +public record Head { } -public class Chest +public record Chest { } -public class Stomach +public record Stomach { } -public class LeftArm +public record LeftArm { [JsonPropertyName("Fracture")] public double? Fracture { get; set; } } -public class RightArm +public record RightArm { [JsonPropertyName("Fracture")] public double? Fracture { get; set; } } -public class LeftLeg +public record LeftLeg { [JsonPropertyName("Fracture")] public double? Fracture { get; set; } } -public class RightLeg +public record RightLeg { [JsonPropertyName("Fracture")] public double? Fracture { get; set; } } -public class Inraid +public record Inraid { [JsonPropertyName("location")] public string? Location { get; set; } @@ -520,7 +520,7 @@ public class Inraid public string? Character { get; set; } } -public class Insurance +public record Insurance { [JsonPropertyName("scheduledTime")] public int? ScheduledTime { get; set; } diff --git a/Core/Models/Eft/Profile/SystemData.cs b/Core/Models/Eft/Profile/SystemData.cs index ec26d9ae..b07fcfe1 100644 --- a/Core/Models/Eft/Profile/SystemData.cs +++ b/Core/Models/Eft/Profile/SystemData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Profile; -public class SystemData +public record SystemData { [JsonPropertyName("date")] public string? Date { get; set; } @@ -21,4 +21,4 @@ public class SystemData [JsonPropertyName("itemCount")] public int? ItemCount { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Profile/UserDialogInfo.cs b/Core/Models/Eft/Profile/UserDialogInfo.cs index 23581fe5..322250b0 100644 --- a/Core/Models/Eft/Profile/UserDialogInfo.cs +++ b/Core/Models/Eft/Profile/UserDialogInfo.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Profile; -public class UserDialogInfo +public record UserDialogInfo { /// /// _id @@ -18,7 +18,7 @@ public class UserDialogInfo public UserDialogDetails? Info { get; set; } } -public class UserDialogDetails +public record UserDialogDetails { [JsonPropertyName("Nickname")] public string? Nickname { get; set; } diff --git a/Core/Models/Eft/Profile/ValidateNicknameRequestData.cs b/Core/Models/Eft/Profile/ValidateNicknameRequestData.cs index cc09b856..ee63a497 100644 --- a/Core/Models/Eft/Profile/ValidateNicknameRequestData.cs +++ b/Core/Models/Eft/Profile/ValidateNicknameRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Profile; -public class ValidateNicknameRequestData : IRequestData +public record ValidateNicknameRequestData : IRequestData { [JsonPropertyName("nickname")] public string? Nickname { get; set; } diff --git a/Core/Models/Eft/Quests/AcceptQuestRequestData.cs b/Core/Models/Eft/Quests/AcceptQuestRequestData.cs index 0fce6a5a..294bc323 100644 --- a/Core/Models/Eft/Quests/AcceptQuestRequestData.cs +++ b/Core/Models/Eft/Quests/AcceptQuestRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Quests; -public class AcceptQuestRequestData +public record AcceptQuestRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "QuestAccept"; @@ -12,4 +12,4 @@ public class AcceptQuestRequestData [JsonPropertyName("type")] public string? Type { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Quests/CompleteQuestRequestData.cs b/Core/Models/Eft/Quests/CompleteQuestRequestData.cs index 6be62db2..041de453 100644 --- a/Core/Models/Eft/Quests/CompleteQuestRequestData.cs +++ b/Core/Models/Eft/Quests/CompleteQuestRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Quests; -public class CompleteQuestRequestData +public record CompleteQuestRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -13,4 +13,4 @@ public class CompleteQuestRequestData [JsonPropertyName("removeExcessItems")] public bool? RemoveExcessItems { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Quests/FailQuestRequestData.cs b/Core/Models/Eft/Quests/FailQuestRequestData.cs index f7b19306..42a1919c 100644 --- a/Core/Models/Eft/Quests/FailQuestRequestData.cs +++ b/Core/Models/Eft/Quests/FailQuestRequestData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Eft.Quests; -public class FailQuestRequestData +public record FailQuestRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "QuestFail"; @@ -12,4 +12,4 @@ public class FailQuestRequestData [JsonPropertyName("removeExcessItems")] public bool? RemoveExcessItems { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Quests/HandoverQuestRequestData.cs b/Core/Models/Eft/Quests/HandoverQuestRequestData.cs index 3690d902..353855c9 100644 --- a/Core/Models/Eft/Quests/HandoverQuestRequestData.cs +++ b/Core/Models/Eft/Quests/HandoverQuestRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Quests; -public class HandoverQuestRequestData +public record HandoverQuestRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "QuestHandover"; @@ -17,11 +17,11 @@ public class HandoverQuestRequestData public List? Items { get; set; } } -public class HandoverItem +public record HandoverItem { [JsonPropertyName("id")] public string? Id { get; set; } [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Quests/ListQuestsRequestData.cs b/Core/Models/Eft/Quests/ListQuestsRequestData.cs index ebec6042..d3e73c97 100644 --- a/Core/Models/Eft/Quests/ListQuestsRequestData.cs +++ b/Core/Models/Eft/Quests/ListQuestsRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Utils; namespace Core.Models.Eft.Quests; -public class ListQuestsRequestData : IRequestData +public record ListQuestsRequestData : IRequestData { [JsonPropertyName("completed")] public bool? Completed { get; set; } diff --git a/Core/Models/Eft/Quests/RepeatableQuestChangeEvent.cs b/Core/Models/Eft/Quests/RepeatableQuestChangeEvent.cs index 4a03d579..10135f2d 100644 --- a/Core/Models/Eft/Quests/RepeatableQuestChangeEvent.cs +++ b/Core/Models/Eft/Quests/RepeatableQuestChangeEvent.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Quests; -public class RepeatableQuestChangeRequest +public record RepeatableQuestChangeRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "RepeatableQuestChange"; [JsonPropertyName("qid")] public string? QuestId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/AddOfferRequestData.cs b/Core/Models/Eft/Ragfair/AddOfferRequestData.cs index b5ded6db..9f995521 100644 --- a/Core/Models/Eft/Ragfair/AddOfferRequestData.cs +++ b/Core/Models/Eft/Ragfair/AddOfferRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class AddOfferRequestData +public record AddOfferRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -17,7 +17,7 @@ public class AddOfferRequestData public List? Requirements { get; set; } } -public class Requirement +public record Requirement { [JsonPropertyName("_tpl")] public string? Template { get; set; } @@ -33,4 +33,4 @@ public class Requirement [JsonPropertyName("onlyFunctional")] public bool? OnlyFunctional { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/ExtendOfferRequestData.cs b/Core/Models/Eft/Ragfair/ExtendOfferRequestData.cs index 42c941a8..20ce035b 100644 --- a/Core/Models/Eft/Ragfair/ExtendOfferRequestData.cs +++ b/Core/Models/Eft/Ragfair/ExtendOfferRequestData.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class ExtendOfferRequestData +public record ExtendOfferRequestData { [JsonPropertyName("offerId")] public string? OfferId { get; set; } [JsonPropertyName("renewalTime")] public int? RenewalTime { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/GetItemPriceResult.cs b/Core/Models/Eft/Ragfair/GetItemPriceResult.cs index b4fbcd52..5491608c 100644 --- a/Core/Models/Eft/Ragfair/GetItemPriceResult.cs +++ b/Core/Models/Eft/Ragfair/GetItemPriceResult.cs @@ -3,8 +3,8 @@ using Core.Models.Common; namespace Core.Models.Eft.Ragfair; -public class GetItemPriceResult : MinMax +public record GetItemPriceResult : MinMax { [JsonPropertyName("avg")] public int? Avg { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/GetMarketPriceRequestData.cs b/Core/Models/Eft/Ragfair/GetMarketPriceRequestData.cs index 44bb3853..6f6f8fce 100644 --- a/Core/Models/Eft/Ragfair/GetMarketPriceRequestData.cs +++ b/Core/Models/Eft/Ragfair/GetMarketPriceRequestData.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class GetMarketPriceRequestData +public record GetMarketPriceRequestData { [JsonPropertyName("templateId")] public string? TemplateId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/GetOffersResult.cs b/Core/Models/Eft/Ragfair/GetOffersResult.cs index 9d0ab010..fa249a79 100644 --- a/Core/Models/Eft/Ragfair/GetOffersResult.cs +++ b/Core/Models/Eft/Ragfair/GetOffersResult.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class GetOffersResult +public record GetOffersResult { [JsonPropertyName("categories")] public Dictionary? Categories { get; set; } @@ -15,4 +15,4 @@ public class GetOffersResult [JsonPropertyName("selectedCategory")] public string? SelectedCategory { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/GetRagfairOfferByIdRequest.cs b/Core/Models/Eft/Ragfair/GetRagfairOfferByIdRequest.cs index 7cb942d4..05a42fd2 100644 --- a/Core/Models/Eft/Ragfair/GetRagfairOfferByIdRequest.cs +++ b/Core/Models/Eft/Ragfair/GetRagfairOfferByIdRequest.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class GetRagfairOfferByIdRequest +public record GetRagfairOfferByIdRequest { [JsonPropertyName("id")] public int? Id { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/RagfairOffer.cs b/Core/Models/Eft/Ragfair/RagfairOffer.cs index d1c26a45..e8a9637e 100644 --- a/Core/Models/Eft/Ragfair/RagfairOffer.cs +++ b/Core/Models/Eft/Ragfair/RagfairOffer.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Ragfair; -public class RagfairOffer +public record RagfairOffer { [JsonPropertyName("sellResult")] public List? SellResults { get; set; } @@ -66,7 +66,7 @@ public class RagfairOffer public bool? Locked { get; set; } } -public class OfferRequirement +public record OfferRequirement { [JsonPropertyName("_tpl")] public string? Template { get; set; } @@ -84,7 +84,7 @@ public class OfferRequirement public DogtagExchangeSide? Side { get; set; } } -public class RagfairOfferUser +public record RagfairOfferUser { [JsonPropertyName("id")] public string? Id { get; set; } @@ -111,11 +111,11 @@ public class RagfairOfferUser public int? Aid { get; set; } } -public class SellResult +public record SellResult { [JsonPropertyName("sellTime")] public long? SellTime { get; set; } [JsonPropertyName("amount")] public decimal? Amount { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/RemoveOfferRequestData.cs b/Core/Models/Eft/Ragfair/RemoveOfferRequestData.cs index 34704a72..4ab13f67 100644 --- a/Core/Models/Eft/Ragfair/RemoveOfferRequestData.cs +++ b/Core/Models/Eft/Ragfair/RemoveOfferRequestData.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class RemoveOfferRequestData +public record RemoveOfferRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } [JsonPropertyName("offerId")] public string? OfferId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/SearchRequestData.cs b/Core/Models/Eft/Ragfair/SearchRequestData.cs index 5737e3bb..fb957b6c 100644 --- a/Core/Models/Eft/Ragfair/SearchRequestData.cs +++ b/Core/Models/Eft/Ragfair/SearchRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Ragfair; -public class SearchRequestData +public record SearchRequestData { [JsonPropertyName("page")] public int? Page { get; set; } @@ -82,7 +82,7 @@ public enum OfferOwnerType PLAYEROWNERTYPE = 2 } -public class BuildItems +public record BuildItems { // Define properties for BuildItems here if needed -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/SendRagfairReportRequestData.cs b/Core/Models/Eft/Ragfair/SendRagfairReportRequestData.cs index d69e542e..55c8241d 100644 --- a/Core/Models/Eft/Ragfair/SendRagfairReportRequestData.cs +++ b/Core/Models/Eft/Ragfair/SendRagfairReportRequestData.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class SendRagfairReportRequestData +public record SendRagfairReportRequestData { [JsonPropertyName("offerId")] public int? OfferId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ragfair/StorePlayerOfferTaxAmountRequestData.cs b/Core/Models/Eft/Ragfair/StorePlayerOfferTaxAmountRequestData.cs index ed51b0d2..9d748130 100644 --- a/Core/Models/Eft/Ragfair/StorePlayerOfferTaxAmountRequestData.cs +++ b/Core/Models/Eft/Ragfair/StorePlayerOfferTaxAmountRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ragfair; -public class StorePlayerOfferTaxAmountRequestData +public record StorePlayerOfferTaxAmountRequestData { [JsonPropertyName("id")] public string? Id { get; set; } @@ -15,4 +15,4 @@ public class StorePlayerOfferTaxAmountRequestData [JsonPropertyName("fee")] public double? Fee { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Repair/BaseRepairActionDataRequest.cs b/Core/Models/Eft/Repair/BaseRepairActionDataRequest.cs index 33dd60c6..a62d1a60 100644 --- a/Core/Models/Eft/Repair/BaseRepairActionDataRequest.cs +++ b/Core/Models/Eft/Repair/BaseRepairActionDataRequest.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Repair; -public class BaseRepairActionDataRequest +public record BaseRepairActionDataRequest { [JsonPropertyName("Action")] public string? Action { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Repair/RepairActionDataRequest.cs b/Core/Models/Eft/Repair/RepairActionDataRequest.cs index 53cd3e8a..73a911a9 100644 --- a/Core/Models/Eft/Repair/RepairActionDataRequest.cs +++ b/Core/Models/Eft/Repair/RepairActionDataRequest.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Repair; -public class RepairActionDataRequest : BaseRepairActionDataRequest +public record RepairActionDataRequest : BaseRepairActionDataRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "Repair"; @@ -14,11 +14,11 @@ public class RepairActionDataRequest : BaseRepairActionDataRequest public string? Target { get; set; } // item to repair } -public class RepairKitsInfo +public record RepairKitsInfo { [JsonPropertyName("_id")] public string? Id { get; set; } // id of repair kit to use [JsonPropertyName("count")] public int? Count { get; set; } // amount of units to reduce kit by -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Repair/TraderRepairActionDataRequest.cs b/Core/Models/Eft/Repair/TraderRepairActionDataRequest.cs index 88a56325..bd77e3fe 100644 --- a/Core/Models/Eft/Repair/TraderRepairActionDataRequest.cs +++ b/Core/Models/Eft/Repair/TraderRepairActionDataRequest.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Repair; -public class TraderRepairActionDataRequest : BaseRepairActionDataRequest +public record TraderRepairActionDataRequest : BaseRepairActionDataRequest { [JsonPropertyName("Action")] public string? Action { get; set; } = "TraderRepair"; @@ -14,11 +14,11 @@ public class TraderRepairActionDataRequest : BaseRepairActionDataRequest public List? RepairItems { get; set; } } -public class RepairItem +public record RepairItem { [JsonPropertyName("_id")] public string? Id { get; set; } [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Trade/ProcessBaseTradeRequestData.cs b/Core/Models/Eft/Trade/ProcessBaseTradeRequestData.cs index b6bc06e2..af2525dd 100644 --- a/Core/Models/Eft/Trade/ProcessBaseTradeRequestData.cs +++ b/Core/Models/Eft/Trade/ProcessBaseTradeRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Trade; -public class ProcessBaseTradeRequestData +public record ProcessBaseTradeRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -12,4 +12,4 @@ public class ProcessBaseTradeRequestData [JsonPropertyName("tid")] public string? TransactionId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Trade/ProcessBuyTradeRequestData.cs b/Core/Models/Eft/Trade/ProcessBuyTradeRequestData.cs index 5acae475..8c765d63 100644 --- a/Core/Models/Eft/Trade/ProcessBuyTradeRequestData.cs +++ b/Core/Models/Eft/Trade/ProcessBuyTradeRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Trade; -public class ProcessBuyTradeRequestData : ProcessBaseTradeRequestData +public record ProcessBuyTradeRequestData : ProcessBaseTradeRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } // TODO: formerly - "buy_from_trader" | "TradingConfirm" | "RestoreHealth" | "SptInsure" | "SptRepair" | "" @@ -26,7 +26,7 @@ public class ProcessBuyTradeRequestData : ProcessBaseTradeRequestData public List? SchemeItems { get; set; } } -public class SchemeItem +public record SchemeItem { /** Id of stack to take money from, is money tpl when Action is `SptInsure` */ [JsonPropertyName("id")] @@ -34,4 +34,4 @@ public class SchemeItem [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Trade/ProcessRagfairTradeRequestData.cs b/Core/Models/Eft/Trade/ProcessRagfairTradeRequestData.cs index b13488e5..ab527f75 100644 --- a/Core/Models/Eft/Trade/ProcessRagfairTradeRequestData.cs +++ b/Core/Models/Eft/Trade/ProcessRagfairTradeRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Trade; -public class ProcessRagfairTradeRequestData +public record ProcessRagfairTradeRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -11,7 +11,7 @@ public class ProcessRagfairTradeRequestData public List? Offers { get; set; } } -public class OfferRequest +public record OfferRequest { [JsonPropertyName("id")] public string? Id { get; set; } @@ -23,11 +23,11 @@ public class OfferRequest public List? Items { get; set; } } -public class ItemRequest +public record ItemRequest { [JsonPropertyName("id")] public string? Id { get; set; } [JsonPropertyName("count")] public int? Count { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Trade/ProcessSellTradeRequestData.cs b/Core/Models/Eft/Trade/ProcessSellTradeRequestData.cs index bffea25f..d7f7b087 100644 --- a/Core/Models/Eft/Trade/ProcessSellTradeRequestData.cs +++ b/Core/Models/Eft/Trade/ProcessSellTradeRequestData.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Trade; -public class ProcessSellTradeRequestData : ProcessBaseTradeRequestData +public record ProcessSellTradeRequestData : ProcessBaseTradeRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "sell_to_trader"; @@ -20,7 +20,7 @@ public class ProcessSellTradeRequestData : ProcessBaseTradeRequestData public List? Items { get; set; } } -public class SoldItem +public record SoldItem { [JsonPropertyName("id")] public string? Id { get; set; } @@ -30,4 +30,4 @@ public class SoldItem [JsonPropertyName("scheme_id")] public int? SchemeId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Trade/SellScavItemsToFenceRequestData.cs b/Core/Models/Eft/Trade/SellScavItemsToFenceRequestData.cs index 1a10cf3b..bee88f7c 100644 --- a/Core/Models/Eft/Trade/SellScavItemsToFenceRequestData.cs +++ b/Core/Models/Eft/Trade/SellScavItemsToFenceRequestData.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Request; namespace Core.Models.Eft.Trade; -public class SellScavItemsToFenceRequestData +public record SellScavItemsToFenceRequestData { [JsonPropertyName("Action")] public string? Action { get; set; } = "SellAllFromSavage"; @@ -16,4 +16,4 @@ public class SellScavItemsToFenceRequestData [JsonPropertyName("toOwner")] public OwnerInfo? ToOwner { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Weather/WeatherData.cs b/Core/Models/Eft/Weather/WeatherData.cs index d9fde421..312a1b59 100644 --- a/Core/Models/Eft/Weather/WeatherData.cs +++ b/Core/Models/Eft/Weather/WeatherData.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Weather; -public class WeatherData +public record WeatherData { [JsonPropertyName("acceleration")] public double? Acceleration { get; set; } @@ -21,7 +21,7 @@ public class WeatherData public Season? Season { get; set; } } -public class Weather +public record Weather { [JsonPropertyName("pressure")] public double? Pressure { get; set; } @@ -63,4 +63,4 @@ public class Weather [JsonPropertyName("sptInRaidTimestamp")] public long? SptInRaidTimestamp { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Wishlist/AddToWishlistRequest.cs b/Core/Models/Eft/Wishlist/AddToWishlistRequest.cs index 664ac33b..c43e66f8 100644 --- a/Core/Models/Eft/Wishlist/AddToWishlistRequest.cs +++ b/Core/Models/Eft/Wishlist/AddToWishlistRequest.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Wishlist; -public class AddToWishlistRequest +public record AddToWishlistRequest { [JsonPropertyName("Action")] public string? Action { get; set; } [JsonPropertyName("items")] public Dictionary? Items { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Wishlist/ChangeWishlistItemCategoryRequest.cs b/Core/Models/Eft/Wishlist/ChangeWishlistItemCategoryRequest.cs index b7d5adf4..d3096058 100644 --- a/Core/Models/Eft/Wishlist/ChangeWishlistItemCategoryRequest.cs +++ b/Core/Models/Eft/Wishlist/ChangeWishlistItemCategoryRequest.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Wishlist; -public class ChangeWishlistItemCategoryRequest +public record ChangeWishlistItemCategoryRequest { [JsonPropertyName("Action")] public string? Action { get; set; } @@ -12,4 +12,4 @@ public class ChangeWishlistItemCategoryRequest [JsonPropertyName("category")] public int? Category { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Wishlist/RemoveFromWishlistRequest.cs b/Core/Models/Eft/Wishlist/RemoveFromWishlistRequest.cs index 560f6a1c..011b5ccc 100644 --- a/Core/Models/Eft/Wishlist/RemoveFromWishlistRequest.cs +++ b/Core/Models/Eft/Wishlist/RemoveFromWishlistRequest.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Wishlist; -public class RemoveFromWishlistRequest +public record RemoveFromWishlistRequest { [JsonPropertyName("Action")] public string? Action { get; set; } [JsonPropertyName("items")] public List? Items { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsAid.cs b/Core/Models/Eft/Ws/WsAid.cs index 226a6f56..05105959 100644 --- a/Core/Models/Eft/Ws/WsAid.cs +++ b/Core/Models/Eft/Ws/WsAid.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsAid : WsNotificationEvent +public record WsAid : WsNotificationEvent { [JsonPropertyName("aid")] public int? Aid { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsAidNickname.cs b/Core/Models/Eft/Ws/WsAidNickname.cs index e74fca90..c61d3e3a 100644 --- a/Core/Models/Eft/Ws/WsAidNickname.cs +++ b/Core/Models/Eft/Ws/WsAidNickname.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsAidNickname : WsNotificationEvent +public record WsAidNickname : WsNotificationEvent { [JsonPropertyName("aid")] public int? Aid { get; set; } [JsonPropertyName("Nickname")] public string? Nickname { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsChatMessageReceived.cs b/Core/Models/Eft/Ws/WsChatMessageReceived.cs index 60c1de80..77367e14 100644 --- a/Core/Models/Eft/Ws/WsChatMessageReceived.cs +++ b/Core/Models/Eft/Ws/WsChatMessageReceived.cs @@ -4,7 +4,7 @@ using Core.Models.Eft.Profile; namespace Core.Models.Eft.Ws; -public class WsChatMessageReceived : WsNotificationEvent +public record WsChatMessageReceived : WsNotificationEvent { [JsonPropertyName("dialogId")] public string? DialogId { get; set; } @@ -14,4 +14,4 @@ public class WsChatMessageReceived : WsNotificationEvent [JsonPropertyName("profiles")] public List? Profiles { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsFriendListAccept.cs b/Core/Models/Eft/Ws/WsFriendListAccept.cs index 3d7b2fc0..7dbe7336 100644 --- a/Core/Models/Eft/Ws/WsFriendListAccept.cs +++ b/Core/Models/Eft/Ws/WsFriendListAccept.cs @@ -3,8 +3,8 @@ using Core.Models.Eft.Profile; namespace Core.Models.Eft.Ws; -public class WsFriendsListAccept : WsNotificationEvent +public record WsFriendsListAccept : WsNotificationEvent { [JsonPropertyName("profile")] public SearchFriendResponse? Profile { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupId.cs b/Core/Models/Eft/Ws/WsGroupId.cs index 50811cc7..2721a201 100644 --- a/Core/Models/Eft/Ws/WsGroupId.cs +++ b/Core/Models/Eft/Ws/WsGroupId.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsGroupId : WsNotificationEvent +public record WsGroupId : WsNotificationEvent { [JsonPropertyName("groupId")] public string? GroupId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchInviteAccept.cs b/Core/Models/Eft/Ws/WsGroupMatchInviteAccept.cs index d330efd1..f3522267 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchInviteAccept.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchInviteAccept.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Match; namespace Core.Models.Eft.Ws; -public class WsGroupMatchInviteAccept : WsNotificationEvent // TODO: trying to inherit multiTypes +public record WsGroupMatchInviteAccept : WsNotificationEvent // TODO: trying to inherit multiTypes { // Copy pasted properties from GroupCharacter to resolve multitype [JsonPropertyName("_id")] @@ -29,4 +29,4 @@ public class WsGroupMatchInviteAccept : WsNotificationEvent // TODO: trying to i [JsonPropertyName("lookingGroup")] public bool? LookingGroup { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchInviteDecline.cs b/Core/Models/Eft/Ws/WsGroupMatchInviteDecline.cs index 83023816..1d0045b7 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchInviteDecline.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchInviteDecline.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsGroupMatchInviteDecline : WsNotificationEvent +public record WsGroupMatchInviteDecline : WsNotificationEvent { [JsonPropertyName("aid")] public int? Aid { get; set; } [JsonPropertyName("Nickname")] public string? Nickname { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchInviteSend.cs b/Core/Models/Eft/Ws/WsGroupMatchInviteSend.cs index bf1695dc..7b7e2071 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchInviteSend.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchInviteSend.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Match; namespace Core.Models.Eft.Ws; -public class WsGroupMatchInviteSend : WsNotificationEvent +public record WsGroupMatchInviteSend : WsNotificationEvent { [JsonPropertyName("requestId")] public string? RequestId { get; set; } @@ -13,4 +13,4 @@ public class WsGroupMatchInviteSend : WsNotificationEvent [JsonPropertyName("members")] public List? Members { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchLeaderChanged.cs b/Core/Models/Eft/Ws/WsGroupMatchLeaderChanged.cs index e53eb588..04a91fba 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchLeaderChanged.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchLeaderChanged.cs @@ -2,8 +2,8 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsGroupMatchLeaderChanged : WsNotificationEvent +public record WsGroupMatchLeaderChanged : WsNotificationEvent { [JsonPropertyName("owner")] public int? Owner { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchRaidReady.cs b/Core/Models/Eft/Ws/WsGroupMatchRaidReady.cs index 390864a0..bec93785 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchRaidReady.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchRaidReady.cs @@ -3,8 +3,8 @@ using Core.Models.Eft.Match; namespace Core.Models.Eft.Ws; -public class WsGroupMatchRaidReady : WsNotificationEvent +public record WsGroupMatchRaidReady : WsNotificationEvent { [JsonPropertyName("extendedProfile")] public GroupCharacter? ExtendedProfile { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsGroupMatchRaidSettings.cs b/Core/Models/Eft/Ws/WsGroupMatchRaidSettings.cs index e0084633..2ddd0c04 100644 --- a/Core/Models/Eft/Ws/WsGroupMatchRaidSettings.cs +++ b/Core/Models/Eft/Ws/WsGroupMatchRaidSettings.cs @@ -3,8 +3,8 @@ using Core.Models.Eft.Match; namespace Core.Models.Eft.Ws; -public class WsGroupMatchRaidSettings : WsNotificationEvent +public record WsGroupMatchRaidSettings : WsNotificationEvent { [JsonPropertyName("raidSettings")] public RaidSettings? RaidSettings { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsNotificationEvent.cs b/Core/Models/Eft/Ws/WsNotificationEvent.cs index cd785e85..008326b4 100644 --- a/Core/Models/Eft/Ws/WsNotificationEvent.cs +++ b/Core/Models/Eft/Ws/WsNotificationEvent.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsNotificationEvent +public record WsNotificationEvent { [JsonPropertyName("type")] public NotificationEventType? EventType { get; set; } diff --git a/Core/Models/Eft/Ws/WsPing.cs b/Core/Models/Eft/Ws/WsPing.cs index f320da8e..9e07bb9f 100644 --- a/Core/Models/Eft/Ws/WsPing.cs +++ b/Core/Models/Eft/Ws/WsPing.cs @@ -1,6 +1,6 @@ namespace Core.Models.Eft.Ws; -public class WsPing : WsNotificationEvent +public record WsPing : WsNotificationEvent { public WsPing() { diff --git a/Core/Models/Eft/Ws/WsRagfairOfferSold.cs b/Core/Models/Eft/Ws/WsRagfairOfferSold.cs index f653653e..72dfce9c 100644 --- a/Core/Models/Eft/Ws/WsRagfairOfferSold.cs +++ b/Core/Models/Eft/Ws/WsRagfairOfferSold.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Eft.Ws; -public class WsRagfairOfferSold : WsNotificationEvent +public record WsRagfairOfferSold : WsNotificationEvent { [JsonPropertyName("offerId")] public string? OfferId { get; set; } @@ -12,4 +12,4 @@ public class WsRagfairOfferSold : WsNotificationEvent [JsonPropertyName("handbookId")] public string? HandbookId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Eft/Ws/WsUserConfirmed.cs b/Core/Models/Eft/Ws/WsUserConfirmed.cs index a5c87064..97e94a26 100644 --- a/Core/Models/Eft/Ws/WsUserConfirmed.cs +++ b/Core/Models/Eft/Ws/WsUserConfirmed.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Eft.Ws; -public class WsUserConfirmed : WsNotificationEvent +public record WsUserConfirmed : WsNotificationEvent { [JsonPropertyName("profileid")] public string? ProfileId { get; set; } @@ -40,4 +40,4 @@ public class WsUserConfirmed : WsNotificationEvent [JsonPropertyName("additional_info")] public List? AdditionalInfo { get; set; } // TODO: Was `any` in the node server. -} \ No newline at end of file +} diff --git a/Core/Models/Enums/AccountTypes.cs b/Core/Models/Enums/AccountTypes.cs index 929bbbf0..a529115c 100644 --- a/Core/Models/Enums/AccountTypes.cs +++ b/Core/Models/Enums/AccountTypes.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class AccountTypes +public record AccountTypes { public const string SPT_DEVELOPER = "spt developer"; } diff --git a/Core/Models/Enums/BaseClasses.cs b/Core/Models/Enums/BaseClasses.cs index 8a562a09..597579d8 100644 --- a/Core/Models/Enums/BaseClasses.cs +++ b/Core/Models/Enums/BaseClasses.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class BaseClasses +public record BaseClasses { public static string WEAPON = "5422acb9af1c889c16000029"; public static string UBGL = "55818b014bdc2ddc698b456b"; diff --git a/Core/Models/Enums/ConfigTypes.cs b/Core/Models/Enums/ConfigTypes.cs index 3d8d3d2d..bbab7fe9 100644 --- a/Core/Models/Enums/ConfigTypes.cs +++ b/Core/Models/Enums/ConfigTypes.cs @@ -104,4 +104,4 @@ public enum ConfigTypes SEASONAL_EVENT, LOST_ON_DEATH, GIFTS -} \ No newline at end of file +} diff --git a/Core/Models/Enums/GameEditions.cs b/Core/Models/Enums/GameEditions.cs index a89d3a4e..bae3889d 100644 --- a/Core/Models/Enums/GameEditions.cs +++ b/Core/Models/Enums/GameEditions.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class GameEditions +public record GameEditions { public const string STANDARD = "standard"; public const string LEFT_BEHIND = "left_behind"; diff --git a/Core/Models/Enums/HideoutEventActions.cs b/Core/Models/Enums/HideoutEventActions.cs index 24f82eeb..15cd958a 100644 --- a/Core/Models/Enums/HideoutEventActions.cs +++ b/Core/Models/Enums/HideoutEventActions.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class HideoutEventActions +public record HideoutEventActions { public const string HIDEOUT_UPGRADE = "HideoutUpgrade"; public const string HIDEOUT_UPGRADE_COMPLETE = "HideoutUpgradeComplete"; diff --git a/Core/Models/Enums/ItemEventActions.cs b/Core/Models/Enums/ItemEventActions.cs index e65ceb6d..6f668eee 100644 --- a/Core/Models/Enums/ItemEventActions.cs +++ b/Core/Models/Enums/ItemEventActions.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class ItemEventActions +public record ItemEventActions { public const string MOVE = "Move"; public const string REMOVE = "Remove"; diff --git a/Core/Models/Enums/ItemTpl.cs b/Core/Models/Enums/ItemTpl.cs index 0c352844..4d3b8426 100644 --- a/Core/Models/Enums/ItemTpl.cs +++ b/Core/Models/Enums/ItemTpl.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class ItemTpl +public record ItemTpl { public static string AMMOBOX_127X33_COPPER_20RND = "676009ddb623f3b8ba079419"; public static string AMMOBOX_127X33_FMJ_20RND = "676009ed8f1fee08740f9479"; diff --git a/Core/Models/Enums/Money.cs b/Core/Models/Enums/Money.cs index 597b6ac1..821485a1 100644 --- a/Core/Models/Enums/Money.cs +++ b/Core/Models/Enums/Money.cs @@ -1,6 +1,6 @@ namespace Core.Models.Enums; -public class Money +public record Money { public const string ROUBLES = "5449016a4bdc2d6f028b456f"; public const string EUROS = "569668774bdc2da2298b4568"; diff --git a/Core/Models/Spt/Bots/BotGenerationDetails.cs b/Core/Models/Spt/Bots/BotGenerationDetails.cs index eaeb8eeb..83e43c1d 100644 --- a/Core/Models/Spt/Bots/BotGenerationDetails.cs +++ b/Core/Models/Spt/Bots/BotGenerationDetails.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Bots; -public class BotGenerationDetails +public record BotGenerationDetails { /// /// Should the bot be generated as a PMC diff --git a/Core/Models/Spt/Bots/BotLootCache.cs b/Core/Models/Spt/Bots/BotLootCache.cs index 758f573e..872dc72b 100644 --- a/Core/Models/Spt/Bots/BotLootCache.cs +++ b/Core/Models/Spt/Bots/BotLootCache.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Bots; -public class BotLootCache +public record BotLootCache { [JsonPropertyName("backpackLoot")] public Dictionary? BackpackLoot { get; set; } @@ -44,7 +44,7 @@ public class BotLootCache public Dictionary? GrenadeItems { get; set; } } -public class LootCacheType +public record LootCacheType { public const string Special = "Special"; public const string Backpack = "Backpack"; diff --git a/Core/Models/Spt/Bots/Bots.cs b/Core/Models/Spt/Bots/Bots.cs index b3da341f..1fe654b1 100644 --- a/Core/Models/Spt/Bots/Bots.cs +++ b/Core/Models/Spt/Bots/Bots.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Bots; -public class Bots +public record Bots { [JsonPropertyName("types")] public Dictionary? Types { get; set; } @@ -13,4 +13,4 @@ public class Bots [JsonPropertyName("core")] public Dictionary? Core { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Bots/ChooseRandomCompatibleModResult.cs b/Core/Models/Spt/Bots/ChooseRandomCompatibleModResult.cs index 087959bd..4cb03eb2 100644 --- a/Core/Models/Spt/Bots/ChooseRandomCompatibleModResult.cs +++ b/Core/Models/Spt/Bots/ChooseRandomCompatibleModResult.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Bots; -public class ChooseRandomCompatibleModResult +public record ChooseRandomCompatibleModResult { [JsonPropertyName("incompatible")] public bool? Incompatible { get; set; } @@ -18,4 +18,4 @@ public class ChooseRandomCompatibleModResult [JsonPropertyName("slotBlocked")] public bool? SlotBlocked { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Bots/FilterPlateModsForSlotByLevelResult.cs b/Core/Models/Spt/Bots/FilterPlateModsForSlotByLevelResult.cs index 8ee284da..7f8cebd4 100644 --- a/Core/Models/Spt/Bots/FilterPlateModsForSlotByLevelResult.cs +++ b/Core/Models/Spt/Bots/FilterPlateModsForSlotByLevelResult.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Bots; -public class FilterPlateModsForSlotByLevelResult +public record FilterPlateModsForSlotByLevelResult { [JsonPropertyName("result")] public Result? Result { get; set; } @@ -18,4 +18,4 @@ public enum Result NO_DEFAULT_FILTER = 2, NOT_PLATE_HOLDING_SLOT = 3, LACKS_PLATE_WEIGHTS = 4 -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Bots/GenerateEquipmentProperties.cs b/Core/Models/Spt/Bots/GenerateEquipmentProperties.cs index 2efbc918..cd4c8b2d 100644 --- a/Core/Models/Spt/Bots/GenerateEquipmentProperties.cs +++ b/Core/Models/Spt/Bots/GenerateEquipmentProperties.cs @@ -5,7 +5,7 @@ using Core.Models.Spt.Config; namespace Core.Models.Spt.Bots; -public class GenerateEquipmentProperties +public record GenerateEquipmentProperties { /// /// Root Slot being generated diff --git a/Core/Models/Spt/Bots/GenerateWeaponRequest.cs b/Core/Models/Spt/Bots/GenerateWeaponRequest.cs index 54af2fec..e1ec77d4 100644 --- a/Core/Models/Spt/Bots/GenerateWeaponRequest.cs +++ b/Core/Models/Spt/Bots/GenerateWeaponRequest.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Bots; -public class GenerateWeaponRequest +public record GenerateWeaponRequest { /** Weapon to add mods to / result that is returned */ [JsonPropertyName("weapon")] @@ -46,7 +46,7 @@ public class GenerateWeaponRequest public List? ConflictingItemTpls { get; set; } } -public class BotData +public record BotData { /** Role of bot weapon is generated for */ [JsonPropertyName("role")] @@ -61,7 +61,7 @@ public class BotData public string? EquipmentRole { get; set; } } -public class WeaponStats +public record WeaponStats { [JsonPropertyName("hasOptic")] public bool? HasOptic { get; set; } @@ -73,7 +73,7 @@ public class WeaponStats public bool? HasRearIronSight { get; set; } } -public class BotModLimits +public record BotModLimits { [JsonPropertyName("scope")] public ItemCount? Scope { get; set; } @@ -94,7 +94,7 @@ public class BotModLimits public List? FlashlightLaserBaseTypes { get; set; } } -public class ItemCount +public record ItemCount { [JsonPropertyName("count")] public int? Count { get; set; } diff --git a/Core/Models/Spt/Bots/GenerateWeaponResult.cs b/Core/Models/Spt/Bots/GenerateWeaponResult.cs index b86f1c36..a12fa48f 100644 --- a/Core/Models/Spt/Bots/GenerateWeaponResult.cs +++ b/Core/Models/Spt/Bots/GenerateWeaponResult.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Bots; -public class GenerateWeaponResult +public record GenerateWeaponResult { [JsonPropertyName("weapon")] public List? Weapon { get; set; } @@ -19,4 +19,4 @@ public class GenerateWeaponResult [JsonPropertyName("weaponTemplate")] public TemplateItem? WeaponTemplate { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Bots/ItemSpawnLimitSettings.cs b/Core/Models/Spt/Bots/ItemSpawnLimitSettings.cs index 10305b9e..5919c6be 100644 --- a/Core/Models/Spt/Bots/ItemSpawnLimitSettings.cs +++ b/Core/Models/Spt/Bots/ItemSpawnLimitSettings.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Bots; -public class ItemSpawnLimitSettings +public record ItemSpawnLimitSettings { [JsonPropertyName("currentLimits")] public Dictionary? CurrentLimits { get; set; } diff --git a/Core/Models/Spt/Bots/ModToSpawnRequest.cs b/Core/Models/Spt/Bots/ModToSpawnRequest.cs index 0d8dc81d..4169edaf 100644 --- a/Core/Models/Spt/Bots/ModToSpawnRequest.cs +++ b/Core/Models/Spt/Bots/ModToSpawnRequest.cs @@ -5,7 +5,7 @@ using Core.Models.Spt.Config; namespace Core.Models.Spt.Bots; -public class ModToSpawnRequest +public record ModToSpawnRequest { /// /// Slot mod will fit into diff --git a/Core/Models/Spt/Config/AirdropConfig.cs b/Core/Models/Spt/Config/AirdropConfig.cs index 60e2ff93..f21c177c 100644 --- a/Core/Models/Spt/Config/AirdropConfig.cs +++ b/Core/Models/Spt/Config/AirdropConfig.cs @@ -5,7 +5,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Config; -public class AirdropConfig : BaseConfig +public record AirdropConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-airdrop"; @@ -26,7 +26,7 @@ public class AirdropConfig : BaseConfig /// /// Chance map will have an airdrop occur out of 100 - locations not included count as 0% /// -public class AirdropChancePercent +public record AirdropChancePercent { [JsonPropertyName("bigmap")] public double Bigmap { get; set; } @@ -56,7 +56,7 @@ public class AirdropChancePercent /// /// Loot inside crate /// -public class AirdropLoot +public record AirdropLoot { [JsonPropertyName("icon")] [JsonConverter(typeof(JsonStringEnumConverter))] diff --git a/Core/Models/Spt/Config/BackupConfig.cs b/Core/Models/Spt/Config/BackupConfig.cs index 7bd6b324..d8db1d78 100644 --- a/Core/Models/Spt/Config/BackupConfig.cs +++ b/Core/Models/Spt/Config/BackupConfig.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; -public class BackupConfig : BaseConfig +public record BackupConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-backup"; @@ -20,11 +20,11 @@ public class BackupConfig : BaseConfig public BackupConfigInterval BackupInterval { get; set; } } -public class BackupConfigInterval +public record BackupConfigInterval { [JsonPropertyName("enabled")] public bool Enabled { get; set; } [JsonPropertyName("intervalMinutes")] public int IntervalMinutes { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/BaseConfig.cs b/Core/Models/Spt/Config/BaseConfig.cs index dc385bd2..3a308045 100644 --- a/Core/Models/Spt/Config/BaseConfig.cs +++ b/Core/Models/Spt/Config/BaseConfig.cs @@ -2,17 +2,17 @@ namespace Core.Models.Spt.Config; -public class BaseConfig +public record BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } } -public class RunIntervalValues +public record RunIntervalValues { [JsonPropertyName("inRaid")] public int InRaid { get; set; } [JsonPropertyName("outOfRaid")] public int OutOfRaid { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/BotConfig.cs b/Core/Models/Spt/Config/BotConfig.cs index 82b8b26f..6e37936d 100644 --- a/Core/Models/Spt/Config/BotConfig.cs +++ b/Core/Models/Spt/Config/BotConfig.cs @@ -6,7 +6,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Config; -public class BotConfig : BaseConfig +public record BotConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-bot"; @@ -100,7 +100,7 @@ public class BotConfig : BaseConfig public List BotRolesThatMustHaveUniqueName { get; set; } } -public class AssaultToBossConversion +public record AssaultToBossConversion { [JsonPropertyName("bossConvertEnabled")] public bool BossConvertEnabled { get; set; } @@ -113,7 +113,7 @@ public class AssaultToBossConversion } /** Number of bots to generate and store in cache on raid start per bot type */ -public class PresetBatch +public record PresetBatch { [JsonPropertyName("assault")] public int Assault { get; set; } @@ -254,7 +254,7 @@ public class PresetBatch public IDictionary AdditionalData { get; set; } } -public class WalletLootSettings +public record WalletLootSettings { /// /// Chance wallets have loot in them @@ -278,7 +278,7 @@ public class WalletLootSettings public List WalletTplPool { get; set; } } -public class EquipmentFilters +public record EquipmentFilters { /// /// Limits for mod types per weapon .e.g. scopes @@ -386,7 +386,7 @@ public class EquipmentFilters public bool? ForceRigWhenNoVest { get; set; } } -public class ModLimits +public record ModLimits { /// /// How many scopes are allowed on a weapon - hard coded to work with OPTIC_SCOPE, ASSAULT_SCOPE, COLLIMATOR, COMPACT_COLLIMATOR @@ -401,7 +401,7 @@ public class ModLimits public int? LightLaserLimit { get; set; } } -public class RandomisationDetails +public record RandomisationDetails { /// /// Between what levels do these randomisation setting apply to @@ -452,7 +452,7 @@ public class RandomisationDetails public Dictionary? MinimumMagazineSize { get; set; } } -public class NighttimeChanges +public record NighttimeChanges { /// /// Applies changes to values stored in equipmentMods @@ -462,7 +462,7 @@ public class NighttimeChanges //public Dictionary WeaponModsModifiers { get; set; } //TODO } -public class EquipmentFilterDetails +public record EquipmentFilterDetails { /// /// Between what levels do these equipment filter setting apply to @@ -489,7 +489,7 @@ public class EquipmentFilterDetails public Dictionary>? Cartridge { get; set; } } -public class WeightingAdjustmentDetails +public record WeightingAdjustmentDetails { /// /// Between what levels do these weight settings apply to @@ -516,7 +516,7 @@ public class WeightingAdjustmentDetails public AdjustmentDetails? Clothing { get; set; } } -public class AdjustmentDetails +public record AdjustmentDetails { [JsonPropertyName("add")] public Dictionary> Add { get; set; } @@ -531,7 +531,7 @@ public class ArmorPlateWeights : Dictionary public MinMax LevelRange { get; set; } } -public class RandomisedResourceDetails +public record RandomisedResourceDetails { [JsonPropertyName("food")] public RandomisedResourceValues Food { get; set; } @@ -540,7 +540,7 @@ public class RandomisedResourceDetails public RandomisedResourceValues Meds { get; set; } } -public class RandomisedResourceValues +public record RandomisedResourceValues { /// /// Minimum percent of item to randomized between min and max resource diff --git a/Core/Models/Spt/Config/BotDurability.cs b/Core/Models/Spt/Config/BotDurability.cs index b45fa1d6..3aea61b9 100644 --- a/Core/Models/Spt/Config/BotDurability.cs +++ b/Core/Models/Spt/Config/BotDurability.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class BotDurability +public record BotDurability { [JsonPropertyName("default")] public DefaultDurability Default { get; set; } @@ -51,7 +51,7 @@ public class BotDurability } /** Durability values to be used when a more specific bot type can't be found */ -public class DefaultDurability +public record DefaultDurability { [JsonPropertyName("armor")] public ArmorDurability Armor { get; set; } @@ -60,7 +60,7 @@ public class DefaultDurability public WeaponDurability Weapon { get; set; } } -public class PmcDurability +public record PmcDurability { [JsonPropertyName("armor")] public PmcDurabilityArmor Armor { get; set; } @@ -69,7 +69,7 @@ public class PmcDurability public WeaponDurability Weapon { get; set; } } -public class PmcDurabilityArmor +public record PmcDurabilityArmor { [JsonPropertyName("lowestMaxPercent")] public double LowestMaxPercent { get; set; } @@ -87,7 +87,7 @@ public class PmcDurabilityArmor public double MinLimitPercent { get; set; } } -public class ArmorDurability +public record ArmorDurability { [JsonPropertyName("maxDelta")] public double MaxDelta { get; set; } @@ -99,7 +99,7 @@ public class ArmorDurability public double MinLimitPercent { get; set; } } -public class WeaponDurability +public record WeaponDurability { [JsonPropertyName("lowestMax")] public double LowestMax { get; set; } diff --git a/Core/Models/Spt/Config/CoreConfig.cs b/Core/Models/Spt/Config/CoreConfig.cs index 6cf96d9f..8bc77765 100644 --- a/Core/Models/Spt/Config/CoreConfig.cs +++ b/Core/Models/Spt/Config/CoreConfig.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Game; namespace Core.Models.Spt.Config; -public class CoreConfig : BaseConfig +public record CoreConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-core"; @@ -57,7 +57,7 @@ public class CoreConfig : BaseConfig public List? CustomWatermarkLocaleKeys { get; set; } } -public class BsgLogging +public record BsgLogging { /** * verbosity of what to log, yes I know this is backwards, but its how nlog deals with ordinals. @@ -79,7 +79,7 @@ public class BsgLogging public bool SendToServer { get; set; } } -public class Release +public record Release { // Disclaimer outlining the intended usage of bleeding edge [JsonPropertyName("betaDisclaimerText")] @@ -134,7 +134,7 @@ public class Release public int BetaDisclaimerTimeoutDelay { get; set; } } -public class GameFixes +public record GameFixes { /** Shotguns use a different value than normal guns causing huge pellet dispersion */ [JsonPropertyName("fixShotgunDispersion")] @@ -153,7 +153,7 @@ public class GameFixes public bool FixProfileBreakingInventoryItemIssues { get; set; } } -public class ServerFeatures +public record ServerFeatures { /* Controls whether or not the server attempts to download mod dependencies not included in the server's executable */ [JsonPropertyName("autoInstallModDependencies")] @@ -170,7 +170,7 @@ public class ServerFeatures public List CreateNewProfileTypesBlacklist { get; set; } } -public class ChatbotFeatures +public record ChatbotFeatures { [JsonPropertyName("sptFriendGiftsEnabled")] public bool SptFriendGiftsEnabled { get; set; } @@ -188,7 +188,7 @@ public class ChatbotFeatures public Dictionary EnabledBots { get; set; } } -public class CommandoFeatures +public record CommandoFeatures { [JsonPropertyName("giveCommandEnabled")] public bool GiveCommandEnabled { get; set; } diff --git a/Core/Models/Spt/Config/GiftsConfig.cs b/Core/Models/Spt/Config/GiftsConfig.cs index 16e2177b..cfa0210c 100644 --- a/Core/Models/Spt/Config/GiftsConfig.cs +++ b/Core/Models/Spt/Config/GiftsConfig.cs @@ -6,7 +6,7 @@ using Core.Models.Spt.Dialog; namespace Core.Models.Spt.Config; -public class GiftsConfig : BaseConfig +public record GiftsConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-gifts"; @@ -15,7 +15,7 @@ public class GiftsConfig : BaseConfig public Dictionary Gifts { get; set; } } -public class Gift +public record Gift { /// /// Items to send to player diff --git a/Core/Models/Spt/Config/HealthConfig.cs b/Core/Models/Spt/Config/HealthConfig.cs index 7088a1a3..9317d7de 100644 --- a/Core/Models/Spt/Config/HealthConfig.cs +++ b/Core/Models/Spt/Config/HealthConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class HealthConfig : BaseConfig +public record HealthConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-health"; @@ -14,7 +14,7 @@ public class HealthConfig : BaseConfig public HealthSave Save { get; set; } } -public class HealthMultipliers +public record HealthMultipliers { [JsonPropertyName("death")] public double Death { get; set; } @@ -23,11 +23,11 @@ public class HealthMultipliers public double Blacked { get; set; } } -public class HealthSave +public record HealthSave { [JsonPropertyName("health")] public bool Health { get; set; } [JsonPropertyName("effects")] public bool Effects { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/HideoutConfig.cs b/Core/Models/Spt/Config/HideoutConfig.cs index 57b66589..8f209cf6 100644 --- a/Core/Models/Spt/Config/HideoutConfig.cs +++ b/Core/Models/Spt/Config/HideoutConfig.cs @@ -3,7 +3,7 @@ using Core.Models.Common; namespace Core.Models.Spt.Config; -public class HideoutConfig : BaseConfig +public record HideoutConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-hideout"; @@ -42,7 +42,7 @@ public class HideoutConfig : BaseConfig public CultistCircleSettings CultistCircle { get; set; } } -public class CultistCircleSettings +public record CultistCircleSettings { [JsonPropertyName("maxRewardItemCount")] public int MaxRewardItemCount { get; set; } @@ -117,13 +117,13 @@ public class CultistCircleSettings public Dictionary CurrencyRewards { get; set; } } -public class CraftTimeThreshold : MinMax +public record CraftTimeThreshold : MinMax { [JsonPropertyName("craftTimeSeconds")] public int CraftTimeSeconds { get; set; } } -public class DirectRewardSettings +public record DirectRewardSettings { [JsonPropertyName("reward")] public List Reward { get; set; } @@ -139,4 +139,4 @@ public class DirectRewardSettings /// [JsonPropertyName("repeatable")] public bool Repeatable { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/HttpConfig.cs b/Core/Models/Spt/Config/HttpConfig.cs index c53ec739..3817444a 100644 --- a/Core/Models/Spt/Config/HttpConfig.cs +++ b/Core/Models/Spt/Config/HttpConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class HttpConfig : BaseConfig +public record HttpConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-http"; @@ -36,4 +36,4 @@ public class HttpConfig : BaseConfig /// [JsonPropertyName("serverImagePathOverride")] public Dictionary ServerImagePathOverride { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/InRaidConfig.cs b/Core/Models/Spt/Config/InRaidConfig.cs index c46f8eb2..e41fbb2a 100644 --- a/Core/Models/Spt/Config/InRaidConfig.cs +++ b/Core/Models/Spt/Config/InRaidConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class InRaidConfig : BaseConfig +public record InRaidConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-inraid"; @@ -52,7 +52,7 @@ public class InRaidConfig : BaseConfig public double PlayerScavHostileChancePercent { get; set; } } -public class RaidMenuSettings +public record RaidMenuSettings { [JsonPropertyName("aiAmount")] public string AiAmount { get; set; } @@ -79,9 +79,9 @@ public class RaidMenuSettings public bool RandomTime { get; set; } } -public class RaidSave +public record RaidSave { /** Should loot gained from raid be saved */ [JsonPropertyName("loot")] public bool Loot { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/InsuranceConfig.cs b/Core/Models/Spt/Config/InsuranceConfig.cs index 4a8fd62b..33cd342a 100644 --- a/Core/Models/Spt/Config/InsuranceConfig.cs +++ b/Core/Models/Spt/Config/InsuranceConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class InsuranceConfig : BaseConfig +public record InsuranceConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-insurance"; @@ -53,4 +53,4 @@ public class InsuranceConfig : BaseConfig [JsonPropertyName("simulateItemsBeingTaken")] public bool SimulateItemsBeingTaken { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/InventoryConfig.cs b/Core/Models/Spt/Config/InventoryConfig.cs index 66d747d5..1d52dce2 100644 --- a/Core/Models/Spt/Config/InventoryConfig.cs +++ b/Core/Models/Spt/Config/InventoryConfig.cs @@ -3,7 +3,7 @@ using Core.Models.Common; namespace Core.Models.Spt.Config; -public class InventoryConfig : BaseConfig +public record InventoryConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-inventory"; @@ -31,7 +31,7 @@ public class InventoryConfig : BaseConfig public List DeprioritisedMoneyContainers { get; set; } } -public class RewardDetails +public record RewardDetails { [JsonPropertyName("_type")] public string? Type { get; set; } @@ -49,7 +49,7 @@ public class RewardDetails public List? RewardTypePool { get; set; } } -public class SealedAirdropContainerSettings +public record SealedAirdropContainerSettings { [JsonPropertyName("weaponRewardWeight")] public Dictionary WeaponRewardWeight { get; set; } diff --git a/Core/Models/Spt/Config/ItemConfig.cs b/Core/Models/Spt/Config/ItemConfig.cs index 4515cdd3..605983f5 100644 --- a/Core/Models/Spt/Config/ItemConfig.cs +++ b/Core/Models/Spt/Config/ItemConfig.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common; namespace Core.Models.Spt.Config; -public class ItemConfig : BaseConfig +public record ItemConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-item"; @@ -36,7 +36,7 @@ public class ItemConfig : BaseConfig public List CustomItemGlobalPresets { get; set; } } -public class HandbookPriceOverride +public record HandbookPriceOverride { /** Price in roubles */ [JsonPropertyName("price")] @@ -45,4 +45,4 @@ public class HandbookPriceOverride /** NOT parentId from items.json, but handbook.json */ [JsonPropertyName("parentId")] public string ParentId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/LocaleConfig.cs b/Core/Models/Spt/Config/LocaleConfig.cs index 6aae0e41..e37963f9 100644 --- a/Core/Models/Spt/Config/LocaleConfig.cs +++ b/Core/Models/Spt/Config/LocaleConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class LocaleConfig : BaseConfig +public record LocaleConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-locale"; @@ -21,4 +21,4 @@ public class LocaleConfig : BaseConfig [JsonPropertyName("fallbacks")] public Dictionary Fallbacks { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/LocationConfig.cs b/Core/Models/Spt/Config/LocationConfig.cs index e6b9ffb0..decd3b8d 100644 --- a/Core/Models/Spt/Config/LocationConfig.cs +++ b/Core/Models/Spt/Config/LocationConfig.cs @@ -4,7 +4,7 @@ using Core.Models.Eft.Common; namespace Core.Models.Spt.Config; -public class LocationConfig : BaseConfig +public record LocationConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-location"; @@ -145,7 +145,7 @@ public class LocationConfig : BaseConfig public List NonMaps { get; set; } } -public class ReserveRaiderSpawnChanceOverrides +public record ReserveRaiderSpawnChanceOverrides { [JsonPropertyName("nonTriggered")] public int NonTriggered { get; set; } @@ -154,14 +154,14 @@ public class ReserveRaiderSpawnChanceOverrides public int Triggered { get; set; } } -public class EquipmentLootSettings +public record EquipmentLootSettings { // Percentage chance item will be added to equipment [JsonPropertyName("modSpawnChancePercent")] public Dictionary ModSpawnChancePercent { get; set; } } -public class FixEmptyBotWavesSettings +public record FixEmptyBotWavesSettings { [JsonPropertyName("enabled")] public bool Enabled { get; set; } @@ -170,7 +170,7 @@ public class FixEmptyBotWavesSettings public List IgnoreMaps { get; set; } } -public class RogueLighthouseSpawnTimeSettings +public record RogueLighthouseSpawnTimeSettings { [JsonPropertyName("enabled")] public bool Enabled { get; set; } @@ -179,7 +179,7 @@ public class RogueLighthouseSpawnTimeSettings public int WaitTimeSeconds { get; set; } } -public class SplitWaveSettings +public record SplitWaveSettings { [JsonPropertyName("enabled")] public bool Enabled { get; set; } @@ -191,7 +191,7 @@ public class SplitWaveSettings public int WaveSizeThreshold { get; set; } } -public class CustomWaves +public record CustomWaves { /** Bosses spawn on raid start */ [JsonPropertyName("boss")] @@ -201,14 +201,14 @@ public class CustomWaves public Dictionary> Normal { get; set; } } -public class BotTypeLimit : MinMax +public record BotTypeLimit : MinMax { [JsonPropertyName("type")] public string Type { get; set; } } /** Multiplier to apply to the loot count for a given map */ -public class LootMultiplier +public record LootMultiplier { [JsonPropertyName("bigmap")] public double BigMap { get; set; } @@ -265,7 +265,7 @@ public class LootMultiplier public double SandboxHigh { get; set; } } -public class ContainerRandomisationSettings +public record ContainerRandomisationSettings { [JsonPropertyName("enabled")] public bool Enabled { get; set; } @@ -285,7 +285,7 @@ public class ContainerRandomisationSettings public double ContainerGroupMaxSizeMultiplier { get; set; } } -public class ScavRaidTimeSettings +public record ScavRaidTimeSettings { [JsonPropertyName("settings")] public ScavRaidTimeConfigSettings Settings { get; set; } @@ -294,13 +294,13 @@ public class ScavRaidTimeSettings public Dictionary Maps { get; set; } } -public class ScavRaidTimeConfigSettings +public record ScavRaidTimeConfigSettings { [JsonPropertyName("trainArrivalDelayObservedSeconds")] public int TrainArrivalDelayObservedSeconds { get; set; } } -public class ScavRaidTimeLocationSettings +public record ScavRaidTimeLocationSettings { /** Should loot be reduced by same percent length of raid is reduced by */ [JsonPropertyName("reduceLootByPercent")] diff --git a/Core/Models/Spt/Config/LootConfig.cs b/Core/Models/Spt/Config/LootConfig.cs index 5646fbe0..8312ad1c 100644 --- a/Core/Models/Spt/Config/LootConfig.cs +++ b/Core/Models/Spt/Config/LootConfig.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common; namespace Core.Models.Spt.Config; -public class LootConfig : BaseConfig +public record LootConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-loot"; @@ -15,4 +15,4 @@ public class LootConfig : BaseConfig /** Loose loot probability adjustments to apply on game start */ [JsonPropertyName("looseLootSpawnPointAdjustments")] public Dictionary> LooseLootSpawnPointAdjustments { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/LostOnDeathConfig.cs b/Core/Models/Spt/Config/LostOnDeathConfig.cs index 972fec44..8e3dac85 100644 --- a/Core/Models/Spt/Config/LostOnDeathConfig.cs +++ b/Core/Models/Spt/Config/LostOnDeathConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class LostOnDeathConfig : BaseConfig +public record LostOnDeathConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-lostondeath"; @@ -20,7 +20,7 @@ public class LostOnDeathConfig : BaseConfig public bool QuestItems { get; set; } } -public class LostEquipment +public record LostEquipment { [JsonPropertyName("ArmBand")] public bool ArmBand { get; set; } diff --git a/Core/Models/Spt/Config/MatchConfig.cs b/Core/Models/Spt/Config/MatchConfig.cs index 7bca1837..67c75388 100644 --- a/Core/Models/Spt/Config/MatchConfig.cs +++ b/Core/Models/Spt/Config/MatchConfig.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class MatchConfig : BaseConfig +public record MatchConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-match"; diff --git a/Core/Models/Spt/Config/PlayerScavConfig.cs b/Core/Models/Spt/Config/PlayerScavConfig.cs index a31fe71e..d8cb1e67 100644 --- a/Core/Models/Spt/Config/PlayerScavConfig.cs +++ b/Core/Models/Spt/Config/PlayerScavConfig.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Config; -public class PlayerScavConfig : BaseConfig +public record PlayerScavConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-playerscav"; @@ -13,7 +13,7 @@ public class PlayerScavConfig : BaseConfig public Dictionary KarmaLevel { get; set; } } -public class KarmaLevel +public record KarmaLevel { [JsonPropertyName("botTypeForLoot")] public string BotTypeForLoot { get; set; } @@ -34,7 +34,7 @@ public class KarmaLevel public Dictionary LootItemsToAddChancePercent { get; set; } } -public class Modifiers +public record Modifiers { [JsonPropertyName("equipment")] public Dictionary Equipment { get; set; } @@ -43,7 +43,7 @@ public class Modifiers public Dictionary Mod { get; set; } } -public class ItemLimits +public record ItemLimits { [JsonPropertyName("healing")] public GenerationData Healing { get; set; } diff --git a/Core/Models/Spt/Config/PmcChatResponse.cs b/Core/Models/Spt/Config/PmcChatResponse.cs index a10a32ca..e51b3a6b 100644 --- a/Core/Models/Spt/Config/PmcChatResponse.cs +++ b/Core/Models/Spt/Config/PmcChatResponse.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Config; -public class PmcChatResponse : BaseConfig +public record PmcChatResponse : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-pmcchatresponse"; @@ -14,7 +14,7 @@ public class PmcChatResponse : BaseConfig public ResponseSettings Killer { get; set; } } -public class ResponseSettings +public record ResponseSettings { [JsonPropertyName("responseChancePercent")] public double ResponseChancePercent { get; set; } @@ -30,4 +30,4 @@ public class ResponseSettings [JsonPropertyName("appendBroToMessageEndChancePercent")] public double AppendBroToMessageEndChancePercent { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/PmcConfig.cs b/Core/Models/Spt/Config/PmcConfig.cs index 8ed2fd9e..4692f666 100644 --- a/Core/Models/Spt/Config/PmcConfig.cs +++ b/Core/Models/Spt/Config/PmcConfig.cs @@ -5,7 +5,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Config; -public class PmcConfig : BaseConfig +public record PmcConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-pmc"; @@ -120,7 +120,7 @@ public class PmcConfig : BaseConfig public List? LootItemLimitsRub { get; set; } } -public class HostilitySettings +public record HostilitySettings { /** Bot roles that are 100% an enemy */ [JsonPropertyName("additionalEnemyTypes")] @@ -147,7 +147,7 @@ public class HostilitySettings public string? SavagePlayerBehaviour { get; set; } } -public class PmcTypes +public record PmcTypes { [JsonPropertyName("usec")] public string Usec { get; set; } @@ -156,7 +156,7 @@ public class PmcTypes public string Bear { get; set; } } -public class SlotLootSettings +public record SlotLootSettings { /** Item Type whitelist */ [JsonPropertyName("whitelist")] @@ -167,13 +167,13 @@ public class SlotLootSettings public List Blacklist { get; set; } } -public class MinMaxLootValue : MinMax +public record MinMaxLootValue : MinMax { [JsonPropertyName("value")] public double Value { get; set; } } -public class MinMaxLootItemValue : MinMax +public record MinMaxLootItemValue : MinMax { [JsonPropertyName("backpack")] public MinMax Backpack { get; set; } diff --git a/Core/Models/Spt/Config/QuestConfig.cs b/Core/Models/Spt/Config/QuestConfig.cs index addc2ce4..cd9b08c9 100644 --- a/Core/Models/Spt/Config/QuestConfig.cs +++ b/Core/Models/Spt/Config/QuestConfig.cs @@ -5,7 +5,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Spt.Config; -public class QuestConfig : BaseConfig +public record QuestConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-quest"; @@ -45,7 +45,7 @@ public class QuestConfig : BaseConfig public Dictionary>? ProfileWhitelist { get; set; } } -public class PlayerTypeQuestIds +public record PlayerTypeQuestIds { [JsonPropertyName("pmc")] public QuestTypeIds? Pmc { get; set; } @@ -54,7 +54,7 @@ public class PlayerTypeQuestIds public QuestTypeIds? Scav { get; set; } } -public class QuestTypeIds +public record QuestTypeIds { [JsonPropertyName("elimination")] public string? Elimination { get; set; } @@ -69,7 +69,7 @@ public class QuestTypeIds public string? Pickup { get; set; } } -public class EventQuestData +public record EventQuestData { [JsonPropertyName("name")] public string? Name { get; set; } @@ -88,7 +88,7 @@ public class EventQuestData public bool? Yearly { get; set; } } -public class RepeatableQuestConfig +public record RepeatableQuestConfig { [JsonPropertyName("id")] public string? Id { get; set; } @@ -144,7 +144,7 @@ public class RepeatableQuestConfig public bool? KeepDailyQuestTypeOnReplacement { get; set; } } -public class RewardScaling +public record RewardScaling { [JsonPropertyName("levels")] public List? Levels { get; set; } @@ -174,7 +174,7 @@ public class RewardScaling public List? SkillPointReward { get; set; } } -public class TraderWhitelist +public record TraderWhitelist { [JsonPropertyName("name")] public string? Name { get; set; } @@ -195,7 +195,7 @@ public class TraderWhitelist public double? WeaponRewardChancePercent { get; set; } } -public class RepeatableQuestTypesConfig +public record RepeatableQuestTypesConfig { [JsonPropertyName("Exploration")] public Exploration? Exploration { get; set; } @@ -210,7 +210,7 @@ public class RepeatableQuestTypesConfig public List? Elimination { get; set; } } -public class Exploration : BaseQuestConfig +public record Exploration : BaseQuestConfig { [JsonPropertyName("maxExtracts")] public int? MaximumExtracts { get; set; } @@ -222,7 +222,7 @@ public class Exploration : BaseQuestConfig public SpecificExits? SpecificExits { get; set; } } -public class SpecificExits +public record SpecificExits { [JsonPropertyName("probability")] public double? Probability { get; set; } @@ -231,7 +231,7 @@ public class SpecificExits public List? PassageRequirementWhitelist { get; set; } } -public class Completion : BaseQuestConfig +public record Completion : BaseQuestConfig { [JsonPropertyName("minRequestedAmount")] public int? MinimumRequestedAmount { get; set; } @@ -255,7 +255,7 @@ public class Completion : BaseQuestConfig public bool? UseBlacklist { get; set; } } -public class Pickup : BaseQuestConfig +public record Pickup : BaseQuestConfig { [JsonPropertyName("ItemTypeToFetchWithMaxCount")] public List? ItemTypeToFetchWithMaxCount { get; set; } @@ -266,7 +266,7 @@ public class Pickup : BaseQuestConfig public int? MaxItemFetchCount { get; set; } } -public class PickupTypeWithMaxCount +public record PickupTypeWithMaxCount { [JsonPropertyName("itemType")] public string? ItemType { get; set; } @@ -278,7 +278,7 @@ public class PickupTypeWithMaxCount public int? MinimumPickupCount { get; set; } } -public class EliminationConfig : BaseQuestConfig +public record EliminationConfig : BaseQuestConfig { [JsonPropertyName("levelRange")] public MinMax? LevelRange { get; set; } @@ -338,19 +338,19 @@ public class EliminationConfig : BaseQuestConfig public List? WeaponRequirements { get; set; } } -public class BaseQuestConfig +public record BaseQuestConfig { [JsonPropertyName("possibleSkillRewards")] public List? PossibleSkillRewards { get; set; } } -public class Target : ProbabilityObject +public record Target : ProbabilityObject { [JsonPropertyName("data")] public BossInfo? Data { get; set; } } -public class BossInfo +public record BossInfo { [JsonPropertyName("isBoss")] public bool? IsBoss { get; set; } @@ -359,19 +359,19 @@ public class BossInfo public bool? IsPmc { get; set; } } -public class BodyPart : ProbabilityObject +public record BodyPart : ProbabilityObject { [JsonPropertyName("data")] public List? Data { get; set; } } -public class WeaponRequirement : ProbabilityObject +public record WeaponRequirement : ProbabilityObject { [JsonPropertyName("data")] public List? Data { get; set; } } -public class ProbabilityObject +public record ProbabilityObject { [JsonPropertyName("key")] public string? Key { get; set; } diff --git a/Core/Models/Spt/Config/RagfairConfig.cs b/Core/Models/Spt/Config/RagfairConfig.cs index 79034349..ceece30e 100644 --- a/Core/Models/Spt/Config/RagfairConfig.cs +++ b/Core/Models/Spt/Config/RagfairConfig.cs @@ -4,7 +4,7 @@ namespace Core.Models.Spt.Config; using System.Text.Json.Serialization; -public class RagfairConfig : BaseConfig +public record RagfairConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-ragfair"; @@ -32,7 +32,7 @@ public class RagfairConfig : BaseConfig public TieredFlea TieredFlea { get; set; } } -public class Sell +public record Sell { /** Should a fee be deducted from player when listing an item for sale */ [JsonPropertyName("fees")] @@ -51,7 +51,7 @@ public class Sell public int ExpireSeconds { get; set; } } -public class Chance +public record Chance { /** Base chance percent to sell an item */ [JsonPropertyName("base")] @@ -70,7 +70,7 @@ public class Chance public int MinSellChancePercent { get; set; } } -public class Dynamic +public record Dynamic { [JsonPropertyName("purchasesAreFoundInRaid")] // Should a purchased dynamic offers items be flagged as found in raid @@ -166,7 +166,7 @@ public class Dynamic public Dictionary ItemPriceOverrideRouble { get; set; } } -public class PriceRanges +public record PriceRanges { [JsonPropertyName("default")] public MinMax Default { get; set; } @@ -178,7 +178,7 @@ public class PriceRanges public MinMax Pack { get; set; } } -public class BarterDetails +public record BarterDetails { /** Percentage change an offer is listed as a barter */ [JsonPropertyName("chancePercent")] @@ -209,7 +209,7 @@ public class BarterDetails public List ItemTypeBlacklist { get; set; } } -public class PackDetails +public record PackDetails { /** Percentage change an offer is listed as a pack */ [JsonPropertyName("chancePercent")] @@ -228,7 +228,7 @@ public class PackDetails public List ItemTypeWhitelist { get; set; } } -public class OfferAdjustment +public record OfferAdjustment { /// /// Shuld offer price be adjusted when below handbook price @@ -255,7 +255,7 @@ public class OfferAdjustment public double PriceThresholdRub { get; set; } } -public class Condition +public record Condition { /// /// Percentage change durability is altered @@ -273,7 +273,7 @@ public class Condition public string Name { get; set; } } -public class RagfairBlacklist +public record RagfairBlacklist { /// /// Damaged ammo packs @@ -324,7 +324,7 @@ public class RagfairBlacklist public List CustomItemCategoryList { get; set; } } -public class ArmorPlateBlacklistSettings +public record ArmorPlateBlacklistSettings { /// /// Max level of plates an armor can have without being removed @@ -339,7 +339,7 @@ public class ArmorPlateBlacklistSettings public List IgnoreSlots { get; set; } } -public class UnreasonableModPrices +public record UnreasonableModPrices { /// /// Enable a system that adjusts very high ragfair prices to be below a max multiple of items the handbook values @@ -363,7 +363,7 @@ public class UnreasonableModPrices public string ItemType { get; set; } } -public class ArmorSettings +public record ArmorSettings { /// /// % chance / 100 that armor plates will be removed from an offer before listing @@ -378,7 +378,7 @@ public class ArmorSettings public List PlateSlotIdToRemovePool { get; set; } } -public class TieredFlea +public record TieredFlea { [JsonPropertyName("enabled")] public bool Enabled { get; set; } diff --git a/Core/Models/Spt/Config/RepairConfig.cs b/Core/Models/Spt/Config/RepairConfig.cs index 145ad5be..21c989c5 100644 --- a/Core/Models/Spt/Config/RepairConfig.cs +++ b/Core/Models/Spt/Config/RepairConfig.cs @@ -4,7 +4,7 @@ namespace Core.Models.Spt.Config; using System.Text.Json.Serialization; -public class RepairConfig : BaseConfig +public record RepairConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-repair"; @@ -36,7 +36,7 @@ public class RepairConfig : BaseConfig public RepairKit RepairKit { get; set; } } -public class IntellectGainValues +public record IntellectGainValues { [JsonPropertyName("weapon")] public double Weapon { get; set; } @@ -45,7 +45,7 @@ public class IntellectGainValues public double Armor { get; set; } } -public class MaxIntellectGainValues +public record MaxIntellectGainValues { [JsonPropertyName("kit")] public double Kit { get; set; } @@ -54,7 +54,7 @@ public class MaxIntellectGainValues public double Trader { get; set; } } -public class WeaponTreatmentRepairValues +public record WeaponTreatmentRepairValues { /** The chance to gain more weapon maintenance skill */ [JsonPropertyName("critSuccessChance")] @@ -75,7 +75,7 @@ public class WeaponTreatmentRepairValues public double PointGainMultiplier { get; set; } } -public class RepairKit +public record RepairKit { [JsonPropertyName("armor")] public BonusSettings Armor { get; set; } @@ -90,7 +90,7 @@ public class RepairKit public BonusSettings Headwear { get; set; } } -public class BonusSettings +public record BonusSettings { [JsonPropertyName("rarityWeight")] public Dictionary RarityWeight { get; set; } @@ -105,7 +105,7 @@ public class BonusSettings public Dictionary Rare { get; set; } } -public class BonusValues +public record BonusValues { [JsonPropertyName("valuesMinMax")] public MinMax ValuesMinMax { get; set; } diff --git a/Core/Models/Spt/Config/ScavCaseConfig.cs b/Core/Models/Spt/Config/ScavCaseConfig.cs index 776f1589..b05a1d06 100644 --- a/Core/Models/Spt/Config/ScavCaseConfig.cs +++ b/Core/Models/Spt/Config/ScavCaseConfig.cs @@ -4,7 +4,7 @@ namespace Core.Models.Spt.Config; using System.Text.Json.Serialization; -public class ScavCaseConfig : BaseConfig +public record ScavCaseConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-scavcase"; @@ -34,7 +34,7 @@ public class ScavCaseConfig : BaseConfig public bool AllowBossItemsAsRewards { get; set; } } -public class MoneyRewards +public record MoneyRewards { [JsonPropertyName("moneyRewardChancePercent")] public int MoneyRewardChancePercent { get; set; } @@ -52,7 +52,7 @@ public class MoneyRewards public MoneyLevels GpCount { get; set; } } -public class MoneyLevels +public record MoneyLevels { [JsonPropertyName("common")] public MinMax Common { get; set; } @@ -64,7 +64,7 @@ public class MoneyLevels public MinMax SuperRare { get; set; } } -public class AmmoRewards +public record AmmoRewards { [JsonPropertyName("ammoRewardChancePercent")] public int AmmoRewardChancePercent { get; set; } @@ -77,4 +77,4 @@ public class AmmoRewards [JsonPropertyName("minStackSize")] public int MinStackSize { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Config/SeasonalEventConfig.cs b/Core/Models/Spt/Config/SeasonalEventConfig.cs index 4b5b74e4..47f8e588 100644 --- a/Core/Models/Spt/Config/SeasonalEventConfig.cs +++ b/Core/Models/Spt/Config/SeasonalEventConfig.cs @@ -5,7 +5,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Spt.Config; -public class SeasonalEventConfig : BaseConfig +public record SeasonalEventConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-seasonalevents"; @@ -49,7 +49,7 @@ public class SeasonalEventConfig : BaseConfig public Dictionary>>> BotAppearanceChanges { get; set; } } -public class SeasonalEvent +public record SeasonalEvent { [JsonPropertyName("enabled")] public bool Enabled { get; set; } @@ -83,7 +83,7 @@ public class SeasonalEvent public SeasonalEventSettings? SettingsDoNOTUse { set => Settings = value; } } -public class SeasonalEventSettings +public record SeasonalEventSettings { [JsonPropertyName("enableSummoning")] public bool? EnableSummoning { get; set; } @@ -126,7 +126,7 @@ public class SeasonalEventSettings } -public class ZombieSettings +public record ZombieSettings { [JsonPropertyName("enabled")] public bool? Enabled { get; set; } @@ -141,7 +141,7 @@ public class ZombieSettings public List? DisableWaves { get; set; } } -public class GifterSetting +public record GifterSetting { [JsonPropertyName("map")] public string? Map { get; set; } diff --git a/Core/Models/Spt/Config/TraderConfig.cs b/Core/Models/Spt/Config/TraderConfig.cs index 74d834a2..ec1a7900 100644 --- a/Core/Models/Spt/Config/TraderConfig.cs +++ b/Core/Models/Spt/Config/TraderConfig.cs @@ -4,7 +4,7 @@ using Core.Models.Spt.Services; namespace Core.Models.Spt.Config; -public class TraderConfig : BaseConfig +public record TraderConfig : BaseConfig { [JsonPropertyName("kind")] public string Kind { get; set; } = "spt-trader"; @@ -32,7 +32,7 @@ public class TraderConfig : BaseConfig public ModdedTraders ModdedTraders { get; set; } } -public class UpdateTime +public record UpdateTime { [JsonPropertyName("_name")] public string Name { get; set; } @@ -45,7 +45,7 @@ public class UpdateTime public MinMax Seconds { get; set; } } -public class FenceConfig +public record FenceConfig { [JsonPropertyName("discountOptions")] public DiscountOptions DiscountOptions { get; set; } @@ -129,7 +129,7 @@ public class FenceConfig public double PlayerRepMax { get; set; } } -public class ItemDurabilityCurrentMax +public record ItemDurabilityCurrentMax { [JsonPropertyName("current")] public MinMax Current { get; set; } @@ -138,7 +138,7 @@ public class ItemDurabilityCurrentMax public MinMax Max { get; set; } } -public class CoopExtractReward : LootRequest +public record CoopExtractReward : LootRequest { [JsonPropertyName("sendGift")] public bool SendGift { get; set; } @@ -153,7 +153,7 @@ public class CoopExtractReward : LootRequest public int GiftExpiryHours { get; set; } } -public class DiscountOptions +public record DiscountOptions { [JsonPropertyName("assortSize")] public int AssortSize { get; set; } @@ -172,7 +172,7 @@ public class DiscountOptions } /** Custom trader data needed client side for things such as the clothing service */ -public class ModdedTraders +public record ModdedTraders { /** Trader Ids to enable the clothing service for */ [JsonPropertyName("clothingService")] diff --git a/Core/Models/Spt/Config/WeatherConfig.cs b/Core/Models/Spt/Config/WeatherConfig.cs index f5190889..500f3594 100644 --- a/Core/Models/Spt/Config/WeatherConfig.cs +++ b/Core/Models/Spt/Config/WeatherConfig.cs @@ -5,7 +5,7 @@ using Core.Utils.Json.Converters; namespace Core.Models.Spt.Config; -public class WeatherConfig : BaseConfig +public record WeatherConfig : BaseConfig { [JsonPropertyName("kind")] public string? Kind { get; set; } = "spt-weather"; @@ -23,7 +23,7 @@ public class WeatherConfig : BaseConfig public Season? OverrideSeason { get; set; } } -public class SeasonDateTimes +public record SeasonDateTimes { [JsonPropertyName("seasonType")] public Season? SeasonType { get; set; } @@ -48,7 +48,7 @@ public class SeasonDateTimes public int? EndMonth { get; set; } } -public class WeatherValues +public record WeatherValues { [JsonPropertyName("seasonValues")] public Dictionary? SeasonValues { get; set; } @@ -62,7 +62,7 @@ public class WeatherValues public WeatherSettings? TimePeriod { get; set; } } -public class SeasonalValues +public record SeasonalValues { [JsonPropertyName("clouds")] public WeatherSettings? Clouds { get; set; } @@ -92,7 +92,7 @@ public class SeasonalValues public MinMax? Pressure { get; set; } } -public class TempDayNight +public record TempDayNight { [JsonPropertyName("day")] public MinMax? Day { get; set; } @@ -101,7 +101,7 @@ public class TempDayNight public MinMax? Night { get; set; } } -public class WeatherSettings +public record WeatherSettings { [JsonPropertyName("values")] public List? Values { get; set; } diff --git a/Core/Models/Spt/Dialog/SendMessageDetails.cs b/Core/Models/Spt/Dialog/SendMessageDetails.cs index 0f9d0d4a..ddd1615c 100644 --- a/Core/Models/Spt/Dialog/SendMessageDetails.cs +++ b/Core/Models/Spt/Dialog/SendMessageDetails.cs @@ -5,7 +5,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Dialog; -public class SendMessageDetails +public record SendMessageDetails { /// /// Player id @@ -84,7 +84,7 @@ public class SendMessageDetails public string? ReplyTo { get; set; } } -public class ProfileChangeEvent +public record ProfileChangeEvent { [JsonPropertyName("_id")] public string? Id { get; set; } diff --git a/Core/Models/Spt/Fence/CreateFenceAssortsResult.cs b/Core/Models/Spt/Fence/CreateFenceAssortsResult.cs index 82b527a7..2e6d453c 100644 --- a/Core/Models/Spt/Fence/CreateFenceAssortsResult.cs +++ b/Core/Models/Spt/Fence/CreateFenceAssortsResult.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Fence; -public class CreateFenceAssortsResult +public record CreateFenceAssortsResult { [JsonPropertyName("sptItems")] public List>? SptItems { get; set; } @@ -13,4 +13,4 @@ public class CreateFenceAssortsResult [JsonPropertyName("loyal_level_items")] public Dictionary? LoyalLevelItems { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Fence/FenceAssortGenerationValues.cs b/Core/Models/Spt/Fence/FenceAssortGenerationValues.cs index a45b8ef6..1668286b 100644 --- a/Core/Models/Spt/Fence/FenceAssortGenerationValues.cs +++ b/Core/Models/Spt/Fence/FenceAssortGenerationValues.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Fence; -public class FenceAssortGenerationValues +public record FenceAssortGenerationValues { [JsonPropertyName("normal")] public GenerationAssortValues? Normal { get; set; } @@ -11,7 +11,7 @@ public class FenceAssortGenerationValues public GenerationAssortValues? Discount { get; set; } } -public class GenerationAssortValues +public record GenerationAssortValues { [JsonPropertyName("item")] public int? Item { get; set; } @@ -21,4 +21,4 @@ public class GenerationAssortValues [JsonPropertyName("equipmentPreset")] public int? EquipmentPreset { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Helper/WeightedRandomResult.cs b/Core/Models/Spt/Helper/WeightedRandomResult.cs index a9532f59..4b6887fd 100644 --- a/Core/Models/Spt/Helper/WeightedRandomResult.cs +++ b/Core/Models/Spt/Helper/WeightedRandomResult.cs @@ -1,6 +1,6 @@ namespace Core.Models.Spt.Helper; -public class WeightedRandomResult +public record WeightedRandomResult { public T Item { get; set; } public int Index { get; set; } diff --git a/Core/Models/Spt/Hideout/CircleCraftDetails.cs b/Core/Models/Spt/Hideout/CircleCraftDetails.cs index 30434621..47551c6c 100644 --- a/Core/Models/Spt/Hideout/CircleCraftDetails.cs +++ b/Core/Models/Spt/Hideout/CircleCraftDetails.cs @@ -4,7 +4,7 @@ using Core.Models.Spt.Config; namespace Core.Models.Spt.Hideout; -public class CircleCraftDetails +public record CircleCraftDetails { [JsonPropertyName("time")] public long Time { get; set; } @@ -17,4 +17,4 @@ public class CircleCraftDetails [JsonPropertyName("rewardDetails")] public CraftTimeThreshold? RewardDetails { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Hideout/Hideout.cs b/Core/Models/Spt/Hideout/Hideout.cs index 1b61a174..cb1774a1 100644 --- a/Core/Models/Spt/Hideout/Hideout.cs +++ b/Core/Models/Spt/Hideout/Hideout.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Hideout; namespace Core.Models.Spt.Hideout; -public class Hideout +public record Hideout { [JsonPropertyName("areas")] public List? Areas { get; set; } @@ -19,4 +19,4 @@ public class Hideout [JsonPropertyName("qte")] public List? Qte { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Hideout/ScavCaseRewardCountsAndPrices.cs b/Core/Models/Spt/Hideout/ScavCaseRewardCountsAndPrices.cs index d9ed0783..87dbfd48 100644 --- a/Core/Models/Spt/Hideout/ScavCaseRewardCountsAndPrices.cs +++ b/Core/Models/Spt/Hideout/ScavCaseRewardCountsAndPrices.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Hideout; -public class ScavCaseRewardCountsAndPrices +public record ScavCaseRewardCountsAndPrices { [JsonPropertyName("Common")] public RewardCountAndPriceDetails? Common { get; set; } @@ -14,7 +14,7 @@ public class ScavCaseRewardCountsAndPrices public RewardCountAndPriceDetails? Superrare { get; set; } } -public class RewardCountAndPriceDetails +public record RewardCountAndPriceDetails { [JsonPropertyName("minCount")] public int? MinCount { get; set; } @@ -27,4 +27,4 @@ public class RewardCountAndPriceDetails [JsonPropertyName("maxPriceRub")] public int? MaxPriceRub { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Inventory/OwnerInventoryItems.cs b/Core/Models/Spt/Inventory/OwnerInventoryItems.cs index d74d08b9..94ab531c 100644 --- a/Core/Models/Spt/Inventory/OwnerInventoryItems.cs +++ b/Core/Models/Spt/Inventory/OwnerInventoryItems.cs @@ -3,7 +3,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Inventory; -public class OwnerInventoryItems +public record OwnerInventoryItems { [JsonPropertyName("from")] public List? From { get; set; } @@ -16,4 +16,4 @@ public class OwnerInventoryItems [JsonPropertyName("isMail")] public bool? IsMail { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Location/RaidChanges.cs b/Core/Models/Spt/Location/RaidChanges.cs index c1034b0b..5aa53530 100644 --- a/Core/Models/Spt/Location/RaidChanges.cs +++ b/Core/Models/Spt/Location/RaidChanges.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Location; -public class RaidChanges +public record RaidChanges { [JsonPropertyName("dynamicLootPercent")] public float? DynamicLootPercent { get; set; } @@ -12,4 +12,4 @@ public class RaidChanges [JsonPropertyName("simulatedRaidStartSeconds")] public int? SimulatedRaidStartSeconds { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Logging/ClientLogRequest.cs b/Core/Models/Spt/Logging/ClientLogRequest.cs index f015f80d..4b3341f7 100644 --- a/Core/Models/Spt/Logging/ClientLogRequest.cs +++ b/Core/Models/Spt/Logging/ClientLogRequest.cs @@ -4,7 +4,7 @@ using Core.Models.Utils; namespace Core.Models.Spt.Logging; -public class ClientLogRequest : IRequestData +public record ClientLogRequest : IRequestData { [JsonPropertyName("Source")] public string? Source { get; set; } diff --git a/Core/Models/Spt/Logging/LogBackgroundColor.cs b/Core/Models/Spt/Logging/LogBackgroundColor.cs index 422ccf91..7a6509e6 100644 --- a/Core/Models/Spt/Logging/LogBackgroundColor.cs +++ b/Core/Models/Spt/Logging/LogBackgroundColor.cs @@ -1,6 +1,6 @@ // namespace Core.Models.Spt.Logging; // -// public struct LogBackgroundColor +// public record LogBackgroundColor // { // public const string DEFAULT = ""; // public const string BLACK = "blackBG"; diff --git a/Core/Models/Spt/Logging/LogTextColor.cs b/Core/Models/Spt/Logging/LogTextColor.cs index 24e01c6b..2997d23f 100644 --- a/Core/Models/Spt/Logging/LogTextColor.cs +++ b/Core/Models/Spt/Logging/LogTextColor.cs @@ -1,6 +1,6 @@ // namespace Core.Models.Spt.Logging; // -// public struct LogTextColor +// public record LogTextColor // { // public const string BLACK = "black"; // public const string RED = "red"; diff --git a/Core/Models/Spt/Logging/SptLogger.cs b/Core/Models/Spt/Logging/SptLogger.cs index 208794c8..63b8cbde 100644 --- a/Core/Models/Spt/Logging/SptLogger.cs +++ b/Core/Models/Spt/Logging/SptLogger.cs @@ -1,6 +1,6 @@ namespace Core.Models.Spt.Logging; -public class SptLogger +public record SptLogger { public object Error { get; set; } // error: (msg: string | Record) => void; public object Warn { get; set; } // warn: (msg: string | Record) => void; @@ -9,4 +9,4 @@ public class SptLogger public object Debug { get; set; } // debug: (msg: string | Record) => void; } -// TODO: needs to be reimplemented however we want to do it in this project \ No newline at end of file +// TODO: needs to be reimplemented however we want to do it in this project diff --git a/Core/Models/Spt/Mod/NewItemDetails.cs b/Core/Models/Spt/Mod/NewItemDetails.cs index 090c5dbc..fb976b80 100644 --- a/Core/Models/Spt/Mod/NewItemDetails.cs +++ b/Core/Models/Spt/Mod/NewItemDetails.cs @@ -4,13 +4,13 @@ using Props = Core.Models.Eft.Common.Props; namespace Core.Models.Spt.Mod; -public class NewItemDetails : NewItemDetailsBase +public record NewItemDetails : NewItemDetailsBase { [JsonPropertyName("newItem")] public TemplateItem? NewItem { get; set; } } -public class NewItemFromCloneDetails : NewItemDetailsBase +public record NewItemFromCloneDetails : NewItemDetailsBase { [JsonPropertyName("itemTplToClone")] public string? ItemTplToClone { get; set; } @@ -25,7 +25,7 @@ public class NewItemFromCloneDetails : NewItemDetailsBase public string? NewId { get; set; } = ""; } -public class NewItemDetailsBase +public record NewItemDetailsBase { [JsonPropertyName("fleaPriceRoubles")] public float? FleaPriceRoubles { get; set; } @@ -40,7 +40,7 @@ public class NewItemDetailsBase public Dictionary? Locales { get; set; } } -public class LocaleDetails +public record LocaleDetails { [JsonPropertyName("name")] public string? Name { get; set; } @@ -52,7 +52,7 @@ public class LocaleDetails public string? Description { get; set; } } -public class CreateItemResult +public record CreateItemResult { [JsonPropertyName("success")] public bool? Success { get; set; } @@ -70,4 +70,4 @@ public class CreateItemResult } } -// TODO: This needs to be reworked with however we do it for this project \ No newline at end of file +// TODO: This needs to be reworked with however we do it for this project diff --git a/Core/Models/Spt/Mod/PackageJsonData.cs b/Core/Models/Spt/Mod/PackageJsonData.cs index d3400aa6..15304ee2 100644 --- a/Core/Models/Spt/Mod/PackageJsonData.cs +++ b/Core/Models/Spt/Mod/PackageJsonData.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Mod; -public class PackageJsonData +public record PackageJsonData { [JsonPropertyName("incompatibilities")] public List? Incompatibilities { get; set; } @@ -54,4 +54,4 @@ public class PackageJsonData public List? Contributors { get; set; } } -// TODO: this will need changing to however we implement it in this project \ No newline at end of file +// TODO: this will need changing to however we implement it in this project diff --git a/Core/Models/Spt/Quests/GetRepeatableByIdResult.cs b/Core/Models/Spt/Quests/GetRepeatableByIdResult.cs index 69a37736..568ef944 100644 --- a/Core/Models/Spt/Quests/GetRepeatableByIdResult.cs +++ b/Core/Models/Spt/Quests/GetRepeatableByIdResult.cs @@ -3,11 +3,11 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Quests; -public class GetRepeatableByIdResult +public record GetRepeatableByIdResult { [JsonPropertyName("quest")] public RepeatableQuest? Quest { get; set; } [JsonPropertyName("repeatableType")] public PmcDataRepeatableQuest? RepeatableType { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Ragfair/RagfairServerPrices.cs b/Core/Models/Spt/Ragfair/RagfairServerPrices.cs index e12eb38c..ba0ee22d 100644 --- a/Core/Models/Spt/Ragfair/RagfairServerPrices.cs +++ b/Core/Models/Spt/Ragfair/RagfairServerPrices.cs @@ -2,11 +2,11 @@ namespace Core.Models.Spt.Ragfair; -public class RagfairServerPrices +public record RagfairServerPrices { [JsonPropertyName("static")] public Dictionary? Static { get; set; } [JsonPropertyName("dynamic")] public Dictionary? Dynamic { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Ragfair/TplWithFleaPrice.cs b/Core/Models/Spt/Ragfair/TplWithFleaPrice.cs index 4924cfdc..682fac88 100644 --- a/Core/Models/Spt/Ragfair/TplWithFleaPrice.cs +++ b/Core/Models/Spt/Ragfair/TplWithFleaPrice.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Ragfair; -public class TplWithFleaPrice +public record TplWithFleaPrice { [JsonPropertyName("tpl")] public string? Tpl { get; set; } @@ -10,4 +10,4 @@ public class TplWithFleaPrice // Roubles [JsonPropertyName("price")] public decimal? Price { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Repeatable/QuestRewardValues.cs b/Core/Models/Spt/Repeatable/QuestRewardValues.cs index af109a9d..7992ce71 100644 --- a/Core/Models/Spt/Repeatable/QuestRewardValues.cs +++ b/Core/Models/Spt/Repeatable/QuestRewardValues.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Repeatable; -public class QuestRewardValues +public record QuestRewardValues { [JsonPropertyName("skillPointReward")] public int? SkillPointReward { get; set; } @@ -24,4 +24,4 @@ public class QuestRewardValues [JsonPropertyName("rewardXP")] public int? RewardXP { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Repeatable/QuestTypePool.cs b/Core/Models/Spt/Repeatable/QuestTypePool.cs index 0a287922..760e57f3 100644 --- a/Core/Models/Spt/Repeatable/QuestTypePool.cs +++ b/Core/Models/Spt/Repeatable/QuestTypePool.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Repeatable; -public class QuestTypePool +public record QuestTypePool { [JsonPropertyName("types")] public List? Types { get; set; } @@ -13,7 +13,7 @@ public class QuestTypePool public QuestPool? Pool { get; set; } } -public class QuestPool +public record QuestPool { [JsonPropertyName("Exploration")] public ExplorationPool? Exploration { get; set; } @@ -25,19 +25,19 @@ public class QuestPool public ExplorationPool? Pickup { get; set; } } -public class ExplorationPool +public record ExplorationPool { [JsonPropertyName("locations")] public Dictionary>? Locations { get; set; } // TODO: check the type, originally - Partial> } -public class EliminationPool +public record EliminationPool { [JsonPropertyName("targets")] public EliminationTargetPool? Targets { get; set; } } -public class EliminationTargetPool +public record EliminationTargetPool { [JsonPropertyName("Savage")] public TargetLocation? Savage { get; set; } @@ -73,8 +73,8 @@ public class EliminationTargetPool public TargetLocation? BossBoarSniper { get; set; } } -public class TargetLocation +public record TargetLocation { [JsonPropertyName("locations")] public List? Locations { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Server/DatabaseTables.cs b/Core/Models/Spt/Server/DatabaseTables.cs index 5a5a0de6..582a1433 100644 --- a/Core/Models/Spt/Server/DatabaseTables.cs +++ b/Core/Models/Spt/Server/DatabaseTables.cs @@ -4,7 +4,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Server; -public class DatabaseTables +public record DatabaseTables { public Bots.Bots? Bots { get; set; } diff --git a/Core/Models/Spt/Server/ExhaustableArray.cs b/Core/Models/Spt/Server/ExhaustableArray.cs index 9225ff33..8313fb30 100644 --- a/Core/Models/Spt/Server/ExhaustableArray.cs +++ b/Core/Models/Spt/Server/ExhaustableArray.cs @@ -3,7 +3,7 @@ using Core.Utils.Cloners; namespace Core.Models.Spt.Server; -public class ExhaustableArray +public record ExhaustableArray { private readonly RandomUtil _randomUtil; private readonly ICloner _cloner; diff --git a/Core/Models/Spt/Server/LocaleBase.cs b/Core/Models/Spt/Server/LocaleBase.cs index b5569c90..15f2aab6 100644 --- a/Core/Models/Spt/Server/LocaleBase.cs +++ b/Core/Models/Spt/Server/LocaleBase.cs @@ -2,7 +2,7 @@ namespace Core.Models.Spt.Server; -public class LocaleBase +public record LocaleBase { [JsonPropertyName("global")] public Dictionary>? Global { get; set; } @@ -15,4 +15,4 @@ public class LocaleBase [JsonPropertyName("server")] public Dictionary>? Server { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Server/Locations.cs b/Core/Models/Spt/Server/Locations.cs index 36a516f8..638cdbb4 100644 --- a/Core/Models/Spt/Server/Locations.cs +++ b/Core/Models/Spt/Server/Locations.cs @@ -5,7 +5,7 @@ using Core.Models.Eft.Common; namespace Core.Models.Spt.Server; -public class Locations +public record Locations { [JsonPropertyName("bigmap")] public Eft.Common.Location? Bigmap { get; set; } diff --git a/Core/Models/Spt/Server/ServerBase.cs b/Core/Models/Spt/Server/ServerBase.cs index aa6a4d78..4315246f 100644 --- a/Core/Models/Spt/Server/ServerBase.cs +++ b/Core/Models/Spt/Server/ServerBase.cs @@ -2,11 +2,11 @@ namespace Core.Models.Spt.Server; -public class ServerBase +public record ServerBase { [JsonPropertyName("ip")] public string? Ip { get; set; } [JsonPropertyName("port")] public int? Port { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Server/SettingsBase.cs b/Core/Models/Spt/Server/SettingsBase.cs index 05db1a35..f0455e45 100644 --- a/Core/Models/Spt/Server/SettingsBase.cs +++ b/Core/Models/Spt/Server/SettingsBase.cs @@ -2,13 +2,13 @@ namespace Core.Models.Spt.Server; -public class SettingsBase +public record SettingsBase { [JsonPropertyName("config")] public Config? Configuration { get; set; } } -public class Config +public record Config { [JsonPropertyName("AFKTimeoutSeconds")] public int? AFKTimeoutSeconds { get; set; } @@ -92,7 +92,7 @@ public class Config public List? WsReconnectionDelays { get; set; } } -public class FramerateLimit +public record FramerateLimit { [JsonPropertyName("MaxFramerateGameLimit")] public int? MaxFramerateGameLimit { get; set; } @@ -104,7 +104,7 @@ public class FramerateLimit public int? MinFramerateLimit { get; set; } } -public class MemoryManagementSettings +public record MemoryManagementSettings { [JsonPropertyName("AggressiveGC")] public bool? AggressiveGC { get; set; } @@ -125,7 +125,7 @@ public class MemoryManagementSettings public bool? RamCleanerEnabled { get; set; } } -public class ReleaseProfiler +public record ReleaseProfiler { [JsonPropertyName("Enabled")] public bool? Enabled { get; set; } @@ -137,11 +137,11 @@ public class ReleaseProfiler public int? RecordTriggerValue { get; set; } } -public class NetworkStateView +public record NetworkStateView { [JsonPropertyName("LossThreshold")] public int? LossThreshold { get; set; } [JsonPropertyName("RttThreshold")] public int? RttThreshold { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Services/InsuranceEquipmentPkg.cs b/Core/Models/Spt/Services/InsuranceEquipmentPkg.cs index 70155ff2..8de0eb8d 100644 --- a/Core/Models/Spt/Services/InsuranceEquipmentPkg.cs +++ b/Core/Models/Spt/Services/InsuranceEquipmentPkg.cs @@ -4,7 +4,7 @@ using Core.Models.Eft.Common.Tables; namespace Core.Models.Spt.Services; -public class InsuranceEquipmentPkg +public record InsuranceEquipmentPkg { [JsonPropertyName("sessionID")] public string? SessionId { get; set; } @@ -17,4 +17,4 @@ public class InsuranceEquipmentPkg [JsonPropertyName("traderId")] public string? TraderId { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Services/LootItem.cs b/Core/Models/Spt/Services/LootItem.cs index a2c6e99a..f32b40e2 100644 --- a/Core/Models/Spt/Services/LootItem.cs +++ b/Core/Models/Spt/Services/LootItem.cs @@ -2,7 +2,7 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Services; -public class LootItem +public record LootItem { [JsonPropertyName("id")] public string? Id { get; set; } @@ -15,4 +15,4 @@ public class LootItem [JsonPropertyName("stackCount")] public int? StackCount { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Services/LootRequest.cs b/Core/Models/Spt/Services/LootRequest.cs index 2d2622cd..446e9459 100644 --- a/Core/Models/Spt/Services/LootRequest.cs +++ b/Core/Models/Spt/Services/LootRequest.cs @@ -4,7 +4,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Services; -public class LootRequest +public record LootRequest { /// /// Count of weapons to generate @@ -82,11 +82,11 @@ public class LootRequest public Dictionary? ForcedLoot { get; set; } } -public class AirdropLootRequest : LootRequest +public record AirdropLootRequest : LootRequest { /// /// Airdrop icon used by client to show crate type /// [JsonPropertyName("icon")] public AirdropTypeEnum? Icon { get; set; } -} \ No newline at end of file +} diff --git a/Core/Models/Spt/Services/TraderServiceModel.cs b/Core/Models/Spt/Services/TraderServiceModel.cs index 48c14054..6a85ffa8 100644 --- a/Core/Models/Spt/Services/TraderServiceModel.cs +++ b/Core/Models/Spt/Services/TraderServiceModel.cs @@ -3,7 +3,7 @@ using Core.Models.Enums; namespace Core.Models.Spt.Services; -public class TraderServiceModel +public record TraderServiceModel { [JsonPropertyName("serviceType")] [JsonConverter(typeof(JsonStringEnumConverter))] @@ -22,7 +22,7 @@ public class TraderServiceModel public TraderServiceRequirementsModel? Requirements { get; set; } } -public class TraderServiceRequirementsModel +public record TraderServiceRequirementsModel { [JsonPropertyName("completedQuests")] public List? CompletedQuests { get; set; } diff --git a/Core/Models/Spt/Templates/Templates.cs b/Core/Models/Spt/Templates/Templates.cs index b22cc4f0..b3815331 100644 --- a/Core/Models/Spt/Templates/Templates.cs +++ b/Core/Models/Spt/Templates/Templates.cs @@ -4,7 +4,7 @@ using Core.Models.Eft.Profile; namespace Core.Models.Spt.Templates; -public class Templates +public record Templates { [JsonPropertyName("character")] public List? Character { get; set; } diff --git a/Core/Models/Spt/Weather/GetLocalWeatherResponseData.cs b/Core/Models/Spt/Weather/GetLocalWeatherResponseData.cs index 5bdb48c3..aed4c9c8 100644 --- a/Core/Models/Spt/Weather/GetLocalWeatherResponseData.cs +++ b/Core/Models/Spt/Weather/GetLocalWeatherResponseData.cs @@ -2,11 +2,11 @@ using System.Text.Json.Serialization; namespace Core.Models.Spt.Weather; -public class GetLocalWeatherResponseData +public record GetLocalWeatherResponseData { [JsonPropertyName("season")] public int? Season { get; set; } [JsonPropertyName("weather")] public List? Weather { get; set; } -} \ No newline at end of file +}