feat: add view models for all entities
This commit is contained in:
@ -1,24 +1,32 @@
|
||||
using Client.Domain.ValueObjects;
|
||||
using Client.Domain.Common;
|
||||
using Client.Domain.ValueObjects;
|
||||
|
||||
namespace Client.Domain.Entities
|
||||
{
|
||||
public class Drop : EntityInterface
|
||||
public class Drop : NotifyPropertyChanged, EntityInterface
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
public Transform Transform { get; set; }
|
||||
public uint ItemId { get; set; }
|
||||
public uint Amount { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string IconName { get; set; }
|
||||
private uint id;
|
||||
private Transform transform;
|
||||
private uint itemId;
|
||||
private uint amount;
|
||||
private string name;
|
||||
private string iconName;
|
||||
|
||||
public uint Id { get => id; set => id = value; }
|
||||
public Transform Transform { get => transform; set { if (value != transform) { transform = value; OnPropertyChanged("Transform"); } } }
|
||||
public uint ItemId { get => itemId; set { if (value != itemId) { itemId = value; OnPropertyChanged("ItemId"); } } }
|
||||
public uint Amount { get => amount; set { if (value != amount) { amount = value; OnPropertyChanged("Amount"); } } }
|
||||
public string Name { get => name; set { if (value != name) { name = value; OnPropertyChanged("Name"); } } }
|
||||
public string IconName { get => iconName; set { if (value != iconName) { iconName = value; OnPropertyChanged("IconName"); } } }
|
||||
|
||||
public Drop(uint id, Transform transform, uint itemId, uint amount, string name, string iconName)
|
||||
{
|
||||
Id = id;
|
||||
Transform = transform;
|
||||
ItemId = itemId;
|
||||
Amount = amount;
|
||||
Name = name;
|
||||
IconName = iconName;
|
||||
this.id = id;
|
||||
this.transform = transform;
|
||||
this.itemId = itemId;
|
||||
this.amount = amount;
|
||||
this.name = name;
|
||||
this.iconName = iconName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user