Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MeetingDeprecated" /> class.
 /// </summary>
 /// <param name="title">title (required) (default to &quot;My Test Meeting&quot;).</param>
 /// <param name="description">description.</param>
 /// <param name="start">A [UNIX Timestamp](https://currentmillis.com/) in milliseconds (required).</param>
 /// <param name="end">A [UNIX Timestamp](https://currentmillis.com/) in milliseconds (required).</param>
 /// <param name="timezone">timezone (default to &quot;America/New_York&quot;).</param>
 /// <param name="isPersonalMeeting">Use the scheduler&#39;s personal meeting room and Id for this meeting. (default to false).</param>
 /// <param name="isLargeMeeting">If true, the meeting is assumed to be large and thus no announcement will be made when a participant joins..</param>
 /// <param name="addAttendeePasscode">Indicate if you want the attendees to be forced to enter a passcode on entry for extra security. The passcode will be randomly generated at schedule and will be returned in attendeePasscode property of the meeting..</param>
 /// <param name="endPointVersion">endPointVersion (required) (default to &quot;2.10&quot;).</param>
 /// <param name="endPointType">endPointType (required) (default to &quot;WEB_APP&quot;).</param>
 /// <param name="attendees">attendees.</param>
 /// <param name="advancedMeetingOptions">advancedMeetingOptions.</param>
 /// <param name="recurrencePattern">recurrencePattern.</param>
 public MeetingDeprecated(string title = "My Test Meeting", string description = default(string), long?start = default(long?), long?end = default(long?), string timezone = "America/New_York", bool?isPersonalMeeting = false, bool?isLargeMeeting = default(bool?), bool?addAttendeePasscode = default(bool?), string endPointVersion = "2.10", string endPointType = "WEB_APP", List <Attendee> attendees = default(List <Attendee>), MeetingDeprecatedAdvancedMeetingOptions advancedMeetingOptions = default(MeetingDeprecatedAdvancedMeetingOptions), MeetingRecurrencePattern recurrencePattern = default(MeetingRecurrencePattern))
 {
     // to ensure "title" is required (not null)
     if (title == null)
     {
         throw new InvalidDataException("title is a required property for MeetingDeprecated and cannot be null");
     }
     else
     {
         this.Title = title;
     }
     // to ensure "start" is required (not null)
     if (start == null)
     {
         throw new InvalidDataException("start is a required property for MeetingDeprecated and cannot be null");
     }
     else
     {
         this.Start = start;
     }
     // to ensure "end" is required (not null)
     if (end == null)
     {
         throw new InvalidDataException("end is a required property for MeetingDeprecated and cannot be null");
     }
     else
     {
         this.End = end;
     }
     // to ensure "endPointVersion" is required (not null)
     if (endPointVersion == null)
     {
         throw new InvalidDataException("endPointVersion is a required property for MeetingDeprecated and cannot be null");
     }
     else
     {
         this.EndPointVersion = endPointVersion;
     }
     // to ensure "endPointType" is required (not null)
     if (endPointType == null)
     {
         throw new InvalidDataException("endPointType is a required property for MeetingDeprecated and cannot be null");
     }
     else
     {
         this.EndPointType = endPointType;
     }
     this.Description = description;
     // use default value if no "timezone" provided
     if (timezone == null)
     {
         this.Timezone = "America/New_York";
     }
     else
     {
         this.Timezone = timezone;
     }
     // use default value if no "isPersonalMeeting" provided
     if (isPersonalMeeting == null)
     {
         this.IsPersonalMeeting = false;
     }
     else
     {
         this.IsPersonalMeeting = isPersonalMeeting;
     }
     this.IsLargeMeeting         = isLargeMeeting;
     this.AddAttendeePasscode    = addAttendeePasscode;
     this.Attendees              = attendees;
     this.AdvancedMeetingOptions = advancedMeetingOptions;
     this.RecurrencePattern      = recurrencePattern;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Meeting" /> class.
 /// </summary>
 /// <param name="uuid">uuid.</param>
 /// <param name="title">title (required) (default to &quot;My Test Meeting&quot;).</param>
 /// <param name="description">description.</param>
 /// <param name="start">A [UNIX Timestamp](https://currentmillis.com/) in milliseconds (required).</param>
 /// <param name="end">A [UNIX Timestamp](https://currentmillis.com/) in milliseconds (required).</param>
 /// <param name="timezone">timezone (default to &quot;America/New_York&quot;).</param>
 /// <param name="advancedMeetingOptions">advancedMeetingOptions.</param>
 /// <param name="notificationUrl">this property is not used in the BlueJeans Meetings product.</param>
 /// <param name="notificationData">this property is not used in the BlueJeans Meetings product.</param>
 /// <param name="moderator">moderator.</param>
 /// <param name="addAttendeePasscode">Indicate if you want the attendees to be forced to enter a passcode on entry for extra security. The passcode will be randomly generated at schedule and will be returned in attendeePasscode property of the meeting..</param>
 /// <param name="delete">delete.</param>
 /// <param name="allow720p">allow720p.</param>
 /// <param name="status">status.</param>
 /// <param name="locked">locked.</param>
 /// <param name="seqeuenceNumber">seqeuenceNumber.</param>
 /// <param name="icsUid">icsUid.</param>
 /// <param name="endPointType">endPointType (required) (default to &quot;WEB_APP&quot;).</param>
 /// <param name="endPointVersion">endPointVersion (required) (default to &quot;2.10&quot;).</param>
 /// <param name="attendees">attendees.</param>
 /// <param name="isLargeMeeting">If true, the meeting is assumed to be large and thus no announcement will be made when a participant joins..</param>
 /// <param name="created">This is the epoch-based time (in milliseconds) when the meeting was initially created..</param>
 /// <param name="lastModified">This is the epoch-based time (in milliseconds) when the meeting was last changed..</param>
 /// <param name="isExpired">isExpired.</param>
 /// <param name="parentMeetingId">This field contains the Meeting Id of the first meeting in a recurrence chain of meetings..</param>
 /// <param name="parentMeetingUUID">parentMeetingUUID.</param>
 /// <param name="nextOccurrence">nextOccurrence.</param>
 /// <param name="timelessMeeting">timelessMeeting.</param>
 /// <param name="endlessMeeting">endlessMeeting.</param>
 /// <param name="recurrencePattern">recurrencePattern.</param>
 /// <param name="first">Starting and ending times of the first meeting in a chain of recurring meetings..</param>
 /// <param name="last">Starting and ending times of the last meeting in a chain of recurring meetings..</param>
 /// <param name="next">Starting and ending times of the next meeting in a chain of recurring meetings..</param>
 /// <param name="nextStart">nextStart.</param>
 /// <param name="nextEnd">nextEnd.</param>
 /// <param name="isPersonalMeeting">Use the scheduler&#39;s personal meeting room and Id for this meeting. (default to false).</param>
 /// <param name="inviteeJoinOption">inviteeJoinOption.</param>
 public Meeting(string uuid = default(string), string title = "My Test Meeting", string description = default(string), int?start = default(int?), int?end = default(int?), string timezone = "America/New_York", MeetingAdvancedMeetingOptions advancedMeetingOptions = default(MeetingAdvancedMeetingOptions), string notificationUrl = default(string), string notificationData = default(string), MeetingModerator moderator = default(MeetingModerator), bool?addAttendeePasscode = default(bool?), bool?delete = default(bool?), bool?allow720p = default(bool?), string status = default(string), bool?locked = default(bool?), int?seqeuenceNumber = default(int?), string icsUid = default(string), string endPointType = "WEB_APP", string endPointVersion = "2.10", List <Attendee> attendees = default(List <Attendee>), bool?isLargeMeeting = default(bool?), int?created = default(int?), int?lastModified = default(int?), bool?isExpired = default(bool?), int?parentMeetingId = default(int?), string parentMeetingUUID = default(string), string nextOccurrence = default(string), bool?timelessMeeting = default(bool?), bool?endlessMeeting = default(bool?), MeetingRecurrencePattern recurrencePattern = default(MeetingRecurrencePattern), StartEnd first = default(StartEnd), StartEnd last = default(StartEnd), StartEnd next = default(StartEnd), int?nextStart = default(int?), int?nextEnd = default(int?), bool?isPersonalMeeting = false, int?inviteeJoinOption = default(int?))
 {
     // to ensure "title" is required (not null)
     if (title == null)
     {
         throw new InvalidDataException("title is a required property for Meeting and cannot be null");
     }
     else
     {
         this.Title = title;
     }
     // to ensure "start" is required (not null)
     if (start == null)
     {
         throw new InvalidDataException("start is a required property for Meeting and cannot be null");
     }
     else
     {
         this.Start = start;
     }
     // to ensure "end" is required (not null)
     if (end == null)
     {
         throw new InvalidDataException("end is a required property for Meeting and cannot be null");
     }
     else
     {
         this.End = end;
     }
     // to ensure "endPointType" is required (not null)
     if (endPointType == null)
     {
         throw new InvalidDataException("endPointType is a required property for Meeting and cannot be null");
     }
     else
     {
         this.EndPointType = endPointType;
     }
     // to ensure "endPointVersion" is required (not null)
     if (endPointVersion == null)
     {
         throw new InvalidDataException("endPointVersion is a required property for Meeting and cannot be null");
     }
     else
     {
         this.EndPointVersion = endPointVersion;
     }
     this.Uuid        = uuid;
     this.Description = description;
     // use default value if no "timezone" provided
     if (timezone == null)
     {
         this.Timezone = "America/New_York";
     }
     else
     {
         this.Timezone = timezone;
     }
     this.AdvancedMeetingOptions = advancedMeetingOptions;
     this.NotificationUrl        = notificationUrl;
     this.NotificationData       = notificationData;
     this.Moderator           = moderator;
     this.AddAttendeePasscode = addAttendeePasscode;
     this.Delete            = delete;
     this.Allow720p         = allow720p;
     this.Status            = status;
     this.Locked            = locked;
     this.SeqeuenceNumber   = seqeuenceNumber;
     this.IcsUid            = icsUid;
     this.Attendees         = attendees;
     this.IsLargeMeeting    = isLargeMeeting;
     this.Created           = created;
     this.LastModified      = lastModified;
     this.IsExpired         = isExpired;
     this.ParentMeetingId   = parentMeetingId;
     this.ParentMeetingUUID = parentMeetingUUID;
     this.NextOccurrence    = nextOccurrence;
     this.TimelessMeeting   = timelessMeeting;
     this.EndlessMeeting    = endlessMeeting;
     this.RecurrencePattern = recurrencePattern;
     this.First             = first;
     this.Last      = last;
     this.Next      = next;
     this.NextStart = nextStart;
     this.NextEnd   = nextEnd;
     // use default value if no "isPersonalMeeting" provided
     if (isPersonalMeeting == null)
     {
         this.IsPersonalMeeting = false;
     }
     else
     {
         this.IsPersonalMeeting = isPersonalMeeting;
     }
     this.InviteeJoinOption = inviteeJoinOption;
 }