Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DestinationSchema" /> class.
 /// </summary>
 /// <param name="name">The destination&#39;s name..</param>
 /// <param name="tags">Optional array of tags..</param>
 /// <param name="email">SCORM Cloud user e-mail associated with this destination. If this is not provided, it will default to the owner of the Realm. .</param>
 /// <param name="notes">Any provided notes about this Destination.</param>
 /// <param name="launchAuth">launchAuth.</param>
 public DestinationSchema(string name = default(string), List <string> tags = default(List <string>), string email = default(string), string notes = default(string), LaunchAuthSchema launchAuth = default(LaunchAuthSchema))
 {
     this.Name       = name;
     this.Tags       = tags;
     this.Email      = email;
     this.Notes      = notes;
     this.LaunchAuth = launchAuth;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="LaunchLinkRequestSchema" /> class.
 /// </summary>
 /// <param name="expiry">Number of seconds from now this link will expire in. Defaults to 120s. Range 10s:300s (default to 120).</param>
 /// <param name="redirectOnExitUrl">The URL the application should redirect to when the learner exits a course. If not specified, configured value will be used. (required).</param>
 /// <param name="tracking">Should this launch be tracked? If false, Engine will avoid tracking to the extent possible for the standard being used. (default to true).</param>
 /// <param name="startSco">For SCORM, SCO identifier to override launch, overriding the normal sequencing..</param>
 /// <param name="culture">This parameter should specify a culture code. If specified, and supported, the navigation and alerts in the player will be displayed in the associated language. If not specified, the locale of the user’s browser will be used..</param>
 /// <param name="cssUrl">A Url pointing to custom css for the player to use..</param>
 /// <param name="learnerTags">learnerTags.</param>
 /// <param name="courseTags">courseTags.</param>
 /// <param name="registrationTags">registrationTags.</param>
 /// <param name="additionalvalues">additionalvalues.</param>
 /// <param name="launchAuth">launchAuth.</param>
 public LaunchLinkRequestSchema(int?expiry = 120, string redirectOnExitUrl = default(string), bool?tracking = true, string startSco = default(string), string culture = default(string), string cssUrl = default(string), List <string> learnerTags = default(List <string>), List <string> courseTags = default(List <string>), List <string> registrationTags = default(List <string>), List <ItemValuePairSchema> additionalvalues = default(List <ItemValuePairSchema>), LaunchAuthSchema launchAuth = default(LaunchAuthSchema))
 {
     // to ensure "redirectOnExitUrl" is required (not null)
     if (redirectOnExitUrl == null)
     {
         throw new InvalidDataException("redirectOnExitUrl is a required property for LaunchLinkRequestSchema and cannot be null");
     }
     else
     {
         this.RedirectOnExitUrl = redirectOnExitUrl;
     }
     // use default value if no "expiry" provided
     if (expiry == null)
     {
         this.Expiry = 120;
     }
     else
     {
         this.Expiry = expiry;
     }
     // use default value if no "tracking" provided
     if (tracking == null)
     {
         this.Tracking = true;
     }
     else
     {
         this.Tracking = tracking;
     }
     this.StartSco         = startSco;
     this.Culture          = culture;
     this.CssUrl           = cssUrl;
     this.LearnerTags      = learnerTags;
     this.CourseTags       = courseTags;
     this.RegistrationTags = registrationTags;
     this.Additionalvalues = additionalvalues;
     this.LaunchAuth       = launchAuth;
 }