Class OnboardingQuizAttempt
Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
public class OnboardingQuizAttempt
- Inheritance
-
OnboardingQuizAttempt
- Inherited Members
Remarks
The onboarding quiz is used to assess users' understanding of the platform and its features. Each attempt stores the questions presented to the user, their answers, and the scoring results. Users can start a quiz and submit it later, with the submission timestamp tracked separately from creation.
Properties
AnswersJson
Gets or sets the JSON representation of the user's answers to the quiz questions.
public string AnswersJson { get; set; }
Property Value
- string
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
This stores the answers provided by the user, allowing for review and scoring. The structure of this JSON should match the question set structure.
CreatedAtUtc
Gets or sets the UTC timestamp when this quiz attempt was created.
public DateTime CreatedAtUtc { get; set; }
Property Value
- DateTime
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
This represents when the user started the quiz, not when they submitted it.
Id
Gets or sets the unique identifier for this quiz attempt.
public Guid Id { get; set; }
Property Value
- Guid
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
IsSubmitted
Gets or sets a value indicating whether this quiz attempt has been submitted.
public bool IsSubmitted { get; set; }
Property Value
- bool
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
Users can start a quiz and save their progress, then submit it later. This flag indicates whether the attempt has been finalized.
Passed
Gets or sets a value indicating whether the user passed the quiz based on the score.
public bool Passed { get; set; }
Property Value
- bool
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
The passing threshold is determined by business logic, typically requiring a certain percentage of correct answers.
QuestionSetJson
Gets or sets the JSON representation of the question set presented to the user in this quiz attempt.
public string QuestionSetJson { get; set; }
Property Value
- string
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
This stores the questions that were shown to the user, allowing for review and audit purposes. The structure of this JSON depends on the quiz implementation.
Score
Gets or sets the score achieved by the user on this quiz attempt.
public int Score { get; set; }
Property Value
- int
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Remarks
This represents the number of correct answers. The score should be between 0 and Total.
SubmittedAtUtc
Gets or sets the UTC timestamp when this quiz attempt was submitted, or null if it has not been submitted yet.
public DateTime? SubmittedAtUtc { get; set; }
Property Value
- DateTime?
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
Total
Gets or sets the total number of questions in this quiz attempt.
public int Total { get; set; }
Property Value
- int
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
User
Gets or sets the user who took this quiz, or null if the user has been deleted.
public User? User { get; set; }
Property Value
- User
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.
UserId
Gets or sets the unique identifier of the user who took this quiz.
public Guid UserId { get; set; }
Property Value
- Guid
- Represents a user's attempt at completing the onboarding quiz, including questions, answers, and results.