/// <summary> /// Initializes a new instance of the <see cref="Events" /> class. /// </summary> /// <param name="events">events (required).</param> /// <param name="pagination">pagination.</param> public Events(List <ModelEvent> events = default(List <ModelEvent>), EventsPagination pagination = default(EventsPagination)) { // to ensure "events" is required (not null) if (events == null) { throw new InvalidDataException("events is a required property for Events and cannot be null"); } else { this._Events = events; } this.Pagination = pagination; }
/// <summary> /// Initializes a new instance of the <see cref="RecommendedEventsResponse" /> class. /// </summary> /// <param name="count">count (required).</param> /// <param name="pagination">pagination.</param> /// <param name="searchResultEventIds">searchResultEventIds (required).</param> public RecommendedEventsResponse(int?count = default(int?), EventsPagination pagination = default(EventsPagination), List <string> searchResultEventIds = default(List <string>)) { // to ensure "count" is required (not null) if (count == null) { throw new InvalidDataException("count is a required property for RecommendedEventsResponse and cannot be null"); } else { this.Count = count; } // to ensure "searchResultEventIds" is required (not null) if (searchResultEventIds == null) { throw new InvalidDataException("searchResultEventIds is a required property for RecommendedEventsResponse and cannot be null"); } else { this.SearchResultEventIds = searchResultEventIds; } this.Pagination = pagination; }
/// <summary> /// Initializes a new instance of the <see cref="GetSocialMemberResponse" /> class. /// </summary> /// <param name="members">members (required).</param> /// <param name="pagination">pagination.</param> public GetSocialMemberResponse(List <GetSocialMemberResponseMembers> members = default(List <GetSocialMemberResponseMembers>), EventsPagination pagination = default(EventsPagination)) { // to ensure "members" is required (not null) if (members == null) { throw new InvalidDataException("members is a required property for GetSocialMemberResponse and cannot be null"); } else { this.Members = members; } this.Pagination = pagination; }
/// <summary> /// Initializes a new instance of the <see cref="GetCommentsReponse" /> class. /// </summary> /// <param name="comments">comments (required).</param> /// <param name="pagination">pagination (required).</param> public GetCommentsReponse(List <GetCommentsReponseComments> comments = default(List <GetCommentsReponseComments>), EventsPagination pagination = default(EventsPagination)) { // to ensure "comments" is required (not null) if (comments == null) { throw new InvalidDataException("comments is a required property for GetCommentsReponse and cannot be null"); } else { this.Comments = comments; } // to ensure "pagination" is required (not null) if (pagination == null) { throw new InvalidDataException("pagination is a required property for GetCommentsReponse and cannot be null"); } else { this.Pagination = pagination; } }