コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestApiResultBusinessHoursPeriod" /> class.
 /// </summary>
 /// <param name="data">Generic data object. (required).</param>
 public RestApiResultBusinessHoursPeriod(BusinessHoursPeriod data = default(BusinessHoursPeriod))
 {
     // to ensure "data" is required (not null)
     if (data == null)
     {
         throw new InvalidDataException("data is a required property for RestApiResultBusinessHoursPeriod and cannot be null");
     }
     else
     {
         this.Data = data;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StoreOpeningHoursUpdatedEvent" /> class.
 /// </summary>
 /// <param name="eventName">The event name.</param>
 /// <param name="storeId">Store Id.</param>
 /// <param name="storeGroupId">Store group Id.</param>
 /// <param name="user">User which updated opening hours for this store.</param>
 /// <param name="deliveryType">Type of opening hours Delivery / Pickup.</param>
 /// <param name="businessHoursPeriodOld">The period that was updated.</param>
 /// <param name="businessHoursPeriod">The new values of the period.</param>
 /// <param name="description">Description.</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 StoreOpeningHoursUpdatedEvent(string eventName = default(string), int?storeId = default(int?), int?storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), DeliveryTypeEnum?deliveryType = default(DeliveryTypeEnum?), BusinessHoursPeriod businessHoursPeriodOld = default(BusinessHoursPeriod), BusinessHoursPeriod businessHoursPeriod = default(BusinessHoursPeriod), string description = default(string), Guid?flipdishEventId = default(Guid?), DateTime?createTime = default(DateTime?), int?position = default(int?), string appId = default(string), string ipAddress = default(string))
 {
     this.EventName              = eventName;
     this.StoreId                = storeId;
     this.StoreGroupId           = storeGroupId;
     this.User                   = user;
     this.DeliveryType           = deliveryType;
     this.BusinessHoursPeriodOld = businessHoursPeriodOld;
     this.BusinessHoursPeriod    = businessHoursPeriod;
     this.Description            = description;
     this.FlipdishEventId        = flipdishEventId;
     this.CreateTime             = createTime;
     this.Position               = position;
     this.AppId                  = appId;
     this.IpAddress              = ipAddress;
 }