first version of inventory adapters
This commit is contained in:
53
Inventory/Common/FurnitureModel.cs
Normal file
53
Inventory/Common/FurnitureModel.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
using Core.Blueprint.Mongo;
|
||||
using MongoDB.Bson.Serialization.Attributes;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Core.Adapters.Lib.Inventory.Common
|
||||
{
|
||||
[CollectionAttributeName("Furniture")]
|
||||
public class FurnitureModel : Document
|
||||
{
|
||||
[BsonElement("modelName")]
|
||||
[JsonPropertyName("modelName")]
|
||||
public string ModelName { get; set; }
|
||||
|
||||
[BsonElement("material")]
|
||||
[JsonPropertyName("material")]
|
||||
public string Material { get; set; }
|
||||
|
||||
[BsonElement("condition")]
|
||||
[JsonPropertyName("condition")]
|
||||
public string Condition { get; set; }
|
||||
|
||||
[BsonElement("dimensions")]
|
||||
[JsonPropertyName("dimensions")]
|
||||
public Dimensions Dimensions { get; set; }
|
||||
|
||||
[BsonElement("baseDescription")]
|
||||
[JsonPropertyName("baseDescription")]
|
||||
public string BaseDescription { get; set; }
|
||||
|
||||
[BsonElement("representation")]
|
||||
[JsonPropertyName("representation")]
|
||||
public string Representation { get; set; }
|
||||
|
||||
[BsonElement("maintenanceNotes")]
|
||||
[JsonPropertyName("maintenanceNotes")]
|
||||
public string MaintenanceNotes { get; set; }
|
||||
}
|
||||
|
||||
public class Dimensions
|
||||
{
|
||||
[BsonElement("width")]
|
||||
[JsonPropertyName("width")]
|
||||
public float Width { get; set; }
|
||||
|
||||
[BsonElement("height")]
|
||||
[JsonPropertyName("height")]
|
||||
public float Height { get; set; }
|
||||
|
||||
[BsonElement("depth")]
|
||||
[JsonPropertyName("depth")]
|
||||
public float Depth { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user