Gathering infra
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace LocationsApi.Models;
|
||||
|
||||
public class GatherResourceRequest
|
||||
{
|
||||
public string CharacterId { get; set; } = string.Empty;
|
||||
|
||||
public string ResourceKey { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
namespace LocationsApi.Models;
|
||||
|
||||
public class GatherResourceResponse
|
||||
{
|
||||
public string LocationId { get; set; } = string.Empty;
|
||||
|
||||
public string CharacterId { get; set; } = string.Empty;
|
||||
|
||||
public string ResourceKey { get; set; } = string.Empty;
|
||||
|
||||
public int QuantityGranted { get; set; }
|
||||
|
||||
public int RemainingQuantity { get; set; }
|
||||
|
||||
public string InventoryResponseJson { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -15,6 +15,9 @@ public class Location
|
||||
[BsonElement("coord")]
|
||||
public required Coord Coord { get; set; }
|
||||
|
||||
[BsonElement("resources")]
|
||||
public List<LocationResource> Resources { get; set; } = [];
|
||||
|
||||
[BsonElement("createdUtc")]
|
||||
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
|
||||
namespace LocationsApi.Models;
|
||||
|
||||
public class LocationResource
|
||||
{
|
||||
[BsonElement("itemKey")]
|
||||
public string ItemKey { get; set; } = string.Empty;
|
||||
|
||||
[BsonElement("remainingQuantity")]
|
||||
public int RemainingQuantity { get; set; }
|
||||
|
||||
[BsonElement("gatherQuantity")]
|
||||
public int GatherQuantity { get; set; } = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user