public ConsumablesActionModel(StreamPassModel streamPass, ConsumablesActionTypeEnum actionType, string amount, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : base(ActionTypeEnum.Consumables)
 {
     this.StreamPassID   = streamPass.ID;
     this.ActionType     = actionType;
     this.Amount         = amount;
     this.Username       = username;
     this.UsersToApplyTo = usersToApplyTo;
     this.DeductFromUser = deductFromUser;
 }
Exemplo n.º 2
0
 private ConsumablesActionModel(ConsumablesActionTypeEnum actionType, bool usersMustBePresent, string amount = null, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : base(ActionTypeEnum.Consumables)
 {
     this.ActionType         = actionType;
     this.Amount             = amount;
     this.UsersMustBePresent = usersMustBePresent;
     this.Username           = username;
     this.UsersToApplyTo     = usersToApplyTo;
     this.DeductFromUser     = deductFromUser;
 }
 public ConsumablesActionModel(CurrencyModel currency, ConsumablesActionTypeEnum actionType, string amount, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : base(ActionTypeEnum.Consumables)
 {
     this.CurrencyID     = currency.ID;
     this.ActionType     = actionType;
     this.Amount         = amount;
     this.Username       = username;
     this.UsersToApplyTo = usersToApplyTo;
     this.DeductFromUser = deductFromUser;
 }
 public ConsumablesActionModel(InventoryModel inventory, ConsumablesActionTypeEnum actionType, string itemName = null, string amount = null, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : base(ActionTypeEnum.Consumables)
 {
     this.InventoryID    = inventory.ID;
     this.ActionType     = actionType;
     this.ItemName       = itemName;
     this.Amount         = amount;
     this.Username       = username;
     this.UsersToApplyTo = usersToApplyTo;
     this.DeductFromUser = deductFromUser;
 }
Exemplo n.º 5
0
 public ConsumablesActionModel(StreamPassModel streamPass, ConsumablesActionTypeEnum actionType, bool usersMustBePresent, string amount, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : this(actionType, usersMustBePresent, amount, username, usersToApplyTo, deductFromUser)
 {
     this.StreamPassID = streamPass.ID;
 }
Exemplo n.º 6
0
 public ConsumablesActionModel(InventoryModel inventory, string itemName, ConsumablesActionTypeEnum actionType, bool usersMustBePresent, string amount, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : this(actionType, usersMustBePresent, amount, username, usersToApplyTo, deductFromUser)
 {
     this.InventoryID = inventory.ID;
     this.ItemName    = itemName;
 }
Exemplo n.º 7
0
 public ConsumablesActionModel(CurrencyModel currency, ConsumablesActionTypeEnum actionType, bool usersMustBePresent, string amount, string username = null, UserRoleEnum usersToApplyTo = UserRoleEnum.User, bool deductFromUser = false)
     : this(actionType, usersMustBePresent, amount, username, usersToApplyTo, deductFromUser)
 {
     this.CurrencyID = currency.ID;
 }