Archived
Private
Public Access
1
0

Update 29.10.2022

This commit is contained in:
2022-10-29 18:17:27 +02:00
parent 2a1d18cb9d
commit 494fb2d8c5
355 changed files with 408588 additions and 155997 deletions

View File

@@ -0,0 +1,6 @@
namespace Mosleys.Shared.Models {
public struct BuyData {
public string Uuid { get; set; }
public string Plate { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace Mosleys.Shared.Models {
public struct ExhibitUpdate {
public UpdateAction Action { get; set; }
public ExhibitVehicle Exhibit { get; set; }
}
public enum UpdateAction {
Update,
Delete
}
}

View File

@@ -0,0 +1,25 @@
using System;
using System.Dynamic;
namespace Mosleys.Shared.Models {
public class ExhibitVehicle {
public string Uuid { get; set; }
public string Owner { get; set; }
public string Description { get; set; }
public int Price { get; set; }
public int Slot { get; set; }
public ExpandoObject Vehicle { get; set; }
public bool TestDrive { get; set; }
public static ExhibitVehicle FromDynamic(dynamic data) {
var vehicle = new ExhibitVehicle();
vehicle.Uuid = data.Uuid;
vehicle.Owner = data.Owner;
vehicle.Description = data.Description;
vehicle.Price = Convert.ToInt32(data.Price);
vehicle.Slot = Convert.ToInt32(data.Slot);
vehicle.Vehicle = data.Vehicle;
vehicle.TestDrive = data.TestDrive;
return vehicle;
}
}
}

View File

@@ -0,0 +1,10 @@
using System.Dynamic;
namespace Mosleys.Shared.Models {
public struct SellData {
public int ParkingSpace { get; set; }
public string Description { get; set; }
public int Price { get; set; }
public ExpandoObject VehicleProperties { get; set; }
}
}