using ODMO.Commons.ViewModel.Asset; namespace ODMO.Commons.ViewModel.Containers { public class ContainerViewModel { /// /// Unique sequential identifier. /// public long Id { get; set; } /// /// Min. amount of rewards. /// public int RewardAmount { get; set; } /// /// Client reference to the item id. /// public int ItemId { get; set; } /// /// Referenced item name. /// public string ItemName { get; set; } /// /// Available rewards. /// public LinkedList Rewards { get; set; } /// /// JIT property. /// public ItemAssetViewModel ItemInfo { get; set; } /// /// Flag for invalid create configuration. /// public bool Invalid => ItemInfo == null || RewardAmount == 0 || RewardAmount > 0 && !Rewards.Any(); public ContainerViewModel() { RewardAmount = 1; Rewards = new LinkedList(); } } }