Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestApiResultMenuItemOptionSet" /> class.
 /// </summary>
 /// <param name="data">Generic data object. (required).</param>
 public RestApiResultMenuItemOptionSet(MenuItemOptionSet data = default(MenuItemOptionSet))
 {
     // to ensure "data" is required (not null)
     if (data == null)
     {
         throw new InvalidDataException("data is a required property for RestApiResultMenuItemOptionSet and cannot be null");
     }
     else
     {
         this.Data = data;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuItemOptionSetUpdatedEvent" /> class.
 /// </summary>
 /// <param name="menuId">Menu identifier.</param>
 /// <param name="description">Description.</param>
 /// <param name="user">User who has created the menu.</param>
 /// <param name="menuItemOptionSet">Updated menu item optionset.</param>
 /// <param name="eventName">The event name.</param>
 /// <param name="flipdishEventId">The identitfier of the event.</param>
 /// <param name="createTime">The time of creation of the event.</param>
 /// <param name="position">Position.</param>
 /// <param name="appId">App id.</param>
 /// <param name="ipAddress">Ip Address.</param>
 public MenuItemOptionSetUpdatedEvent(int?menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuItemOptionSet menuItemOptionSet = default(MenuItemOptionSet), string eventName = default(string), Guid?flipdishEventId = default(Guid?), DateTime?createTime = default(DateTime?), int?position = default(int?), string appId = default(string), string ipAddress = default(string))
 {
     this.MenuId            = menuId;
     this.Description       = description;
     this.User              = user;
     this.MenuItemOptionSet = menuItemOptionSet;
     this.EventName         = eventName;
     this.FlipdishEventId   = flipdishEventId;
     this.CreateTime        = createTime;
     this.Position          = position;
     this.AppId             = appId;
     this.IpAddress         = ipAddress;
 }