private void _handleRegistrationSuccess(IMessageBase messageBase) { RegistrationSuccess success = (RegistrationSuccess)messageBase; Logger.Info($"{_clientName} gets player id {success.UserId}"); if (!success.Reregistration) { _startSendPosition(); _generateSpaceRequirements(); _sendPlayerPreferences(); } }
/// <summary> /// Initializes a new instance of the <see cref="RegistrationSchema" /> class. /// </summary> /// <param name="Id">Id.</param> /// <param name="Instance">Instance.</param> /// <param name="XapiRegistrationId">xAPI registration id associated with this registration.</param> /// <param name="DispatchId">Dispatch ID for this registration, if applicable.</param> /// <param name="Updated">Updated.</param> /// <param name="RegistrationCompletion">RegistrationCompletion.</param> /// <param name="RegistrationCompletionAmount">RegistrationCompletionAmount.</param> /// <param name="RegistrationSuccess">RegistrationSuccess.</param> /// <param name="Score">Score.</param> /// <param name="TotalSecondsTracked">TotalSecondsTracked.</param> /// <param name="FirstAccessDate">FirstAccessDate.</param> /// <param name="LastAccessDate">LastAccessDate.</param> /// <param name="CompletedDate">CompletedDate.</param> /// <param name="CreatedDate">CreatedDate.</param> /// <param name="Course">Course.</param> /// <param name="Learner">Learner.</param> /// <param name="Tags">Tags.</param> /// <param name="GlobalObjectives">GlobalObjectives.</param> /// <param name="SharedData">SharedData.</param> /// <param name="SuspendedActivityId">SuspendedActivityId.</param> /// <param name="ActivityDetails">ActivityDetails.</param> public RegistrationSchema(string Id = default(string), int?Instance = default(int?), string XapiRegistrationId = default(string), string DispatchId = default(string), DateTime?Updated = default(DateTime?), RegistrationCompletion RegistrationCompletion = default(RegistrationCompletion), double?RegistrationCompletionAmount = default(double?), RegistrationSuccess RegistrationSuccess = default(RegistrationSuccess), ScoreSchema Score = default(ScoreSchema), double?TotalSecondsTracked = default(double?), DateTime?FirstAccessDate = default(DateTime?), DateTime?LastAccessDate = default(DateTime?), DateTime?CompletedDate = default(DateTime?), DateTime?CreatedDate = default(DateTime?), CourseReferenceSchema Course = default(CourseReferenceSchema), LearnerSchema Learner = default(LearnerSchema), List <string> Tags = default(List <string>), List <ObjectiveSchema> GlobalObjectives = default(List <ObjectiveSchema>), List <SharedDataEntrySchema> SharedData = default(List <SharedDataEntrySchema>), string SuspendedActivityId = default(string), ActivityResultSchema ActivityDetails = default(ActivityResultSchema)) { this.Id = Id; this.Instance = Instance; this.XapiRegistrationId = XapiRegistrationId; this.DispatchId = DispatchId; this.Updated = Updated; this.RegistrationCompletion = RegistrationCompletion; this.RegistrationCompletionAmount = RegistrationCompletionAmount; this.RegistrationSuccess = RegistrationSuccess; this.Score = Score; this.TotalSecondsTracked = TotalSecondsTracked; this.FirstAccessDate = FirstAccessDate; this.LastAccessDate = LastAccessDate; this.CompletedDate = CompletedDate; this.CreatedDate = CreatedDate; this.Course = Course; this.Learner = Learner; this.Tags = Tags; this.GlobalObjectives = GlobalObjectives; this.SharedData = SharedData; this.SuspendedActivityId = SuspendedActivityId; this.ActivityDetails = ActivityDetails; }
/// <summary> /// Initializes a new instance of the <see cref="UserInvitationSchemaRegistrationReport" /> class. /// </summary> /// <param name="Complete">Complete.</param> /// <param name="Success">Success.</param> /// <param name="TotalSecondsTracked">TotalSecondsTracked.</param> /// <param name="Score">Score.</param> public UserInvitationSchemaRegistrationReport(RegistrationCompletion Complete = default(RegistrationCompletion), RegistrationSuccess Success = default(RegistrationSuccess), double?TotalSecondsTracked = default(double?), ScoreSchema Score = default(ScoreSchema)) { this.Complete = Complete; this.Success = Success; this.TotalSecondsTracked = TotalSecondsTracked; this.Score = Score; }