Class QuizRepository


  • public class QuizRepository
    extends Object
    Encapsulates a persistent QuizRepository object that allows the Quiz ViewModel to interact with the Web Service Proxy to create, read, insert, and update data to the server.
    • Constructor Detail

      • QuizRepository

        public QuizRepository()
        Constructor for class that instantiates local fields.
    • Method Detail

      • getRandomQuestion

        public io.reactivex.Single<Question> getRandomQuestion()
        Gets a random Question from the server.
        Returns:
        A random Question object in the form of a ReactiveX Single.