Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RestApiResultStoreGroup" /> class.
 /// </summary>
 /// <param name="data">Generic data object. (required).</param>
 public RestApiResultStoreGroup(StoreGroup data = default(StoreGroup))
 {
     // to ensure "data" is required (not null)
     if (data == null)
     {
         throw new InvalidDataException("data is a required property for RestApiResultStoreGroup and cannot be null");
     }
     else
     {
         this.Data = data;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="StoreGroupCreatedEvent" /> class.
 /// </summary>
 /// <param name="eventName">The event name.</param>
 /// <param name="storeGroupId">Store Group Id.</param>
 /// <param name="user">User which created this store group.</param>
 /// <param name="description">Description.</param>
 /// <param name="storeGroup">Created store group.</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 StoreGroupCreatedEvent(string eventName = default(string), int?storeGroupId = default(int?), UserEventInfo user = default(UserEventInfo), string description = default(string), StoreGroup storeGroup = default(StoreGroup), Guid?flipdishEventId = default(Guid?), DateTime?createTime = default(DateTime?), int?position = default(int?), string appId = default(string), string ipAddress = default(string))
 {
     this.EventName       = eventName;
     this.StoreGroupId    = storeGroupId;
     this.User            = user;
     this.Description     = description;
     this.StoreGroup      = storeGroup;
     this.FlipdishEventId = flipdishEventId;
     this.CreateTime      = createTime;
     this.Position        = position;
     this.AppId           = appId;
     this.IpAddress       = ipAddress;
 }