コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestApiResultMenuSectionAvailability" /> class.
 /// </summary>
 /// <param name="data">Generic data object. (required).</param>
 public RestApiResultMenuSectionAvailability(MenuSectionAvailability data = default(MenuSectionAvailability))
 {
     // to ensure "data" is required (not null)
     if (data == null)
     {
         throw new InvalidDataException("data is a required property for RestApiResultMenuSectionAvailability and cannot be null");
     }
     else
     {
         this.Data = data;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateFullMenuSection" /> class.
 /// </summary>
 /// <param name="menuSectionAvailability">Menu section availability.</param>
 /// <param name="menuItems">Menu items.</param>
 /// <param name="name">Name.</param>
 /// <param name="description">Description.</param>
 /// <param name="displayOrder">Display order.</param>
 /// <param name="isAvailable">Is available.</param>
 /// <param name="isHiddenFromCustomers">Is hidden from customer. Perhaps when the item is out of stock..</param>
 /// <param name="imageUrl">Image url.</param>
 /// <param name="menuSectionId">Menu Section Id.</param>
 public CreateFullMenuSection(MenuSectionAvailability menuSectionAvailability = default(MenuSectionAvailability), List <CreateFullMenuSectionItem> menuItems = default(List <CreateFullMenuSectionItem>), string name = default(string), string description = default(string), int?displayOrder = default(int?), bool?isAvailable = default(bool?), bool?isHiddenFromCustomers = default(bool?), string imageUrl = default(string), int?menuSectionId = default(int?))
 {
     this.MenuSectionAvailability = menuSectionAvailability;
     this.MenuItems             = menuItems;
     this.Name                  = name;
     this.Description           = description;
     this.DisplayOrder          = displayOrder;
     this.IsAvailable           = isAvailable;
     this.IsHiddenFromCustomers = isHiddenFromCustomers;
     this.ImageUrl              = imageUrl;
     this.MenuSectionId         = menuSectionId;
 }