diff --git a/Core/Models/Eft/Common/Tables/Item.cs b/Core/Models/Eft/Common/Tables/Item.cs index c7dda70c..038dc76e 100644 --- a/Core/Models/Eft/Common/Tables/Item.cs +++ b/Core/Models/Eft/Common/Tables/Item.cs @@ -109,11 +109,17 @@ public class UpdMap public class MapMarker { + [JsonPropertyName("Type")] + public string? Type { get; set; } + [JsonPropertyName("X")] - public int? X { get; set; } + public double? X { get; set; } [JsonPropertyName("Y")] - public int? Y { get; set; } + public double? Y { get; set; } + + [JsonPropertyName("Note")] + public string? Note { get; set; } } public class UpdTag diff --git a/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs b/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs index efbf4119..d9691a2d 100644 --- a/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs +++ b/Core/Models/Eft/Inventory/InventoryCreateMarkerRequestData.cs @@ -1,4 +1,5 @@ using System.Text.Json.Serialization; +using Core.Models.Eft.Common.Tables; namespace Core.Models.Eft.Inventory; @@ -13,18 +14,3 @@ public class InventoryCreateMarkerRequestData : InventoryBaseActionRequestData [JsonPropertyName("mapMarker")] public MapMarker? MapMarker { get; set; } } - -public class MapMarker -{ - [JsonPropertyName("Type")] - public string? Type { get; set; } - - [JsonPropertyName("X")] - public double? X { get; set; } - - [JsonPropertyName("Y")] - public double? Y { get; set; } - - [JsonPropertyName("Note")] - public string? Note { get; set; } -} \ No newline at end of file