initial change of nullables and few more generators

This commit is contained in:
CWX
2025-01-08 13:16:38 +00:00
parent 7b7f5cf9d2
commit 3ca974de8a
118 changed files with 1050 additions and 947 deletions
@@ -4,7 +4,7 @@ using Core.Models.Spt.Bots;
using Core.Models.Spt.Config;
using Equipment = Core.Models.Eft.Common.Tables.Equipment;
namespace Core.Generators.WeaponGen;
namespace Core.Generators;
public class BotInventoryGenerator
{
@@ -0,0 +1,24 @@
namespace Core.Generators.WeaponGen.Implementations;
public class BarrelInvetoryMagGen : InventoryMagGen
{
public BarrelInvetoryMagGen()
{
}
public int GetPriority()
{
return 50;
}
public bool CanHandleInventoryMagGen(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
public void Process(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
}
@@ -0,0 +1,31 @@
using Core.Models.Eft.Common.Tables;
namespace Core.Generators.WeaponGen.Implementations;
public class ExternalInventoryMagGen : InventoryMagGen
{
public ExternalInventoryMagGen()
{
}
public int GetPriority()
{
return 99;
}
public bool CanHandleInventoryMagGen(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
public void Process(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
public TemplateItem? GetRandomExternalMagazineForInternalMagazineGun(string weaponTpl, List<string> magazineBlacklist)
{
throw new NotImplementedException();
}
}
@@ -0,0 +1,24 @@
namespace Core.Generators.WeaponGen.Implementations;
public class InternalMagazineInventoryMagGen : InventoryMagGen
{
public InternalMagazineInventoryMagGen()
{
}
public int GetPriority()
{
return 0;
}
public bool CanHandleInventoryMagGen(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
public void Process(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
}
@@ -0,0 +1,24 @@
namespace Core.Generators.WeaponGen.Implementations;
public class UbglExternalMagGen : InventoryMagGen
{
public UbglExternalMagGen()
{
}
public int GetPriority()
{
return 1;
}
public bool CanHandleInventoryMagGen(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
public void Process(InventoryMagGen inventoryMagGen)
{
throw new NotImplementedException();
}
}
@@ -1,6 +1,6 @@
using Core.Models.Eft.Common.Tables;
namespace Core.Generators.WeaponGen.Implementations;
namespace Core.Generators.WeaponGen;
public class InventoryMagGen
{
+2 -2
View File
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Game;
public class CheckVersionResponse
{
[JsonPropertyName("isvalid")]
public bool IsValid { get; set; }
public bool? IsValid { get; set; }
[JsonPropertyName("latestVersion")]
public string LatestVersion { get; set; }
public string? LatestVersion { get; set; }
}
+17 -17
View File
@@ -6,38 +6,38 @@ namespace Core.Models.Eft.Game;
public class CurrentGroupResponse
{
[JsonPropertyName("squad")]
public List<CurrentGroupSquadMember> Squad { get; set; }
public List<CurrentGroupSquadMember>? Squad { get; set; }
}
public class CurrentGroupSquadMember
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("aid")]
public string Aid { get; set; }
public string? Aid { get; set; }
[JsonPropertyName("info")]
public CurrentGroupMemberInfo Info { get; set; }
public CurrentGroupMemberInfo? Info { get; set; }
[JsonPropertyName("isLeader")]
public bool IsLeader { get; set; }
public bool? IsLeader { get; set; }
[JsonPropertyName("isReady")]
public bool IsReady { get; set; }
public bool? IsReady { get; set; }
}
public class CurrentGroupMemberInfo
{
[JsonPropertyName("Nickname")]
public string Nickname { get; set; }
public string? Nickname { get; set; }
[JsonPropertyName("Side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("Level")]
public string Level { get; set; }
public string? Level { get; set; }
[JsonPropertyName("MemberCategory")]
public MemberCategory MemberCategory { get; set; }
public MemberCategory? MemberCategory { get; set; }
}
+21 -21
View File
@@ -5,72 +5,72 @@ namespace Core.Models.Eft.Game;
public class GameConfigResponse
{
[JsonPropertyName("aid")]
public int Aid { get; set; }
public int? Aid { get; set; }
[JsonPropertyName("lang")]
public string Language { get; set; }
public string? Language { get; set; }
[JsonPropertyName("languages")]
public Dictionary<string, string> Languages { get; set; }
public Dictionary<string, string>? Languages { get; set; }
[JsonPropertyName("ndaFree")]
public bool IsNdaFree { get; set; }
public bool? IsNdaFree { get; set; }
[JsonPropertyName("taxonomy")]
public int Taxonomy { get; set; }
public int? Taxonomy { get; set; }
[JsonPropertyName("activeProfileId")]
public string ActiveProfileId { get; set; }
public string? ActiveProfileId { get; set; }
[JsonPropertyName("backend")]
public Backend Backend { get; set; }
public Backend? Backend { get; set; }
[JsonPropertyName("useProtobuf")]
public bool UseProtobuf { get; set; }
public bool? UseProtobuf { get; set; }
[JsonPropertyName("utc_time")]
public long UtcTime { get; set; }
public long? UtcTime { get; set; }
/** Total in game time */
[JsonPropertyName("totalInGame")]
public int TotalInGame { get; set; }
public int? TotalInGame { get; set; }
[JsonPropertyName("reportAvailable")]
public bool IsReportAvailable { get; set; }
public bool? IsReportAvailable { get; set; }
[JsonPropertyName("twitchEventMember")]
public bool IsTwitchEventMember { get; set; }
public bool? IsTwitchEventMember { get; set; }
[JsonPropertyName("sessionMode")]
public string SessionMode { get; set; }
public string? SessionMode { get; set; }
[JsonPropertyName("purchasedGames")]
public PurchasedGames PurchasedGames { get; set; }
public PurchasedGames? PurchasedGames { get; set; }
}
public class PurchasedGames
{
[JsonPropertyName("eft")]
public bool IsEftPurchased { get; set; }
public bool? IsEftPurchased { get; set; }
[JsonPropertyName("arena")]
public bool IsArenaPurchased { get; set; }
public bool? IsArenaPurchased { get; set; }
}
public class Backend
{
[JsonPropertyName("Lobby")]
public string Lobby { get; set; }
public string? Lobby { get; set; }
[JsonPropertyName("Trading")]
public string Trading { get; set; }
public string? Trading { get; set; }
[JsonPropertyName("Messaging")]
public string Messaging { get; set; }
public string? Messaging { get; set; }
[JsonPropertyName("Main")]
public string Main { get; set; }
public string? Main { get; set; }
[JsonPropertyName("RagFair")]
public string RagFair { get; set; }
public string? RagFair { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Game;
public class GameEmptyCrcRequestData
{
[JsonPropertyName("crc")]
public int Crc { get; set; }
public int? Crc { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Game;
public class GameKeepAliveResponse
{
[JsonPropertyName("msg")]
public string Message { get; set; }
public string? Message { get; set; }
[JsonPropertyName("utc_time")]
public double UtcTime { get; set; }
public double? UtcTime { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Game;
public class GameLogoutResponseData
{
[JsonPropertyName("status")]
public string Status { get; set; }
public string? Status { get; set; }
}
+2 -2
View File
@@ -11,8 +11,8 @@ public enum SessionMode
public class GameModeResponse
{
[JsonPropertyName("gameMode")]
public SessionMode GameMode { get; set; }
public SessionMode? GameMode { get; set; }
[JsonPropertyName("backendUrl")]
public string BackendUrl { get; set; }
public string? BackendUrl { get; set; }
}
+2 -2
View File
@@ -2,8 +2,8 @@
namespace Core.Models.Eft.Game;
public class GameStartResponse
public class GameStartResponse
{
[JsonPropertyName("utc_time")]
public double UtcTime { get; set; }
public double? UtcTime { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Game;
public class GetItemPricesResponse
{
[JsonPropertyName("supplyNextTime")]
public double SupplyNextTime { get; set; }
public double? SupplyNextTime { get; set; }
[JsonPropertyName("prices")]
public Dictionary<string, double> Prices { get; set; }
public Dictionary<string, double>? Prices { get; set; }
[JsonPropertyName("currencyCourses")]
public Dictionary<string, double> CurrencyCourses { get; set; }
public Dictionary<string, double>? CurrencyCourses { get; set; }
}
+2 -2
View File
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Game;
public class GetRaidTimeRequest
{
[JsonPropertyName("Side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("Location")]
public string Location { get; set; }
public string? Location { get; set; }
}
+4 -4
View File
@@ -5,22 +5,22 @@ namespace Core.Models.Eft.Game;
public class GetRaidTimeResponse
{
[JsonPropertyName("RaidTimeMinutes")]
public int RaidTimeMinutes { get; set; }
public int? RaidTimeMinutes { get; set; }
[JsonPropertyName("NewSurviveTimeSeconds")]
public int? NewSurviveTimeSeconds { get; set; }
[JsonPropertyName("OriginalSurvivalTimeSeconds")]
public int OriginalSurvivalTimeSeconds { get; set; }
public int? OriginalSurvivalTimeSeconds { get; set; }
[JsonPropertyName("ExitChanges")]
public List<ExtractChange> ExitChanges { get; set; }
public List<ExtractChange>? ExitChanges { get; set; }
}
public class ExtractChange
{
[JsonPropertyName("Name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonPropertyName("MinTime")]
public int? MinTime { get; set; }
@@ -5,20 +5,20 @@ namespace Core.Models.Eft.Game;
public class SendSurveyOpinionRequest
{
[JsonPropertyName("surveyId")]
public int SurveyId { get; set; }
public int? SurveyId { get; set; }
[JsonPropertyName("answers")]
public List<SurveyOpinionAnswer> Answers { get; set; }
public List<SurveyOpinionAnswer>? Answers { get; set; }
}
public class SurveyOpinionAnswer
{
[JsonPropertyName("questionId")]
public int QuestionId { get; set; }
public int? QuestionId { get; set; }
[JsonPropertyName("answerType")]
public string AnswerType { get; set; }
public string? AnswerType { get; set; }
[JsonPropertyName("answers")]
public object Answers { get; set; }
public object? Answers { get; set; }
}
+2 -2
View File
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Game;
public class ServerDetails
{
[JsonPropertyName("ip")]
public string Ip { get; set; }
public string? Ip { get; set; }
[JsonPropertyName("port")]
public int Port { get; set; }
public int? Port { get; set; }
}
+23 -23
View File
@@ -5,86 +5,86 @@ namespace Core.Models.Eft.Game;
public class SurveyResponseData
{
[JsonPropertyName("locale")]
public Dictionary<string, Dictionary<string, string>> Locale { get; set; }
public Dictionary<string, Dictionary<string, string>>? Locale { get; set; }
[JsonPropertyName("survey")]
public Survey Survey { get; set; }
public Survey? Survey { get; set; }
}
public class Survey
{
[JsonPropertyName("id")]
public int Id { get; set; }
public int? Id { get; set; }
[JsonPropertyName("welcomePageData")]
public WelcomePageData WelcomePageData { get; set; }
public WelcomePageData? WelcomePageData { get; set; }
[JsonPropertyName("farewellPageData")]
public FarewellPageData FarewellPageData { get; set; }
public FarewellPageData? FarewellPageData { get; set; }
[JsonPropertyName("pages")]
public List<List<int>> Pages { get; set; }
public List<List<int>>? Pages { get; set; }
[JsonPropertyName("questions")]
public List<SurveyQuestion> Questions { get; set; }
public List<SurveyQuestion>? Questions { get; set; }
[JsonPropertyName("isNew")]
public bool IsNew { get; set; }
public bool? IsNew { get; set; }
}
public class WelcomePageData
{
[JsonPropertyName("titleLocaleKey")]
public string TitleLocaleKey { get; set; }
public string? TitleLocaleKey { get; set; }
[JsonPropertyName("timeLocaleKey")]
public string TimeLocaleKey { get; set; }
public string? TimeLocaleKey { get; set; }
[JsonPropertyName("descriptionLocaleKey")]
public string DescriptionLocaleKey { get; set; }
public string? DescriptionLocaleKey { get; set; }
}
public class FarewellPageData
{
[JsonPropertyName("textLocaleKey")]
public string TextLocaleKey { get; set; }
public string? TextLocaleKey { get; set; }
}
public class SurveyQuestion
{
[JsonPropertyName("id")]
public int Id { get; set; }
public int? Id { get; set; }
[JsonPropertyName("sortIndex")]
public int SortIndex { get; set; }
public int? SortIndex { get; set; }
[JsonPropertyName("titleLocaleKey")]
public string TitleLocaleKey { get; set; }
public string? TitleLocaleKey { get; set; }
[JsonPropertyName("hintLocaleKey")]
public string HintLocaleKey { get; set; }
public string? HintLocaleKey { get; set; }
[JsonPropertyName("answerLimit")]
public int AnswerLimit { get; set; }
public int? AnswerLimit { get; set; }
[JsonPropertyName("answerType")]
public string AnswerType { get; set; }
public string? AnswerType { get; set; }
[JsonPropertyName("answers")]
public List<SurveyAnswer> Answers { get; set; }
public List<SurveyAnswer>? Answers { get; set; }
}
public class SurveyAnswer
{
[JsonPropertyName("id")]
public int Id { get; set; }
public int? Id { get; set; }
[JsonPropertyName("questionId")]
public int QuestionId { get; set; }
public int? QuestionId { get; set; }
[JsonPropertyName("sortIndex")]
public int SortIndex { get; set; }
public int? SortIndex { get; set; }
[JsonPropertyName("localeKey")]
public string LocaleKey { get; set; }
public string? LocaleKey { get; set; }
}
@@ -5,26 +5,26 @@ namespace Core.Models.Eft.Game;
public class VersionValidateRequestData
{
[JsonPropertyName("version")]
public Version Version { get; set; }
public Version? Version { get; set; }
[JsonPropertyName("develop")]
public bool Develop { get; set; }
public bool? Develop { get; set; }
}
public class Version
{
[JsonPropertyName("major")]
public string Major { get; set; }
public string? Major { get; set; }
[JsonPropertyName("minor")]
public string Minor { get; set; }
public string? Minor { get; set; }
[JsonPropertyName("game")]
public string Game { get; set; }
public string? Game { get; set; }
[JsonPropertyName("backend")]
public string Backend { get; set; }
public string? Backend { get; set; }
[JsonPropertyName("taxonomy")]
public string Taxonomy { get; set; }
public string? Taxonomy { get; set; }
}
@@ -6,63 +6,63 @@ public class HealthTreatmentRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "RestoreHealth";
[JsonPropertyName("trader")]
public string Trader { get; set; }
public string? Trader { get; set; }
[JsonPropertyName("items")]
public List<ItemCost> Items { get; set; }
public List<ItemCost>? Items { get; set; }
[JsonPropertyName("difference")]
public Difference Difference { get; set; }
public Difference? Difference { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
public class ItemCost
{
/** Id of stack to take money from */
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
/** Amount of money to take off player for treatment */
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
}
public class Difference
{
[JsonPropertyName("BodyParts")]
public BodyParts BodyParts { get; set; }
public BodyParts? BodyParts { get; set; }
[JsonPropertyName("Energy")]
public int Energy { get; set; }
public int? Energy { get; set; }
[JsonPropertyName("Hydration")]
public int Hydration { get; set; }
public int? Hydration { get; set; }
}
public class BodyParts
{
[JsonPropertyName("Head")]
public BodyPart Head { get; set; }
public BodyPart? Head { get; set; }
[JsonPropertyName("Chest")]
public BodyPart Chest { get; set; }
public BodyPart? Chest { get; set; }
[JsonPropertyName("Stomach")]
public BodyPart Stomach { get; set; }
public BodyPart? Stomach { get; set; }
[JsonPropertyName("LeftArm")]
public BodyPart LeftArm { get; set; }
public BodyPart? LeftArm { get; set; }
[JsonPropertyName("RightArm")]
public BodyPart RightArm { get; set; }
public BodyPart? RightArm { get; set; }
[JsonPropertyName("LeftLeg")]
public BodyPart LeftLeg { get; set; }
public BodyPart? LeftLeg { get; set; }
[JsonPropertyName("RightLeg")]
public BodyPart RightLeg { get; set; }
public BodyPart? RightLeg { get; set; }
}
@@ -6,14 +6,14 @@ namespace Core.Models.Eft.Health;
public class OffraidEatRequestData : BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Eat";
public string? Action { get; set; } = "Eat";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
[JsonPropertyName("time")]
public int Time { get; set; }
public int? Time { get; set; }
}
@@ -4,11 +4,11 @@ namespace Core.Models.Eft.Health;
public class OffraidHealRequestData : BaseInteractionRequestData
{
public override string Action { get; set; } = "Heal";
public string Item { get; set; }
public BodyPart Part { get; set; }
public int Count { get; set; }
public int Time { get; set; }
public override string? Action { get; set; } = "Heal";
public string? Item { get; set; }
public BodyPart? Part { get; set; }
public int? Count { get; set; }
public int? Time { get; set; }
}
public enum BodyPart
+40 -40
View File
@@ -5,86 +5,86 @@ using System.Text.Json.Serialization;
public class WorkoutData : Dictionary<string, object>
{
[JsonPropertyName("skills")]
public WorkoutSkills Skills { get; set; }
public WorkoutSkills? Skills { get; set; }
}
public class WorkoutSkills
{
[JsonPropertyName("Common")]
public List<WorkoutSkillCommon> Common { get; set; }
public List<WorkoutSkillCommon>? Common { get; set; }
[JsonPropertyName("Mastering")]
public List<object> Mastering { get; set; }
public List<object>? Mastering { get; set; }
[JsonPropertyName("Bonuses")]
public object Bonuses { get; set; }
public object? Bonuses { get; set; }
[JsonPropertyName("Points")]
public int Points { get; set; }
public int? Points { get; set; }
}
public class WorkoutSkillCommon
{
[JsonPropertyName("Id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("Progress")]
public int Progress { get; set; }
public int? Progress { get; set; }
[JsonPropertyName("PointsEarnedDuringSession")]
public int PointsEarnedDuringSession { get; set; }
public int? PointsEarnedDuringSession { get; set; }
[JsonPropertyName("LastAccess")]
public long LastAccess { get; set; }
public long? LastAccess { get; set; }
}
public class WorkoutEffects
{
[JsonPropertyName("Effects")]
public WorkoutEffectsParts Effects { get; set; }
public WorkoutEffectsParts? Effects { get; set; }
[JsonPropertyName("Hydration")]
public int Hydration { get; set; }
public int? Hydration { get; set; }
[JsonPropertyName("Energy")]
public int Energy { get; set; }
public int? Energy { get; set; }
}
public class WorkoutEffectsParts
{
[JsonPropertyName("Head")]
public WorkoutBodyPart Head { get; set; }
public WorkoutBodyPart? Head { get; set; }
[JsonPropertyName("Chest")]
public WorkoutBodyPart Chest { get; set; }
public WorkoutBodyPart? Chest { get; set; }
[JsonPropertyName("Stomach")]
public WorkoutBodyPart Stomach { get; set; }
public WorkoutBodyPart? Stomach { get; set; }
[JsonPropertyName("LeftArm")]
public WorkoutBodyPart LeftArm { get; set; }
public WorkoutBodyPart? LeftArm { get; set; }
[JsonPropertyName("RightArm")]
public WorkoutBodyPart RightArm { get; set; }
public WorkoutBodyPart? RightArm { get; set; }
[JsonPropertyName("LeftLeg")]
public WorkoutBodyPart LeftLeg { get; set; }
public WorkoutBodyPart? LeftLeg { get; set; }
[JsonPropertyName("RightLeg")]
public WorkoutBodyPart RightLeg { get; set; }
public WorkoutBodyPart? RightLeg { get; set; }
[JsonPropertyName("Common")]
public WorkoutBodyPart Common { get; set; }
public WorkoutBodyPart? Common { get; set; }
}
public class WorkoutBodyPart
{
[JsonPropertyName("Regeneration")]
public int Regeneration { get; set; }
public int? Regeneration { get; set; }
[JsonPropertyName("Fracture")]
public int Fracture { get; set; }
public int? Fracture { get; set; }
[JsonPropertyName("MildMusclePain")]
public int MildMusclePain { get; set; }
public int? MildMusclePain { get; set; }
}
@@ -5,16 +5,16 @@ namespace Core.Models.Eft.Hideout;
public class HandleQTEEventRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; }
public string? Action { get; set; }
/** true if QTE was successful, otherwise false */
[JsonPropertyName("results")]
public List<bool> Results { get; set; }
public List<bool>? Results { get; set; }
/** Id of the QTE object used from db/hideout/qte.json */
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Hideout;
public class HideoutCircleOfCultistProductionStartRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutCircleOfCultistProductionStart";
public string? Action { get; set; } = "HideoutCircleOfCultistProductionStart";
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Hideout;
public class HideoutContinuousProductionStartRequestData
{
[JsonPropertyName("Action")]
public string Action { get; } = "HideoutContinuousProductionStart";
public string? Action { get; } = "HideoutContinuousProductionStart";
[JsonPropertyName("recipeId")]
public string RecipeId { get; set; }
public string? RecipeId { get; set; }
[JsonPropertyName("timestamp")]
public double Timestamp { get; set; }
public double? Timestamp { get; set; }
}
+17 -17
View File
@@ -6,59 +6,59 @@ namespace Core.Models.Eft.Hideout;
public class HideoutCustomisation
{
[JsonPropertyName("globals")]
public List<HideoutCustomisationGlobal> Globals { get; set; }
public List<HideoutCustomisationGlobal>? Globals { get; set; }
[JsonPropertyName("slots")]
public List<HideoutCustomisationSlot> Slots { get; set; }
public List<HideoutCustomisationSlot>? Slots { get; set; }
}
public class HideoutCustomisationGlobal
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("conditions")]
public List<QuestCondition> Conditions { get; set; }
public List<QuestCondition>? Conditions { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
public string? Type { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; }
public int? Index { get; set; }
[JsonPropertyName("systemName")]
public string SystemName { get; set; }
public string? SystemName { get; set; }
[JsonPropertyName("isEnabled")]
public bool IsEnabled { get; set; }
public bool? IsEnabled { get; set; }
[JsonPropertyName("itemId")]
public string ItemId { get; set; }
public string? ItemId { get; set; }
}
public class HideoutCustomisationSlot
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("conditions")]
public List<QuestCondition> Conditions { get; set; }
public List<QuestCondition>? Conditions { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
public string? Type { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; }
public int? Index { get; set; }
[JsonPropertyName("systemName")]
public string SystemName { get; set; }
public string? SystemName { get; set; }
[JsonPropertyName("isEnabled")]
public bool IsEnabled { get; set; }
public bool? IsEnabled { get; set; }
[JsonPropertyName("slotId")]
public string SlotId { get; set; }
public string? SlotId { get; set; }
[JsonPropertyName("areaTypeId")]
public int AreaTypeId { get; set; }
public int? AreaTypeId { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Hideout;
public class HideoutCustomizationApplyRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutCustomizationApply";
public string? Action { get; set; } = "HideoutCustomizationApply";
/// <summary>
/// Id of the newly picked item to apply to hideout
/// </summary>
[JsonPropertyName("offerId")]
public string OfferId { get; set; }
public string? OfferId { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Hideout;
public class HideoutDeleteProductionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutDeleteProductionCommand";
public string? Action { get; set; } = "HideoutDeleteProductionCommand";
[JsonPropertyName("recipeId")]
public string RecipeId { get; set; }
public string? RecipeId { get; set; }
[JsonPropertyName("timestamp")]
public double Timestamp { get; set; }
public double? Timestamp { get; set; }
}
@@ -5,18 +5,18 @@ namespace Core.Models.Eft.Hideout;
public class HideoutImproveAreaRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutImproveArea";
public string? Action { get; set; } = "HideoutImproveArea";
/** Hideout area id from areas.json */
[JsonPropertyName("id")]
public string AreaId { get; set; }
public string? AreaId { get; set; }
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("items")]
public List<HideoutItem> Items { get; set; }
public List<HideoutItem>? Items { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,23 +5,23 @@ namespace Core.Models.Eft.Hideout;
public class HideoutPutItemInRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutPutItemsInAreaSlots";
public string? Action { get; set; } = "HideoutPutItemsInAreaSlots";
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("items")]
public Dictionary<string, ItemDetails> Items { get; set; }
public Dictionary<string, ItemDetails>? Items { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
public class ItemDetails
{
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
}
@@ -5,35 +5,35 @@ namespace Core.Models.Eft.Hideout;
public class HideoutScavCaseStartRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutScavCaseProductionStart";
public string? Action { get; set; } = "HideoutScavCaseProductionStart";
[JsonPropertyName("recipeId")]
public string RecipeId { get; set; }
public string? RecipeId { get; set; }
[JsonPropertyName("items")]
public List<HideoutItem> Items { get; set; }
public List<HideoutItem>? Items { get; set; }
[JsonPropertyName("tools")]
public List<Tool> Tools { get; set; }
public List<Tool>? Tools { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
public class HideoutItem
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
}
public class Tool
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
}
@@ -5,17 +5,17 @@ namespace Core.Models.Eft.Hideout;
public class HideoutSettingsBase
{
[JsonPropertyName("generatorSpeedWithoutFuel")]
public double GeneratorSpeedWithoutFuel { get; set; }
public double? GeneratorSpeedWithoutFuel { get; set; }
[JsonPropertyName("generatorFuelFlowRate")]
public double GeneratorFuelFlowRate { get; set; }
public double? GeneratorFuelFlowRate { get; set; }
[JsonPropertyName("airFilterUnitFlowRate")]
public double AirFilterUnitFlowRate { get; set; }
public double? AirFilterUnitFlowRate { get; set; }
[JsonPropertyName("cultistAmuletBonusPercent")]
public double CultistAmuletBonusPercent { get; set; }
public double? CultistAmuletBonusPercent { get; set; }
[JsonPropertyName("gpuBoostRate")]
public double GpuBoostRate { get; set; }
public double? GpuBoostRate { get; set; }
}
@@ -5,26 +5,26 @@ namespace Core.Models.Eft.Hideout;
public class HideoutSingleProductionStartRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutSingleProductionStart";
public string? Action { get; set; } = "HideoutSingleProductionStart";
[JsonPropertyName("recipeId")]
public string RecipeId { get; set; }
public string? RecipeId { get; set; }
[JsonPropertyName("items")]
public List<HandoverItem> Items { get; set; }
public List<HandoverItem>? Items { get; set; }
[JsonPropertyName("tools")]
public List<HandoverItem> Tools { get; set; }
public List<HandoverItem>? Tools { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
public class HandoverItem
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Hideout;
public class HideoutTakeItemOutRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutTakeItemsFromAreaSlots";
public string? Action { get; set; } = "HideoutTakeItemsFromAreaSlots";
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("slots")]
public int[] Slots { get; set; }
public List<int>? Slots { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -4,11 +4,11 @@ namespace Core.Models.Eft.Hideout;
public class HideoutTakeProductionRequestData {
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutTakeProduction";
public string? Action { get; set; } = "HideoutTakeProduction";
[JsonPropertyName("recipeId")]
public string RecipeId { get; set; }
public string? RecipeId { get; set; }
[JsonPropertyName("timestamp")]
public int Timestamp { get; set; }
public int? Timestamp { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Hideout;
public class HideoutToggleAreaRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutToggleArea";
public string? Action { get; set; } = "HideoutToggleArea";
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
public bool? Enabled { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Hideout;
public class HideoutUpgradeCompleteRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutUpgradeComplete";
public string? Action { get; set; } = "HideoutUpgradeComplete";
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -6,14 +6,14 @@ namespace Core.Models.Eft.Hideout;
public class HideoutUpgradeRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "HideoutUpgrade";
public string? Action { get; set; } = "HideoutUpgrade";
[JsonPropertyName("areaType")]
public int AreaType { get; set; }
public int? AreaType { get; set; }
[JsonPropertyName("items")]
public List<HideoutItem> Items { get; set; }
public List<HideoutItem>? Items { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Hideout;
public class RecordShootingRangePoints
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "RecordShootingRangePoints";
public string? Action { get; set; } = "RecordShootingRangePoints";
[JsonPropertyName("points")]
public int Points { get; set; }
public int? Points { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.HttpResponse;
public class GetBodyResponseData<T>
{
[JsonPropertyName("err")]
public int Err { get; set; }
public int? Err { get; set; }
[JsonPropertyName("errmsg")]
public string ErrMsg { get; set; }
public string? ErrMsg { get; set; }
[JsonPropertyName("data")]
public T Data { get; set; }
public T? Data { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.HttpResponse;
public class NullResponseData
{
[JsonPropertyName("err")]
public int Err { get; set; }
public int? Err { get; set; }
[JsonPropertyName("errmsg")]
public object ErrMsg { get; set; }
public object? ErrMsg { get; set; }
[JsonPropertyName("data")]
public object Data { get; set; }
public object? Data { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.InRaid;
public class RegisterPlayerRequestData
{
[JsonPropertyName("crc")]
public int Crc { get; set; }
public int? Crc { get; set; }
[JsonPropertyName("locationId")]
public string LocationId { get; set; }
public string? LocationId { get; set; }
[JsonPropertyName("variantId")]
public int VariantId { get; set; }
public int? VariantId { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Insurance;
public class GetInsuranceCostRequestData
{
[JsonPropertyName("traders")]
public List<string> Traders { get; set; }
public List<string>? Traders { get; set; }
[JsonPropertyName("items")]
public List<string> Items { get; set; }
public List<string>? Items { get; set; }
}
@@ -6,11 +6,11 @@ namespace Core.Models.Eft.Insurance;
public class InsureRequestData : BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Insure";
public string? Action { get; set; } = "Insure";
[JsonPropertyName("tid")]
public string TransactionId { get; set; }
public string? TransactionId { get; set; }
[JsonPropertyName("items")]
public string[] Items { get; set; }
public List<string>? Items { get; set; }
}
@@ -10,13 +10,13 @@ public class InventoryBaseActionRequestData : BaseInteractionRequestData
public class To
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("container")]
public string Container { get; set; }
public string? Container { get; set; }
[JsonPropertyName("location")]
public object Location { get; set; } // TODO: types given IItemLocation or number
public object? Location { get; set; } // TODO: types given IItemLocation or number
[JsonPropertyName("isSearched")]
public bool? IsSearched { get; set; }
@@ -25,29 +25,29 @@ public class To
public class Container
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("container")]
public string ContainerName { get; set; }
public string? ContainerName { get; set; }
[JsonPropertyName("location")]
public object Location { get; set; } // TODO: types given: ILocation or number
public object? Location { get; set; } // TODO: types given: ILocation or number
}
public class Location
{
[JsonPropertyName("x")]
public double X { get; set; }
public double? X { get; set; }
[JsonPropertyName("y")]
public double Y { get; set; }
public double? Y { get; set; }
[JsonPropertyName("r")]
public string R { get; set; }
public string? R { get; set; }
[JsonPropertyName("rotation")]
public string Rotation { get; set; }
public string? Rotation { get; set; }
[JsonPropertyName("isSearched")]
public bool IsSearched { get; set; }
public bool? IsSearched { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryBindRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Bind";
public string? Action { get; set; } = "Bind";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; }
public int? Index { get; set; }
}
@@ -5,26 +5,26 @@ namespace Core.Models.Eft.Inventory;
public class InventoryCreateMarkerRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "CreateMapMarker";
public string? Action { get; set; } = "CreateMapMarker";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("mapMarker")]
public MapMarker MapMarker { get; set; }
public MapMarker? MapMarker { get; set; }
}
public class MapMarker
{
[JsonPropertyName("Type")]
public string Type { get; set; }
public string? Type { get; set; }
[JsonPropertyName("X")]
public double X { get; set; }
public double? X { get; set; }
[JsonPropertyName("Y")]
public double Y { get; set; }
public double? Y { get; set; }
[JsonPropertyName("Note")]
public string Note { get; set; }
public string? Note { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Inventory;
public class InventoryDeleteMarkerRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "DeleteMapMarker";
public string? Action { get; set; } = "DeleteMapMarker";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("X")]
public int X { get; set; }
public int? X { get; set; }
[JsonPropertyName("Y")]
public int Y { get; set; }
public int? Y { get; set; }
}
@@ -5,17 +5,17 @@ namespace Core.Models.Eft.Inventory;
public class InventoryEditMarkerRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "EditMapMarker";
public string? Action { get; set; } = "EditMapMarker";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("X")]
public double X { get; set; }
public double? X { get; set; }
[JsonPropertyName("Y")]
public double Y { get; set; }
public double? Y { get; set; }
[JsonPropertyName("mapMarker")]
public MapMarker MapMarker { get; set; }
public MapMarker? MapMarker { get; set; }
}
@@ -6,11 +6,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryExamineRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Examine";
public string? Action { get; set; } = "Examine";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("fromOwner")]
public OwnerInfo FromOwner { get; set; }
public OwnerInfo? FromOwner { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryFoldRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Fold";
public string? Action { get; set; } = "Fold";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("value")]
public bool Value { get; set; }
public bool? Value { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryMergeRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Merge";
public string? Action { get; set; } = "Merge";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("with")]
public string With { get; set; }
public string? With { get; set; }
}
@@ -6,11 +6,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryMoveRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Move";
public string? Action { get; set; } = "Move";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("to")]
public To To { get; set; }
public To? To { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Inventory;
public class InventoryReadEncyclopediaRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "ReadEncyclopedia";
public string? Action { get; set; } = "ReadEncyclopedia";
[JsonPropertyName("ids")]
public List<string> Ids { get; set; }
public List<string>? Ids { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Inventory;
public class InventoryRemoveRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Remove";
public string? Action { get; set; } = "Remove";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
}
@@ -6,8 +6,8 @@ namespace Core.Models.Eft.Inventory;
public class InventorySortRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "ApplyInventoryChanges";
public string? Action { get; set; } = "ApplyInventoryChanges";
[JsonPropertyName("changedItems")]
public List<Item> ChangedItems { get; set; }
public List<Item>? ChangedItems { get; set; }
}
@@ -5,19 +5,19 @@ namespace Core.Models.Eft.Inventory;
public class InventorySplitRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; } = "Split";
public string? Action { get; } = "Split";
/** Id of item to split */
[JsonPropertyName("splitItem")]
public string SplitItem { get; set; }
public string? SplitItem { get; set; }
/** Id of new item stack */
[JsonPropertyName("newItem")]
public string NewItem { get; set; }
public string? NewItem { get; set; }
/** Destination new item will be placed in */
[JsonPropertyName("container")]
public Container Container { get; set; }
public Container? Container { get; set; }
public int Count { get; set; }
public int? Count { get; set; }
}
@@ -6,23 +6,23 @@ namespace Core.Models.Eft.Inventory;
public class InventorySwapRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Swap";
public string? Action { get; set; } = "Swap";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("to")]
public To To { get; set; }
public To? To { get; set; }
[JsonPropertyName("item2")]
public string Item2 { get; set; }
public string? Item2 { get; set; }
[JsonPropertyName("to2")]
public To To2 { get; set; }
public To? To2 { get; set; }
[JsonPropertyName("fromOwner2")]
public OwnerInfo FromOwner2 { get; set; }
public OwnerInfo? FromOwner2 { get; set; }
[JsonPropertyName("toOwner2")]
public OwnerInfo ToOwner2 { get; set; }
public OwnerInfo? ToOwner2 { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Inventory;
public class InventoryTagRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Tag";
public string? Action { get; set; } = "Tag";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("TagName")]
public string TagName { get; set; }
public string? TagName { get; set; }
[JsonPropertyName("TagColor")]
public int TagColor { get; set; }
public int? TagColor { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Inventory;
public class InventoryToggleRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Toggle";
public string? Action { get; set; } = "Toggle";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("value")]
public bool Value { get; set; }
public bool? Value { get; set; }
}
@@ -5,14 +5,14 @@ namespace Core.Models.Eft.Inventory;
public class InventoryTransferRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "Transfer";
public string? Action { get; set; } = "Transfer";
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("with")]
public string With { get; set; }
public string? With { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
public int? Count { get; set; }
}
@@ -4,14 +4,14 @@ namespace Core.Models.Eft.Inventory;
public class OpenRandomLootContainerRequestData
{
public string Action { get; set; } = "OpenRandomLootContainer";
public string? Action { get; set; } = "OpenRandomLootContainer";
/// <summary>
/// Container item id being opened
/// </summary>
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("to")]
public List<ItemEvent.To> To { get; set; }
public List<ItemEvent.To>? To { get; set; }
}
@@ -6,13 +6,13 @@ namespace Core.Models.Eft.Inventory;
public class PinOrLockItemRequest
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "PinLock";
public string? Action { get; set; } = "PinLock";
/** Id of item being pinned */
[JsonPropertyName("Item")]
public string Item { get; set; }
public string? Item { get; set; }
/** "Pinned"/"Locked"/"Free" */
[JsonPropertyName("State")]
public PinLockState State { get; set; }
public PinLockState? State { get; set; }
}
@@ -5,17 +5,17 @@ namespace Core.Models.Eft.Inventory;
public class RedeemProfileRequestData : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "RedeemProfileReward";
public string? Action { get; set; } = "RedeemProfileReward";
[JsonPropertyName("events")]
public List<RedeemProfileRequestEvent> Events { get; set; }
public List<RedeemProfileRequestEvent>? Events { get; set; }
}
public class RedeemProfileRequestEvent
{
[JsonPropertyName("MessageId")]
public string MessageId { get; set; }
public string? MessageId { get; set; }
[JsonPropertyName("EventId")]
public string EventId { get; set; }
public string? EventId { get; set; }
}
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Inventory;
public class SetFavoriteItems : InventoryBaseActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "SetFavoriteItems";
public string? Action { get; set; } = "SetFavoriteItems";
[JsonPropertyName("items")]
public List<object> Items { get; set; }
public List<object>? Items { get; set; }
[JsonPropertyName("timestamp")]
public long Timestamp { get; set; }
public long? Timestamp { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.ItemEvent;
public class EmptyItemEventRouterResponse : ItemEventRouterBase
{
[JsonPropertyName("profileChanges")]
public string ProfileChanges { get; set; } = "";
public string? ProfileChanges { get; set; } = "";
}
@@ -9,7 +9,7 @@ using System.Text.Json.Serialization;
public class ItemEventRouterBase
{
[JsonPropertyName("warnings")]
public List<Warning> Warnings { get; set; }
public List<Warning>? Warnings { get; set; }
[JsonPropertyName("profileChanges")]
public object ProfileChanges { get; set; } // TODO: Types given TProfileChanges | ""
@@ -22,128 +22,128 @@ public class TProfileChanges : Dictionary<string, ProfileChange>
public class Warning
{
[JsonPropertyName("index")]
public int Index { get; set; }
public int? Index { get; set; }
[JsonPropertyName("errmsg")]
public string ErrorMessage { get; set; }
public string? ErrorMessage { get; set; }
[JsonPropertyName("code")]
public string Code { get; set; }
public string? Code { get; set; }
[JsonPropertyName("data")]
public object Data { get; set; }
public object? Data { get; set; }
}
public class ProfileChange
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("experience")]
public int Experience { get; set; }
public int? Experience { get; set; }
[JsonPropertyName("quests")]
public List<Quest> Quests { get; set; }
public List<Quest>? Quests { get; set; }
[JsonPropertyName("ragFairOffers")]
public List<RagfairOffer> RagFairOffers { get; set; }
public List<RagfairOffer>? RagFairOffers { get; set; }
[JsonPropertyName("weaponBuilds")]
public List<WeaponBuildChange> WeaponBuilds { get; set; }
public List<WeaponBuildChange>? WeaponBuilds { get; set; }
[JsonPropertyName("equipmentBuilds")]
public List<EquipmentBuildChange> EquipmentBuilds { get; set; }
public List<EquipmentBuildChange>? EquipmentBuilds { get; set; }
[JsonPropertyName("items")]
public ItemChanges Items { get; set; }
public ItemChanges? Items { get; set; }
[JsonPropertyName("production")]
public Dictionary<string, Productive> Production { get; set; }
public Dictionary<string, Productive>? Production { get; set; }
/** Hideout area improvement id */
[JsonPropertyName("improvements")]
public Dictionary<string, HideoutImprovement> Improvements { get; set; }
public Dictionary<string, HideoutImprovement>? Improvements { get; set; }
[JsonPropertyName("skills")]
public Skills Skills { get; set; }
public Skills? Skills { get; set; }
[JsonPropertyName("health")]
public Common.Health Health { get; set; }
[JsonPropertyName("traderRelations")]
public Dictionary<string, TraderData> TraderRelations { get; set; }
public Dictionary<string, TraderData>? TraderRelations { get; set; }
[JsonPropertyName("moneyTransferLimitData")]
public MoneyTransferLimits MoneyTransferLimitData { get; set; }
public MoneyTransferLimits? MoneyTransferLimitData { get; set; }
[JsonPropertyName("repeatableQuests")]
public List<PmcDataRepeatableQuest> RepeatableQuests { get; set; }
public List<PmcDataRepeatableQuest>? RepeatableQuests { get; set; }
[JsonPropertyName("recipeUnlocked")]
public Dictionary<string, bool> RecipeUnlocked { get; set; }
public Dictionary<string, bool>? RecipeUnlocked { get; set; }
[JsonPropertyName("changedHideoutStashes")]
public Dictionary<string, HideoutStashItem> ChangedHideoutStashes { get; set; }
public Dictionary<string, HideoutStashItem>? ChangedHideoutStashes { get; set; }
[JsonPropertyName("questsStatus")]
public List<QuestStatus> QuestsStatus { get; set; }
public List<QuestStatus>? QuestsStatus { get; set; }
}
public class HideoutStashItem
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("tpl")]
public string Template { get; set; }
public string? Template { get; set; }
}
public class WeaponBuildChange
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonPropertyName("root")]
public string Root { get; set; }
public string? Root { get; set; }
[JsonPropertyName("items")]
public List<Item> Items { get; set; }
public List<Item>? Items { get; set; }
}
public class EquipmentBuildChange
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonPropertyName("root")]
public string Root { get; set; }
public string? Root { get; set; }
[JsonPropertyName("items")]
public List<Item> Items { get; set; }
public List<Item>? Items { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
public string? Type { get; set; }
[JsonPropertyName("fastpanel")]
public List<object> FastPanel { get; set; }
public List<object>? FastPanel { get; set; }
[JsonPropertyName("buildType")]
public EquipmentBuildType BuildType { get; set; }
public EquipmentBuildType? BuildType { get; set; }
}
public class ItemChanges
{
[JsonPropertyName("new")]
public List<Product> NewItems { get; set; }
public List<Product>? NewItems { get; set; }
[JsonPropertyName("change")]
public List<Product> ChangedItems { get; set; }
public List<Product>? ChangedItems { get; set; }
[JsonPropertyName("del")]
public List<Product> DeletedItems { get; set; } // Only needs _id property
@@ -153,38 +153,38 @@ public class ItemChanges
public class TraderData
{
[JsonPropertyName("salesSum")]
public double SalesSum { get; set; }
public double? SalesSum { get; set; }
[JsonPropertyName("standing")]
public double Standing { get; set; }
public double? Standing { get; set; }
[JsonPropertyName("loyalty")]
public double Loyalty { get; set; }
public double? Loyalty { get; set; }
[JsonPropertyName("unlocked")]
public bool Unlocked { get; set; }
public bool? Unlocked { get; set; }
[JsonPropertyName("disabled")]
public bool Disabled { get; set; }
public bool? Disabled { get; set; }
}
public class Product
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("_tpl")]
public string Template { get; set; }
public string? Template { get; set; }
[JsonPropertyName("parentId")]
public string ParentId { get; set; }
public string? ParentId { get; set; }
[JsonPropertyName("slotId")]
public string SlotId { get; set; }
public string? SlotId { get; set; }
[JsonPropertyName("location")]
public ItemLocation Location { get; set; }
public ItemLocation? Location { get; set; }
[JsonPropertyName("upd")]
public Upd Upd { get; set; }
public Upd? Upd { get; set; }
}
@@ -5,50 +5,50 @@ namespace Core.Models.Eft.ItemEvent;
public class ItemEventRouterRequest
{
[JsonPropertyName("data")]
public List<Daum> Data { get; set; }
public List<Daum>? Data { get; set; }
[JsonPropertyName("tm")]
public int Time { get; set; }
public int? Time { get; set; }
[JsonPropertyName("reload")]
public int Reload { get; set; }
public int? Reload { get; set; }
}
public class Daum
{
[JsonPropertyName("Action")]
public string Action { get; set; }
public string? Action { get; set; }
[JsonPropertyName("item")]
public string Item { get; set; }
public string? Item { get; set; }
[JsonPropertyName("to")]
public To To { get; set; }
public To? To { get; set; }
}
public class To
{
[JsonPropertyName("id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("container")]
public string Container { get; set; }
public string? Container { get; set; }
[JsonPropertyName("location")]
public Location Location { get; set; }
public Location? Location { get; set; }
}
public class Location
{
[JsonPropertyName("x")]
public int X { get; set; }
public int? X { get; set; }
[JsonPropertyName("y")]
public int Y { get; set; }
public int? Y { get; set; }
[JsonPropertyName("r")]
public string R { get; set; }
public string? R { get; set; }
[JsonPropertyName("isSearched")]
public bool IsSearched { get; set; }
public bool? IsSearched { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Launcher;
public class ChangeRequestData : LoginRequestData
{
[JsonPropertyName("change")]
public string Change { get; set; }
public string? Change { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Launcher;
public class GetMiniProfileRequestData
{
[JsonPropertyName("username")]
public string Username { get; set; }
public string? Username { get; set; }
[JsonPropertyName("password")]
public string Password { get; set; }
public string? Password { get; set; }
}
+2 -2
View File
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Launcher;
public class LoginRequestData
{
[JsonPropertyName("username")]
public string Username { get; set; }
public string? Username { get; set; }
[JsonPropertyName("password")]
public string Password { get; set; }
public string? Password { get; set; }
}
+1 -1
View File
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Launcher;
public class RegisterData : LoginRequestData
{
[JsonPropertyName("edition")]
public string Edition { get; set; }
public string? Edition { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Location;
public class GetAirdropLootRequest
{
[JsonPropertyName("containerId")]
public string ContainerId { get; set; }
public string? ContainerId { get; set; }
}
@@ -8,8 +8,8 @@ public class GetAirdropLootResponse
{
// The type of airdrop
[JsonPropertyName("icon")]
public AirdropTypeEnum Icon { get; set; }
public AirdropTypeEnum? Icon { get; set; }
[JsonPropertyName("container")]
public List<Item> Container { get; set; }
public List<Item>? Container { get; set; }
}
@@ -11,96 +11,96 @@ public class EndLocalRaidRequestData
/// ID of server player just left
/// </summary>
[JsonPropertyName("serverId")]
public string ServerId { get; set; }
public string? ServerId { get; set; }
[JsonPropertyName("results")]
public EndRaidResult Results { get; set; }
public EndRaidResult? Results { get; set; }
/// <summary>
/// Insured items left in raid by player
/// </summary>
[JsonPropertyName("lostInsuredItems")]
public List<Item> LostInsuredItems { get; set; }
public List<Item>? LostInsuredItems { get; set; }
/// <summary>
/// Items sent via traders to player, keyed to service e.g. BTRTransferStash
/// </summary>
[JsonPropertyName("transferItems")]
public Dictionary<string, List<Item>> TransferItems { get; set; }
public Dictionary<string, List<Item>>? TransferItems { get; set; }
[JsonPropertyName("locationTransit")]
public LocationTransit LocationTransit { get; set; }
public LocationTransit? LocationTransit { get; set; }
}
public class EndRaidResult
{
public PmcData Profile { get; set; }
public PmcData? Profile { get; set; }
/// <summary>
/// "Survived/Transit" etc
/// </summary>
[JsonPropertyName("result")]
public ExitStatus Result { get; set; }
public ExitStatus? Result { get; set; }
[JsonPropertyName("killerId")]
public string KillerId { get; set; }
public string? KillerId { get; set; }
[JsonPropertyName("killerAid")]
public string KillerAid { get; set; }
public string? KillerAid { get; set; }
/// <summary>
/// "Gate 3" etc
/// </summary>
[JsonPropertyName("exitName")]
public string ExitName { get; set; }
public string? ExitName { get; set; }
[JsonPropertyName("inSession")]
public bool InSession { get; set; }
public bool? InSession { get; set; }
[JsonPropertyName("favorite")]
public bool Favorite { get; set; }
public bool? Favorite { get; set; }
/// <summary>
/// Seconds in raid
/// </summary>
[JsonPropertyName("playTime")]
public int PlayTime { get; set; }
public int? PlayTime { get; set; }
}
public class LocationTransit
{
[JsonPropertyName("hash")]
public string Hash { get; set; }
public string? Hash { get; set; }
[JsonPropertyName("playersCount")]
public int PlayersCount { get; set; }
public int? PlayersCount { get; set; }
[JsonPropertyName("ip")]
public string Ip { get; set; }
public string? Ip { get; set; }
[JsonPropertyName("location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("profiles")]
public Dictionary<string, TransitProfile> Profiles { get; set; }
public Dictionary<string, TransitProfile>? Profiles { get; set; }
[JsonPropertyName("transitionRaidId")]
public string TransitionRaidId { get; set; }
public string? TransitionRaidId { get; set; }
[JsonPropertyName("raidMode")]
public string RaidMode { get; set; }
public string? RaidMode { get; set; }
[JsonPropertyName("side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("dayTime")]
public string DayTime { get; set; }
public string? DayTime { get; set; }
/// <summary>
/// The location player last visited
/// </summary>
[JsonPropertyName("sptLastVisitedLocation")]
public string SptLastVisitedLocation { get; set; }
public string? SptLastVisitedLocation { get; set; }
/// <summary>
/// Name of exit taken
@@ -112,11 +112,11 @@ public class LocationTransit
public class TransitProfile
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("keyId")]
public string KeyId { get; set; }
public string? KeyId { get; set; }
[JsonPropertyName("isSolo")]
public bool IsSolo { get; set; }
public bool? IsSolo { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Match;
public class GetRaidConfigurationRequestData : RaidSettings
{
[JsonPropertyName("keyId")]
public string KeyId { get; set; }
public string? KeyId { get; set; }
[JsonPropertyName("MaxGroupCount")]
public int MaxGroupCount { get; set; }
public int? MaxGroupCount { get; set; }
}
+22 -22
View File
@@ -7,19 +7,19 @@ namespace Core.Models.Eft.Match;
public class GroupCharacter
{
[JsonPropertyName("_id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("aid")]
public int Aid { get; set; }
public int? Aid { get; set; }
[JsonPropertyName("Info")]
public CharacterInfo Info { get; set; }
public CharacterInfo? Info { get; set; }
[JsonPropertyName("PlayerVisualRepresentation")]
public PlayerVisualRepresentation? VisualRepresentation { get; set; }
[JsonPropertyName("isLeader")]
public bool IsLeader { get; set; }
public bool? IsLeader { get; set; }
[JsonPropertyName("isReady")]
public bool? IsReady { get; set; }
@@ -34,16 +34,16 @@ public class GroupCharacter
public class CharacterInfo
{
[JsonPropertyName("Nickname")]
public string Nickname { get; set; }
public string? Nickname { get; set; }
[JsonPropertyName("Side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("Level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonPropertyName("MemberCategory")]
public MemberCategory MemberCategory { get; set; }
public MemberCategory? MemberCategory { get; set; }
[JsonPropertyName("GameVersion")]
public string? GameVersion { get; set; }
@@ -61,53 +61,53 @@ public class CharacterInfo
public class PlayerVisualRepresentation
{
[JsonPropertyName("Info")]
public VisualInfo Info { get; set; }
public VisualInfo? Info { get; set; }
[JsonPropertyName("Customization")]
public Customization Customization { get; set; }
public Customization? Customization { get; set; }
[JsonPropertyName("Equipment")]
public Equipment Equipment { get; set; }
public Equipment? Equipment { get; set; }
}
public class VisualInfo
{
[JsonPropertyName("Side")]
public string Side { get; set; }
public string? Side { get; set; }
[JsonPropertyName("Level")]
public int Level { get; set; }
public int? Level { get; set; }
[JsonPropertyName("Nickname")]
public string Nickname { get; set; }
public string? Nickname { get; set; }
[JsonPropertyName("MemberCategory")]
public MemberCategory MemberCategory { get; set; }
public MemberCategory? MemberCategory { get; set; }
[JsonPropertyName("GameVersion")]
public string GameVersion { get; set; }
public string? GameVersion { get; set; }
}
public class Customization
{
[JsonPropertyName("Head")]
public string Head { get; set; }
public string? Head { get; set; }
[JsonPropertyName("Body")]
public string Body { get; set; }
public string? Body { get; set; }
[JsonPropertyName("Feet")]
public string Feet { get; set; }
public string? Feet { get; set; }
[JsonPropertyName("Hands")]
public string Hands { get; set; }
public string? Hands { get; set; }
}
public class Equipment
{
[JsonPropertyName("Id")]
public string Id { get; set; }
public string? Id { get; set; }
[JsonPropertyName("Items")]
public List<Item> Items { get; set; }
public List<Item>? Items { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Match;
public class MatchGroupCurrentResponse
{
[JsonPropertyName("squad")]
public List<GroupCharacter> Squad { get; set; }
public List<GroupCharacter>? Squad { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Match;
public class MatchGroupInviteSendRequest
{
[JsonPropertyName("to")]
public string To { get; set; }
public string? To { get; set; }
[JsonPropertyName("inLobby")]
public bool InLobby { get; set; }
public bool? InLobby { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Match;
public class MatchGroupPlayerRemoveRequest
{
[JsonPropertyName("aidToKick")]
public string AidToKick { get; set; }
public string? AidToKick { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Match;
public class MatchGroupStartGameRequest
{
[JsonPropertyName("groupId")]
public string GroupId { get; set; }
public string? GroupId { get; set; }
[JsonPropertyName("servers")]
public List<Server> Servers { get; set; }
public List<Server>? Servers { get; set; }
}
@@ -6,20 +6,20 @@ namespace Core.Models.Eft.Match;
public class MatchGroupStatusRequest
{
[JsonPropertyName("location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("savage")]
public bool IsSavage { get; set; }
public bool? IsSavage { get; set; }
[JsonPropertyName("dt")]
public string DateTime { get; set; }
public string? DateTime { get; set; }
[JsonPropertyName("keyId")]
public string KeyId { get; set; }
public string? KeyId { get; set; }
[JsonPropertyName("raidMode")]
public RaidMode RaidMode { get; set; }
public RaidMode? RaidMode { get; set; }
[JsonPropertyName("spawnPlace")]
public string SpawnPlace { get; set; }
public string? SpawnPlace { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Match;
public class MatchGroupStatusResponse
{
[JsonPropertyName("players")]
public List<GroupCharacter> Players { get; set; }
public List<GroupCharacter>? Players { get; set; }
[JsonPropertyName("maxPveCountExceeded")]
public bool MaxPveCountExceeded { get; set; }
public bool? MaxPveCountExceeded { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Match;
public class MatchGroupTransferRequest
{
[JsonPropertyName("aidToChange")]
public string AidToChange { get; set; }
public string? AidToChange { get; set; }
}
@@ -5,8 +5,8 @@ namespace Core.Models.Eft.Match;
public class ProfileStatusResponse
{
[JsonPropertyName("maxPveCountExceeded")]
public bool MaxPveCountExceeded { get; set; }
public bool? MaxPveCountExceeded { get; set; }
[JsonPropertyName("profiles")]
public List<SessionStatus> Profiles { get; set; }
public List<SessionStatus>? Profiles { get; set; }
}
+49 -49
View File
@@ -5,158 +5,158 @@ namespace Core.Models.Eft.Match;
public class PutMetricsRequestData
{
[JsonPropertyName("sid")]
public string SessionId { get; set; }
public string? SessionId { get; set; }
[JsonPropertyName("settings")]
public object Settings { get; set; }
public object? Settings { get; set; }
[JsonPropertyName("SharedSettings")]
public SharedSettings SharedSettings { get; set; }
public SharedSettings? SharedSettings { get; set; }
[JsonPropertyName("HardwareDescription")]
public HardwareDescription HardwareDescription { get; set; }
public HardwareDescription? HardwareDescription { get; set; }
[JsonPropertyName("Location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("Metrics")]
public object Metrics { get; set; }
public object? Metrics { get; set; }
[JsonPropertyName("ClientEvents")]
public ClientEvents ClientEvents { get; set; }
public ClientEvents? ClientEvents { get; set; }
[JsonPropertyName("SpikeSamples")]
public List<object> SpikeSamples { get; set; }
public List<object>? SpikeSamples { get; set; }
[JsonPropertyName("mode")]
public string Mode { get; set; }
public string? Mode { get; set; }
}
public class SharedSettings
{
[JsonPropertyName("StatedFieldOfView")]
public double StatedFieldOfView { get; set; }
public double? StatedFieldOfView { get; set; }
}
public class HardwareDescription
{
[JsonPropertyName("deviceUniqueIdentifier")]
public string DeviceUniqueIdentifier { get; set; }
public string? DeviceUniqueIdentifier { get; set; }
[JsonPropertyName("systemMemorySize")]
public double SystemMemorySize { get; set; }
public double? SystemMemorySize { get; set; }
[JsonPropertyName("graphicsDeviceID")]
public double GraphicsDeviceId { get; set; }
public double? GraphicsDeviceId { get; set; }
[JsonPropertyName("graphicsDeviceName")]
public string GraphicsDeviceName { get; set; }
public string? GraphicsDeviceName { get; set; }
[JsonPropertyName("graphicsDeviceType")]
public string GraphicsDeviceType { get; set; }
public string? GraphicsDeviceType { get; set; }
[JsonPropertyName("graphicsDeviceVendor")]
public string GraphicsDeviceVendor { get; set; }
public string? GraphicsDeviceVendor { get; set; }
[JsonPropertyName("graphicsDeviceVendorID")]
public double GraphicsDeviceVendorId { get; set; }
public double? GraphicsDeviceVendorId { get; set; }
[JsonPropertyName("graphicsDeviceVersion")]
public string GraphicsDeviceVersion { get; set; }
public string? GraphicsDeviceVersion { get; set; }
[JsonPropertyName("graphicsMemorySize")]
public double GraphicsMemorySize { get; set; }
public double? GraphicsMemorySize { get; set; }
[JsonPropertyName("graphicsMultiThreaded")]
public bool GraphicsMultiThreaded { get; set; }
public bool? GraphicsMultiThreaded { get; set; }
[JsonPropertyName("graphicsShaderLevel")]
public double GraphicsShaderLevel { get; set; }
public double? GraphicsShaderLevel { get; set; }
[JsonPropertyName("operatingSystem")]
public string OperatingSystem { get; set; }
public string? OperatingSystem { get; set; }
[JsonPropertyName("processorCount")]
public double ProcessorCount { get; set; }
public double? ProcessorCount { get; set; }
[JsonPropertyName("processorFrequency")]
public double ProcessorFrequency { get; set; }
public double? ProcessorFrequency { get; set; }
[JsonPropertyName("processorType")]
public string ProcessorType { get; set; }
public string? ProcessorType { get; set; }
[JsonPropertyName("driveType")]
public string DriveType { get; set; }
public string? DriveType { get; set; }
[JsonPropertyName("swapDriveType")]
public string SwapDriveType { get; set; }
public string? SwapDriveType { get; set; }
}
public class ClientEvents
{
[JsonPropertyName("MatchingCompleted")]
public double MatchingCompleted { get; set; }
public double? MatchingCompleted { get; set; }
[JsonPropertyName("MatchingCompletedReal")]
public double MatchingCompletedReal { get; set; }
public double? MatchingCompletedReal { get; set; }
[JsonPropertyName("LocationLoaded")]
public double LocationLoaded { get; set; }
public double? LocationLoaded { get; set; }
[JsonPropertyName("LocationLoadedReal")]
public double LocationLoadedReal { get; set; }
public double? LocationLoadedReal { get; set; }
[JsonPropertyName("GamePrepared")]
public double GamePrepared { get; set; }
public double? GamePrepared { get; set; }
[JsonPropertyName("GamePreparedReal")]
public double GamePreparedReal { get; set; }
public double? GamePreparedReal { get; set; }
[JsonPropertyName("GameCreated")]
public double GameCreated { get; set; }
public double? GameCreated { get; set; }
[JsonPropertyName("GameCreatedReal")]
public double GameCreatedReal { get; set; }
public double? GameCreatedReal { get; set; }
[JsonPropertyName("GamePooled")]
public double GamePooled { get; set; }
public double? GamePooled { get; set; }
[JsonPropertyName("GamePooledReal")]
public double GamePooledReal { get; set; }
public double? GamePooledReal { get; set; }
[JsonPropertyName("GameRunned")]
public double GameRunned { get; set; }
public double? GameRunned { get; set; }
[JsonPropertyName("GameRunnedReal")]
public double GameRunnedReal { get; set; }
public double? GameRunnedReal { get; set; }
[JsonPropertyName("GameSpawn")]
public double GameSpawn { get; set; }
public double? GameSpawn { get; set; }
[JsonPropertyName("GameSpawnReal")]
public double GameSpawnReal { get; set; }
public double? GameSpawnReal { get; set; }
[JsonPropertyName("PlayerSpawnEvent")]
public double PlayerSpawnEvent { get; set; }
public double? PlayerSpawnEvent { get; set; }
[JsonPropertyName("PlayerSpawnEventReal")]
public double PlayerSpawnEventReal { get; set; }
public double? PlayerSpawnEventReal { get; set; }
[JsonPropertyName("GameSpawned")]
public double GameSpawned { get; set; }
public double? GameSpawned { get; set; }
[JsonPropertyName("GameSpawnedReal")]
public double GameSpawnedReal { get; set; }
public double? GameSpawnedReal { get; set; }
[JsonPropertyName("GameStarting")]
public double GameStarting { get; set; }
public double? GameStarting { get; set; }
[JsonPropertyName("GameStartingReal")]
public double GameStartingReal { get; set; }
public double? GameStartingReal { get; set; }
[JsonPropertyName("GameStarted")]
public double GameStarted { get; set; }
public double? GameStarted { get; set; }
[JsonPropertyName("GameStartedReal")]
public double GameStartedReal { get; set; }
public double? GameStartedReal { get; set; }
}
+48 -48
View File
@@ -8,89 +8,89 @@ namespace Core.Models.Eft.Match;
public class RaidSettings
{
[JsonPropertyName("keyId")]
public string KeyId { get; set; }
public string? KeyId { get; set; }
[JsonPropertyName("location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("isLocationTransition")]
public bool IsLocationTransition { get; set; }
public bool? IsLocationTransition { get; set; }
[JsonPropertyName("timeVariant")]
public DateTime TimeVariant { get; set; }
public DateTime? TimeVariant { get; set; }
[JsonPropertyName("metabolismDisabled")]
public bool MetabolismDisabled { get; set; }
public bool? MetabolismDisabled { get; set; }
[JsonPropertyName("timeAndWeatherSettings")]
public TimeAndWeatherSettings TimeAndWeatherSettings { get; set; }
public TimeAndWeatherSettings? TimeAndWeatherSettings { get; set; }
[JsonPropertyName("botSettings")]
public BotSettings BotSettings { get; set; }
public BotSettings? BotSettings { get; set; }
[JsonPropertyName("wavesSettings")]
public WavesSettings WavesSettings { get; set; }
public WavesSettings? WavesSettings { get; set; }
[JsonPropertyName("side")]
public SideType Side { get; set; }
public SideType? Side { get; set; }
[JsonPropertyName("raidMode")]
public RaidMode RaidMode { get; set; }
public RaidMode? RaidMode { get; set; }
[JsonPropertyName("playersSpawnPlace")]
public PlayersSpawnPlace PlayersSpawnPlace { get; set; }
public PlayersSpawnPlace? PlayersSpawnPlace { get; set; }
[JsonPropertyName("canShowGroupPreview")]
public bool CanShowGroupPreview { get; set; }
public bool? CanShowGroupPreview { get; set; }
}
public class TimeAndWeatherSettings
{
[JsonPropertyName("isRandomTime")]
public bool IsRandomTime { get; set; }
public bool? IsRandomTime { get; set; }
[JsonPropertyName("isRandomWeather")]
public bool IsRandomWeather { get; set; }
public bool? IsRandomWeather { get; set; }
[JsonPropertyName("cloudinessType")]
public CloudinessType CloudinessType { get; set; }
public CloudinessType? CloudinessType { get; set; }
[JsonPropertyName("rainType")]
public RainType RainType { get; set; }
public RainType? RainType { get; set; }
[JsonPropertyName("fogType")]
public FogType FogType { get; set; }
public FogType? FogType { get; set; }
[JsonPropertyName("windType")]
public WindSpeed WindType { get; set; }
public WindSpeed? WindType { get; set; }
[JsonPropertyName("timeFlowType")]
public TimeFlowType TimeFlowType { get; set; }
public TimeFlowType? TimeFlowType { get; set; }
[JsonPropertyName("hourOfDay")]
public int HourOfDay { get; set; }
public int? HourOfDay { get; set; }
}
public class BotSettings
{
[JsonPropertyName("isScavWars")]
public bool IsScavWars { get; set; }
public bool? IsScavWars { get; set; }
[JsonPropertyName("botAmount")]
public BotAmount BotAmount { get; set; }
public BotAmount? BotAmount { get; set; }
}
public class WavesSettings
{
[JsonPropertyName("botAmount")]
public BotAmount BotAmount { get; set; }
public BotAmount? BotAmount { get; set; }
[JsonPropertyName("botDifficulty")]
public BotDifficulty BotDifficulty { get; set; }
public BotDifficulty? BotDifficulty { get; set; }
[JsonPropertyName("isBosses")]
public bool IsBosses { get; set; }
public bool? IsBosses { get; set; }
[JsonPropertyName("isTaggedAndCursed")]
public bool IsTaggedAndCursed { get; set; }
public bool? IsTaggedAndCursed { get; set; }
}
+1 -1
View File
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Match;
public class RequestIdRequest
{
[JsonPropertyName("requestId")]
public string RequestId { get; set; }
public string? RequestId { get; set; }
}
+3 -3
View File
@@ -5,11 +5,11 @@ namespace Core.Models.Eft.Match;
public class Server
{
[JsonPropertyName("ping")]
public int Ping { get; set; }
public int? Ping { get; set; }
[JsonPropertyName("ip")]
public string Ip { get; set; }
public string? Ip { get; set; }
[JsonPropertyName("port")]
public int Port { get; set; }
public int? Port { get; set; }
}
+6 -6
View File
@@ -5,22 +5,22 @@ namespace Core.Models.Eft.Match;
public class SessionStatus
{
[JsonPropertyName("profileid")]
public string ProfileId { get; set; }
public string? ProfileId { get; set; }
[JsonPropertyName("profileToken")]
public string ProfileToken { get; set; }
public string? ProfileToken { get; set; }
[JsonPropertyName("status")]
public string Status { get; set; }
public string? Status { get; set; }
[JsonPropertyName("ip")]
public string Ip { get; set; }
public string? Ip { get; set; }
[JsonPropertyName("port")]
public int Port { get; set; }
public int? Port { get; set; }
[JsonPropertyName("sid")]
public string Sid { get; set; }
public string? Sid { get; set; }
[JsonPropertyName("version")]
public string? Version { get; set; }
@@ -6,26 +6,26 @@ namespace Core.Models.Eft.Match;
public class StartLocalRaidRequestData
{
[JsonPropertyName("serverId")]
public string ServerId { get; set; }
public string? ServerId { get; set; }
[JsonPropertyName("location")]
public string Location { get; set; }
public string? Location { get; set; }
[JsonPropertyName("timeVariant")]
public string TimeVariant { get; set; }
public string? TimeVariant { get; set; }
[JsonPropertyName("mode")]
public string Mode { get; set; }
public string? Mode { get; set; }
[JsonPropertyName("playerSide")]
public string PlayerSide { get; set; }
public string? PlayerSide { get; set; }
[JsonPropertyName("transitionType")]
public TransitionType TransitionType { get; set; }
public TransitionType? TransitionType { get; set; }
[JsonPropertyName("transition")]
public Transition Transition { get; set; }
public Transition? Transition { get; set; }
/** Should loot generation be skipped, default false */
[JsonPropertyName("sptSkipLootGeneration")]
public bool? ShouldSkipLootGeneration { get; set; }
@@ -8,41 +8,41 @@ namespace Core.Models.Eft.Match;
public class StartLocalRaidResponseData
{
[JsonPropertyName("serverId")]
public string ServerId { get; set; }
public string? ServerId { get; set; }
[JsonPropertyName("serverSettings")]
public LocationServices ServerSettings { get; set; }
public LocationServices? ServerSettings { get; set; }
[JsonPropertyName("profile")]
public ProfileInsuredItems Profile { get; set; }
public ProfileInsuredItems? Profile { get; set; }
[JsonPropertyName("locationLoot")]
public LocationBase LocationLoot { get; set; }
public LocationBase? LocationLoot { get; set; }
[JsonPropertyName("transitionType")]
public TransitionType TransitionType { get; set; }
public TransitionType? TransitionType { get; set; }
[JsonPropertyName("transition")]
public Transition Transition { get; set; }
public Transition? Transition { get; set; }
}
public class ProfileInsuredItems
{
[JsonPropertyName("insuredItems")]
public List<InsuredItem> InsuredItems { get; set; }
public List<InsuredItem>? InsuredItems { get; set; }
}
public class Transition
{
[JsonPropertyName("transitionType")]
public TransitionType TransitionType { get; set; }
public TransitionType? TransitionType { get; set; }
[JsonPropertyName("transitionRaidId")]
public string TransitionRaidId { get; set; }
public string? TransitionRaidId { get; set; }
[JsonPropertyName("transitionCount")]
public int TransitionCount { get; set; }
public int? TransitionCount { get; set; }
[JsonPropertyName("visitedLocations")]
public List<string> VisitedLocations { get; set; }
public List<string>? VisitedLocations { get; set; }
}
+5 -5
View File
@@ -6,20 +6,20 @@ namespace Core.Models.Eft.Notes;
public class NoteActionData : BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; }
public string? Action { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; }
public int? Index { get; set; }
[JsonPropertyName("note")]
public Note Note { get; set; }
public Note? Note { get; set; }
}
public class Note
{
[JsonPropertyName("Time")]
public int Time { get; set; }
public int? Time { get; set; }
[JsonPropertyName("Text")]
public string Text { get; set; }
public string? Text { get; set; }
}
+5 -5
View File
@@ -5,17 +5,17 @@ namespace Core.Models.Eft.Notifier;
public class NotifierChannel
{
[JsonPropertyName("server")]
public string Server { get; set; }
public string? Server { get; set; }
[JsonPropertyName("channel_id")]
public string ChannelId { get; set; }
public string? ChannelId { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
public string? Url { get; set; }
[JsonPropertyName("notifierServer")]
public string NotifierServer { get; set; }
public string? NotifierServer { get; set; }
[JsonPropertyName("ws")]
public string WebSocket { get; set; }
public string? WebSocket { get; set; }
}
@@ -5,5 +5,5 @@ namespace Core.Models.Eft.Notifier;
public class SelectProfileResponse
{
[JsonPropertyName("status")]
public string Status { get; set; }
public string? Status { get; set; }
}
@@ -5,45 +5,45 @@ namespace Core.Models.Eft.Player;
public class PlayerIncrementSkillLevelRequestData
{
[JsonPropertyName("_id")]
public string Id { get; set; }
[JsonPropertyName("_id")]
public string? Id { get; set; }
[JsonPropertyName("experience")]
public int Experience { get; set; }
[JsonPropertyName("experience")]
public int? Experience { get; set; }
[JsonPropertyName("quests")]
public List<object> Quests { get; set; }
[JsonPropertyName("quests")]
public List<object>? Quests { get; set; }
[JsonPropertyName("ragFairOffers")]
public List<object> RagFairOffers { get; set; }
[JsonPropertyName("ragFairOffers")]
public List<object>? RagFairOffers { get; set; }
[JsonPropertyName("builds")]
public List<object> Builds { get; set; }
[JsonPropertyName("builds")]
public List<object>? Builds { get; set; }
[JsonPropertyName("items")]
public Items Items { get; set; }
[JsonPropertyName("items")]
public Items? Items { get; set; }
[JsonPropertyName("production")]
public Production Production { get; set; }
[JsonPropertyName("production")]
public Production? Production { get; set; }
[JsonPropertyName("skills")]
public Skills Skills { get; set; }
[JsonPropertyName("skills")]
public Skills? Skills { get; set; }
[JsonPropertyName("traderRelations")]
public TraderRelations TraderRelations { get; set; }
[JsonPropertyName("traderRelations")]
public TraderRelations? TraderRelations { get; set; }
}
// TODO: These are all lists of objects.
public class Items
{
[JsonPropertyName("new")]
public List<object> NewItems { get; set; }
[JsonPropertyName("new")]
public List<object>? NewItems { get; set; }
[JsonPropertyName("change")]
public List<object> ChangedItems { get; set; }
[JsonPropertyName("change")]
public List<object>? ChangedItems { get; set; }
[JsonPropertyName("del")]
public List<object> DeletedItems { get; set; }
[JsonPropertyName("del")]
public List<object>? DeletedItems { get; set; }
}
public class Production
@@ -6,18 +6,18 @@ namespace Core.Models.Eft.PresetBuild;
public class PresetBuildActionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; }
public string? Action { get; set; }
[JsonPropertyName("Id")]
public string Id { get; set; }
public string? Id { get; set; }
/** name of preset given by player */
[JsonPropertyName("Name")]
public string Name { get; set; }
public string? Name { get; set; }
[JsonPropertyName("Root")]
public string Root { get; set; }
public string? Root { get; set; }
[JsonPropertyName("Items")]
public List<Item> Items { get; set; }
public List<Item>? Items { get; set; }
}

Some files were not shown because too many files have changed in this diff Show More