예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestApiResultMenuSection" /> class.
 /// </summary>
 /// <param name="data">Generic data object. (required).</param>
 public RestApiResultMenuSection(MenuSection data = default(MenuSection))
 {
     // to ensure "data" is required (not null)
     if (data == null)
     {
         throw new InvalidDataException("data is a required property for RestApiResultMenuSection and cannot be null");
     }
     else
     {
         this.Data = data;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuSectionUpdatedEvent" /> class.
 /// </summary>
 /// <param name="menuId">Menu identifier.</param>
 /// <param name="description">Event description.</param>
 /// <param name="user">Updated by user.</param>
 /// <param name="menuSection">Updated menu section.</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 MenuSectionUpdatedEvent(int?menuId = default(int?), string description = default(string), UserEventInfo user = default(UserEventInfo), MenuSection menuSection = default(MenuSection), 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.MenuSection     = menuSection;
     this.EventName       = eventName;
     this.FlipdishEventId = flipdishEventId;
     this.CreateTime      = createTime;
     this.Position        = position;
     this.AppId           = appId;
     this.IpAddress       = ipAddress;
 }