/// <summary>
 /// Initializes a new instance of the <see cref="PrivateInvitationSchema" /> class.
 /// </summary>
 /// <param name="Id">The invitationId for this invitation..</param>
 /// <param name="CourseId">Course Id for this Invitation..</param>
 /// <param name="AllowLaunch">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="InvitationEmail">InvitationEmail.</param>
 /// <param name="CreateDate">The create date for the invitation.</param>
 /// <param name="Updated">Updated.</param>
 /// <param name="PostBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="ExpirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="RegistrationCount">The count of registrations for this invitation.</param>
 public PrivateInvitationSchema(string Id = default(string), string CourseId = default(string), bool?AllowLaunch = default(bool?), InvitationEmailSchema InvitationEmail = default(InvitationEmailSchema), DateTime?CreateDate = default(DateTime?), DateTime?Updated = default(DateTime?), PostBackSchema PostBack = default(PostBackSchema), DateTime?ExpirationDate = default(DateTime?), int?RegistrationCount = default(int?))
 {
     this.Id                = Id;
     this.CourseId          = CourseId;
     this.AllowLaunch       = AllowLaunch;
     this.InvitationEmail   = InvitationEmail;
     this.CreateDate        = CreateDate;
     this.Updated           = Updated;
     this.PostBack          = PostBack;
     this.ExpirationDate    = ExpirationDate;
     this.RegistrationCount = RegistrationCount;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateDispatchSchema" /> class.
 /// </summary>
 /// <param name="DestinationId">Id of the destination this dispatch will belong to. (required).</param>
 /// <param name="CourseId">Id of the course to be dispatched. (required).</param>
 /// <param name="AllowNewRegistrations">If true, then new registrations can be created for this dispatch. (default to true).</param>
 /// <param name="Instanced">If true, then a new registration instance will be created if the client LMS doesn&#39;t provide launch data for an existing one. Otherwise, the same instance will always be used for the given cmi.learner_id.  (default to true).</param>
 /// <param name="RegistrationCap">The maximum number of registrations that can be created for this dispatch, where &#39;0&#39; means &#39;unlimited registrations&#39;.  (default to 0).</param>
 /// <param name="ExpirationDate">The date after which this dispatch will be disabled as an ISO 8601 string, or not present for no expiration date. .</param>
 /// <param name="Enabled">If true, then this dispatch can be launched. (default to true).</param>
 /// <param name="Tags">The tags to associate with this Dispatch..</param>
 /// <param name="Email">SCORM Cloud user e-mail associated with this dispatch. If this is not provided, it will default to the owner of the Realm. .</param>
 /// <param name="Notes">Any provided notes about this dispatch..</param>
 /// <param name="PostBack">The postback information for this Dispatch..</param>
 public CreateDispatchSchema(string DestinationId = default(string), string CourseId = default(string), bool?AllowNewRegistrations = true, bool?Instanced = true, int?RegistrationCap = 0, DateTime?ExpirationDate = default(DateTime?), bool?Enabled = true, List <string> Tags = default(List <string>), string Email = default(string), string Notes = default(string), PostBackSchema PostBack = default(PostBackSchema))
 {
     // to ensure "DestinationId" is required (not null)
     if (DestinationId == null)
     {
         throw new InvalidDataException("DestinationId is a required property for CreateDispatchSchema and cannot be null");
     }
     else
     {
         this.DestinationId = DestinationId;
     }
     // to ensure "CourseId" is required (not null)
     if (CourseId == null)
     {
         throw new InvalidDataException("CourseId is a required property for CreateDispatchSchema and cannot be null");
     }
     else
     {
         this.CourseId = CourseId;
     }
     // use default value if no "AllowNewRegistrations" provided
     if (AllowNewRegistrations == null)
     {
         this.AllowNewRegistrations = true;
     }
     else
     {
         this.AllowNewRegistrations = AllowNewRegistrations;
     }
     // use default value if no "Instanced" provided
     if (Instanced == null)
     {
         this.Instanced = true;
     }
     else
     {
         this.Instanced = Instanced;
     }
     // use default value if no "RegistrationCap" provided
     if (RegistrationCap == null)
     {
         this.RegistrationCap = 0;
     }
     else
     {
         this.RegistrationCap = RegistrationCap;
     }
     this.ExpirationDate = ExpirationDate;
     // use default value if no "Enabled" provided
     if (Enabled == null)
     {
         this.Enabled = true;
     }
     else
     {
         this.Enabled = Enabled;
     }
     this.Tags     = Tags;
     this.Email    = Email;
     this.Notes    = Notes;
     this.PostBack = PostBack;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PublicInvitationSchema" /> class.
 /// </summary>
 /// <param name="Id">The invitationId for this invitation..</param>
 /// <param name="CourseId">Course Id for this Invitation..</param>
 /// <param name="AllowLaunch">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="AllowNewRegistrations">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="Url">The launch URL for the invitation.</param>
 /// <param name="CreateDate">The create date for the invitation.</param>
 /// <param name="Updated">Updated.</param>
 /// <param name="PostBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="ExpirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="RegistrationCap">Integer value that limits the amount of registrations a public invitation can generate. (default to 0).</param>
 /// <param name="RegistrationCount">The count of registrations for this invitation.</param>
 public PublicInvitationSchema(string Id = default(string), string CourseId = default(string), bool?AllowLaunch = default(bool?), bool?AllowNewRegistrations = default(bool?), string Url = default(string), DateTime?CreateDate = default(DateTime?), DateTime?Updated = default(DateTime?), PostBackSchema PostBack = default(PostBackSchema), DateTime?ExpirationDate = default(DateTime?), int?RegistrationCap = 0, int?RegistrationCount = default(int?))
 {
     this.Id                    = Id;
     this.CourseId              = CourseId;
     this.AllowLaunch           = AllowLaunch;
     this.AllowNewRegistrations = AllowNewRegistrations;
     this.Url                   = Url;
     this.CreateDate            = CreateDate;
     this.Updated               = Updated;
     this.PostBack              = PostBack;
     this.ExpirationDate        = ExpirationDate;
     // use default value if no "RegistrationCap" provided
     if (RegistrationCap == null)
     {
         this.RegistrationCap = 0;
     }
     else
     {
         this.RegistrationCap = RegistrationCap;
     }
     this.RegistrationCount = RegistrationCount;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePrivateInvitationSchema" /> class.
 /// </summary>
 /// <param name="CourseId">The id of the course for which to create an invitation. (required).</param>
 /// <param name="CreatingUserEmail">The email of the user who is creating the invitation. (required).</param>
 /// <param name="InvitationEmail">InvitationEmail (required).</param>
 /// <param name="PostBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="ExpirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="Tags">Optional tags to be applied to this invitation..</param>
 public CreatePrivateInvitationSchema(string CourseId = default(string), string CreatingUserEmail = default(string), InvitationEmailSchema InvitationEmail = default(InvitationEmailSchema), PostBackSchema PostBack = default(PostBackSchema), DateTime?ExpirationDate = default(DateTime?), List <string> Tags = default(List <string>))
 {
     // to ensure "CourseId" is required (not null)
     if (CourseId == null)
     {
         throw new InvalidDataException("CourseId is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.CourseId = CourseId;
     }
     // to ensure "CreatingUserEmail" is required (not null)
     if (CreatingUserEmail == null)
     {
         throw new InvalidDataException("CreatingUserEmail is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.CreatingUserEmail = CreatingUserEmail;
     }
     // to ensure "InvitationEmail" is required (not null)
     if (InvitationEmail == null)
     {
         throw new InvalidDataException("InvitationEmail is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.InvitationEmail = InvitationEmail;
     }
     this.PostBack       = PostBack;
     this.ExpirationDate = ExpirationDate;
     this.Tags           = Tags;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePublicInvitationSchema" /> class.
 /// </summary>
 /// <param name="courseId">The id of the course for which to create an invitation. (required).</param>
 /// <param name="creatingUserEmail">The email of the user who is creating the invitation. (required).</param>
 /// <param name="registrationCap">Integer value that limits the amount of registrations a public invitation can generate. (default to 0).</param>
 /// <param name="postBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="expirationDate">The date this invitation will expire and can no longer be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="tags">Optional tags to be applied to this invitation..</param>
 public CreatePublicInvitationSchema(string courseId = default(string), string creatingUserEmail = default(string), int?registrationCap = 0, PostBackSchema postBack = default(PostBackSchema), DateTime?expirationDate = default(DateTime?), List <string> tags = default(List <string>))
 {
     // to ensure "courseId" is required (not null)
     if (courseId == null)
     {
         throw new InvalidDataException("courseId is a required property for CreatePublicInvitationSchema and cannot be null");
     }
     else
     {
         this.CourseId = courseId;
     }
     // to ensure "creatingUserEmail" is required (not null)
     if (creatingUserEmail == null)
     {
         throw new InvalidDataException("creatingUserEmail is a required property for CreatePublicInvitationSchema and cannot be null");
     }
     else
     {
         this.CreatingUserEmail = creatingUserEmail;
     }
     // use default value if no "registrationCap" provided
     if (registrationCap == null)
     {
         this.RegistrationCap = 0;
     }
     else
     {
         this.RegistrationCap = registrationCap;
     }
     this.PostBack       = postBack;
     this.ExpirationDate = expirationDate;
     this.Tags           = tags;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateDispatchSchema" /> class.
 /// </summary>
 /// <param name="destinationId">Id of the destination this dispatch will belong to. (required).</param>
 /// <param name="courseId">Id of the course to be dispatched. (required).</param>
 /// <param name="allowNewRegistrations">If true, then new registrations can be created for this dispatch. (default to true).</param>
 /// <param name="instanced">If true, then a new registration instance will be created if the client LMS doesn&#39;t provide launch data for an existing one. Otherwise, the same instance will always be used for the given cmi.learner_id.  (default to true).</param>
 /// <param name="registrationCap">The maximum number of registrations that can be created for this dispatch, where &#39;0&#39; means &#39;unlimited registrations&#39;.  (default to 0).</param>
 /// <param name="expirationDate">The date after which this dispatch will be disabled as an ISO 8601 string, or not present for no expiration date. .</param>
 /// <param name="enabled">If true, then this dispatch can be launched. (default to true).</param>
 /// <param name="tags">The tags to associate with this Dispatch..</param>
 /// <param name="email">SCORM Cloud user e-mail associated with this dispatch. If this is not provided, it will default to the owner of the Realm. .</param>
 /// <param name="notes">Any provided notes about this dispatch..</param>
 /// <param name="postBack">The postback information for this Dispatch..</param>
 public CreateDispatchSchema(string destinationId = default(string), string courseId = default(string), bool?allowNewRegistrations = true, bool?instanced = true, int?registrationCap = 0, DateTime?expirationDate = default(DateTime?), bool?enabled = true, List <string> tags = default(List <string>), string email = default(string), string notes = default(string), PostBackSchema postBack = default(PostBackSchema))
 {
     // to ensure "destinationId" is required (not null)
     if (destinationId == null)
     {
         throw new InvalidDataException("destinationId is a required property for CreateDispatchSchema and cannot be null");
     }
     else
     {
         this.DestinationId = destinationId;
     }
     // to ensure "courseId" is required (not null)
     if (courseId == null)
     {
         throw new InvalidDataException("courseId is a required property for CreateDispatchSchema and cannot be null");
     }
     else
     {
         this.CourseId = courseId;
     }
     // use default value if no "allowNewRegistrations" provided
     if (allowNewRegistrations == null)
     {
         this.AllowNewRegistrations = true;
     }
     else
     {
         this.AllowNewRegistrations = allowNewRegistrations;
     }
     // use default value if no "instanced" provided
     if (instanced == null)
     {
         this.Instanced = true;
     }
     else
     {
         this.Instanced = instanced;
     }
     // use default value if no "registrationCap" provided
     if (registrationCap == null)
     {
         this.RegistrationCap = 0;
     }
     else
     {
         this.RegistrationCap = registrationCap;
     }
     this.ExpirationDate = expirationDate;
     // use default value if no "enabled" provided
     if (enabled == null)
     {
         this.Enabled = true;
     }
     else
     {
         this.Enabled = enabled;
     }
     this.Tags     = tags;
     this.Email    = email;
     this.Notes    = notes;
     this.PostBack = postBack;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateRegistrationSchema" /> class.
 /// </summary>
 /// <param name="courseId">courseId (required).</param>
 /// <param name="learner">learner (required).</param>
 /// <param name="registrationId">registrationId (required).</param>
 /// <param name="xapiRegistrationId">The xapiRegistrationId to be associated with this registration. If not specified, the system will assign an xapiRegistrationId. As per the xApi specification, this must be a UUID..</param>
 /// <param name="learnerTags">learnerTags.</param>
 /// <param name="courseTags">courseTags.</param>
 /// <param name="registrationTags">registrationTags.</param>
 /// <param name="postBack">Specifies an optional override URL for which to post activity and status data in real time as the course is completed. By default all of these settings are read from your configuration..</param>
 /// <param name="initialRegistrationState">initialRegistrationState.</param>
 /// <param name="initialSettings">initialSettings.</param>
 public CreateRegistrationSchema(string courseId = default(string), LearnerSchema learner = default(LearnerSchema), string registrationId = default(string), string xapiRegistrationId = default(string), List <string> learnerTags = default(List <string>), List <string> courseTags = default(List <string>), List <string> registrationTags = default(List <string>), PostBackSchema postBack = default(PostBackSchema), RegistrationSchema initialRegistrationState = default(RegistrationSchema), SettingsPostSchema initialSettings = default(SettingsPostSchema))
 {
     // to ensure "courseId" is required (not null)
     if (courseId == null)
     {
         throw new InvalidDataException("courseId is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.CourseId = courseId;
     }
     // to ensure "learner" is required (not null)
     if (learner == null)
     {
         throw new InvalidDataException("learner is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.Learner = learner;
     }
     // to ensure "registrationId" is required (not null)
     if (registrationId == null)
     {
         throw new InvalidDataException("registrationId is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.RegistrationId = registrationId;
     }
     this.XapiRegistrationId       = xapiRegistrationId;
     this.LearnerTags              = learnerTags;
     this.CourseTags               = courseTags;
     this.RegistrationTags         = registrationTags;
     this.PostBack                 = postBack;
     this.InitialRegistrationState = initialRegistrationState;
     this.InitialSettings          = initialSettings;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateDispatchSchema" /> class.
 /// </summary>
 /// <param name="AllowNewRegistrations">If true, then new registrations can be created for this dispatch. .</param>
 /// <param name="Instanced">If true, then a new registration instance will be created if the client LMS doesn&#39;t provide launch data for an existing one. Otherwise, the same instance will always be used for the given cmi.learner_id. .</param>
 /// <param name="RegistrationCap">The maximum number of registrations that can be created for this dispatch, where &#39;0&#39; means &#39;unlimited registrations&#39;. .</param>
 /// <param name="ExpirationDate">The date after which this dispatch will be disabled as an ISO 8601 string, or not present for no expiration date. .</param>
 /// <param name="Enabled">If true, then this dispatch can be launched. .</param>
 /// <param name="Email">SCORM Cloud user e-mail associated with this dispatch. If this is not provided, it will default to the owner of the Realm. .</param>
 /// <param name="Notes">Any provided notes about this dispatch..</param>
 /// <param name="PostBack">The postback information for this Dispatch..</param>
 public UpdateDispatchSchema(bool?AllowNewRegistrations = default(bool?), bool?Instanced = default(bool?), int?RegistrationCap = default(int?), DateTime?ExpirationDate = default(DateTime?), bool?Enabled = default(bool?), string Email = default(string), string Notes = default(string), PostBackSchema PostBack = default(PostBackSchema))
 {
     this.AllowNewRegistrations = AllowNewRegistrations;
     this.Instanced             = Instanced;
     this.RegistrationCap       = RegistrationCap;
     this.ExpirationDate        = ExpirationDate;
     this.Enabled  = Enabled;
     this.Email    = Email;
     this.Notes    = Notes;
     this.PostBack = PostBack;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreatePrivateInvitationSchema" /> class.
 /// </summary>
 /// <param name="courseId">The id of the course for which to create an invitation. (required).</param>
 /// <param name="creatingUserEmail">The email of the user who is creating the invitation. (required).</param>
 /// <param name="invitationEmail">invitationEmail (required).</param>
 /// <param name="postBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="expirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="tags">Optional tags to be applied to this invitation..</param>
 public CreatePrivateInvitationSchema(string courseId = default(string), string creatingUserEmail = default(string), InvitationEmailSchema invitationEmail = default(InvitationEmailSchema), PostBackSchema postBack = default(PostBackSchema), DateTime?expirationDate = default(DateTime?), List <string> tags = default(List <string>))
 {
     // to ensure "courseId" is required (not null)
     if (courseId == null)
     {
         throw new InvalidDataException("courseId is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.CourseId = courseId;
     }
     // to ensure "creatingUserEmail" is required (not null)
     if (creatingUserEmail == null)
     {
         throw new InvalidDataException("creatingUserEmail is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.CreatingUserEmail = creatingUserEmail;
     }
     // to ensure "invitationEmail" is required (not null)
     if (invitationEmail == null)
     {
         throw new InvalidDataException("invitationEmail is a required property for CreatePrivateInvitationSchema and cannot be null");
     }
     else
     {
         this.InvitationEmail = invitationEmail;
     }
     this.PostBack       = postBack;
     this.ExpirationDate = expirationDate;
     this.Tags           = tags;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateRegistrationSchema" /> class.
 /// </summary>
 /// <param name="CourseId">CourseId (required).</param>
 /// <param name="Learner">Learner (required).</param>
 /// <param name="RegistrationId">RegistrationId (required).</param>
 /// <param name="XapiRegistrationId">The xapiRegistrationId to be associated with this registration. If not specified, the system will assign an xapiRegistrationId. As per the xApi specification, this must be a UUID..</param>
 /// <param name="LearnerTags">LearnerTags.</param>
 /// <param name="CourseTags">CourseTags.</param>
 /// <param name="RegistrationTags">RegistrationTags.</param>
 /// <param name="PostBack">Specifies an optional override URL for which to post activity and status data in real time as the course is completed. By default all of these settings are read from your configuration..</param>
 /// <param name="InitialRegistrationState">InitialRegistrationState.</param>
 /// <param name="InitialSettings">InitialSettings.</param>
 public CreateRegistrationSchema(string CourseId = default(string), LearnerSchema Learner = default(LearnerSchema), string RegistrationId = default(string), string XapiRegistrationId = default(string), List <string> LearnerTags = default(List <string>), List <string> CourseTags = default(List <string>), List <string> RegistrationTags = default(List <string>), PostBackSchema PostBack = default(PostBackSchema), RegistrationSchema InitialRegistrationState = default(RegistrationSchema), SettingsPostSchema InitialSettings = default(SettingsPostSchema))
 {
     // to ensure "CourseId" is required (not null)
     if (CourseId == null)
     {
         throw new InvalidDataException("CourseId is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.CourseId = CourseId;
     }
     // to ensure "Learner" is required (not null)
     if (Learner == null)
     {
         throw new InvalidDataException("Learner is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.Learner = Learner;
     }
     // to ensure "RegistrationId" is required (not null)
     if (RegistrationId == null)
     {
         throw new InvalidDataException("RegistrationId is a required property for CreateRegistrationSchema and cannot be null");
     }
     else
     {
         this.RegistrationId = RegistrationId;
     }
     this.XapiRegistrationId       = XapiRegistrationId;
     this.LearnerTags              = LearnerTags;
     this.CourseTags               = CourseTags;
     this.RegistrationTags         = RegistrationTags;
     this.PostBack                 = PostBack;
     this.InitialRegistrationState = InitialRegistrationState;
     this.InitialSettings          = InitialSettings;
 }
예제 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UpdateDispatchSchema" /> class.
 /// </summary>
 /// <param name="allowNewRegistrations">If true, then new registrations can be created for this dispatch. .</param>
 /// <param name="instanced">If true, then a new registration instance will be created if the client LMS doesn&#39;t provide launch data for an existing one. Otherwise, the same instance will always be used for the given cmi.learner_id. .</param>
 /// <param name="registrationCap">The maximum number of registrations that can be created for this dispatch, where &#39;0&#39; means &#39;unlimited registrations&#39;. .</param>
 /// <param name="expirationDate">The date after which this dispatch will be disabled as an ISO 8601 string, or not present for no expiration date. .</param>
 /// <param name="enabled">If true, then this dispatch can be launched. .</param>
 /// <param name="email">SCORM Cloud user e-mail associated with this dispatch. If this is not provided, it will default to the owner of the Realm. .</param>
 /// <param name="notes">Any provided notes about this dispatch..</param>
 /// <param name="postBack">The postback information for this Dispatch..</param>
 public UpdateDispatchSchema(bool?allowNewRegistrations = default(bool?), bool?instanced = default(bool?), int?registrationCap = default(int?), DateTime?expirationDate = default(DateTime?), bool?enabled = default(bool?), string email = default(string), string notes = default(string), PostBackSchema postBack = default(PostBackSchema))
 {
     this.AllowNewRegistrations = allowNewRegistrations;
     this.Instanced             = instanced;
     this.RegistrationCap       = registrationCap;
     this.ExpirationDate        = expirationDate;
     this.Enabled  = enabled;
     this.Email    = email;
     this.Notes    = notes;
     this.PostBack = postBack;
 }
예제 #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrivateInvitationSchema" /> class.
 /// </summary>
 /// <param name="id">The invitationId for this invitation..</param>
 /// <param name="courseId">Course Id for this Invitation..</param>
 /// <param name="allowLaunch">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="invitationEmail">invitationEmail.</param>
 /// <param name="createDate">The create date for the invitation.</param>
 /// <param name="updated">updated.</param>
 /// <param name="postBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="expirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="registrationCount">The count of registrations for this invitation.</param>
 public PrivateInvitationSchema(string id = default(string), string courseId = default(string), bool?allowLaunch = default(bool?), InvitationEmailSchema invitationEmail = default(InvitationEmailSchema), DateTime?createDate = default(DateTime?), DateTime?updated = default(DateTime?), PostBackSchema postBack = default(PostBackSchema), DateTime?expirationDate = default(DateTime?), int?registrationCount = default(int?))
 {
     this.Id                = id;
     this.CourseId          = courseId;
     this.AllowLaunch       = allowLaunch;
     this.InvitationEmail   = invitationEmail;
     this.CreateDate        = createDate;
     this.Updated           = updated;
     this.PostBack          = postBack;
     this.ExpirationDate    = expirationDate;
     this.RegistrationCount = registrationCount;
 }
예제 #13
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PublicInvitationSchema" /> class.
 /// </summary>
 /// <param name="id">The invitationId for this invitation..</param>
 /// <param name="courseId">Course Id for this Invitation..</param>
 /// <param name="allowLaunch">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="allowNewRegistrations">If true, then new registrations can be created for this dispatch..</param>
 /// <param name="url">The launch URL for the invitation.</param>
 /// <param name="createDate">The create date for the invitation.</param>
 /// <param name="updated">updated.</param>
 /// <param name="postBack">Specifies a URL for which to post activity and status data in real time as the course is completed.</param>
 /// <param name="expirationDate">The date this invitation will expire and can not be launched (formatted yyyyMMddHHmmss in UTC time)..</param>
 /// <param name="registrationCap">Integer value that limits the amount of registrations a public invitation can generate. (default to 0).</param>
 /// <param name="registrationCount">The count of registrations for this invitation.</param>
 public PublicInvitationSchema(string id = default(string), string courseId = default(string), bool?allowLaunch = default(bool?), bool?allowNewRegistrations = default(bool?), string url = default(string), DateTime?createDate = default(DateTime?), DateTime?updated = default(DateTime?), PostBackSchema postBack = default(PostBackSchema), DateTime?expirationDate = default(DateTime?), int?registrationCap = 0, int?registrationCount = default(int?))
 {
     this.Id                    = id;
     this.CourseId              = courseId;
     this.AllowLaunch           = allowLaunch;
     this.AllowNewRegistrations = allowNewRegistrations;
     this.Url                   = url;
     this.CreateDate            = createDate;
     this.Updated               = updated;
     this.PostBack              = postBack;
     this.ExpirationDate        = expirationDate;
     // use default value if no "registrationCap" provided
     if (registrationCap == null)
     {
         this.RegistrationCap = 0;
     }
     else
     {
         this.RegistrationCap = registrationCap;
     }
     this.RegistrationCount = registrationCount;
 }