Table of Contents

Class TriviaGame

Namespace
Tudormobile.OpenTrivia
Assembly
Tudormobile.OpenTrivia.dll

Represents an immutable trivia game containing a collection of questions and their associated categories.

public class TriviaGame
Inheritance
TriviaGame
Inherited Members

Constructors

TriviaGame(IEnumerable<TriviaQuestion>, IEnumerable<TriviaCategory>)

Initializes a new instance of the TriviaGame class.

public TriviaGame(IEnumerable<TriviaQuestion> questions, IEnumerable<TriviaCategory> categories)

Parameters

questions IEnumerable<TriviaQuestion>

The collection of trivia questions to include in the game.

categories IEnumerable<TriviaCategory>

The collection of trivia categories to include in the game.

Properties

Categories

Gets the read-only list of trivia categories included in this game.

public IReadOnlyList<TriviaCategory> Categories { get; }

Property Value

IReadOnlyList<TriviaCategory>

Questions

Gets the read-only list of trivia questions in this game.

public IReadOnlyList<TriviaQuestion> Questions { get; }

Property Value

IReadOnlyList<TriviaQuestion>