Toolkit-mobile-templates  2.0.0
This repository contains the template applications of the toolkit.
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
org.buildmlearn.quiztime.data.QuizModel Class Reference

Model used to save quiz entries in database for quiz template's app. More...

Inheritance diagram for org.buildmlearn.quiztime.data.QuizModel:
Inheritance graph
[legend]
Collaboration diagram for org.buildmlearn.quiztime.data.QuizModel:
Collaboration graph
[legend]

Public Member Functions

 QuizModel ()
 
int describeContents ()
 
void writeToParcel (Parcel dest, int flags)
 
String getQuestion ()
 
void setQuestion (String question)
 
ArrayList< String > getOptions ()
 
void setOptions (ArrayList< String > options)
 
int getCorrectAnswer ()
 
void setCorrectAnswer (int correctAnswer)
 

Public Attributes

final Parcelable.Creator< QuizModelCREATOR
 

Private Member Functions

 QuizModel (Parcel in)
 

Private Attributes

String question
 
ArrayList< String > options
 
int correctAnswer
 

Detailed Description

Model used to save quiz entries in database for quiz template's app.

Created by Anupam (opticod) on 11/8/16.

Constructor & Destructor Documentation

org.buildmlearn.quiztime.data.QuizModel.QuizModel ( Parcel  in)
private
org.buildmlearn.quiztime.data.QuizModel.QuizModel ( )

Member Function Documentation

int org.buildmlearn.quiztime.data.QuizModel.describeContents ( )
int org.buildmlearn.quiztime.data.QuizModel.getCorrectAnswer ( )
ArrayList<String> org.buildmlearn.quiztime.data.QuizModel.getOptions ( )
String org.buildmlearn.quiztime.data.QuizModel.getQuestion ( )
void org.buildmlearn.quiztime.data.QuizModel.setCorrectAnswer ( int  correctAnswer)
void org.buildmlearn.quiztime.data.QuizModel.setOptions ( ArrayList< String >  options)
void org.buildmlearn.quiztime.data.QuizModel.setQuestion ( String  question)
void org.buildmlearn.quiztime.data.QuizModel.writeToParcel ( Parcel  dest,
int  flags 
)

Member Data Documentation

int org.buildmlearn.quiztime.data.QuizModel.correctAnswer
private
final Parcelable.Creator<QuizModel> org.buildmlearn.quiztime.data.QuizModel.CREATOR
Initial value:
= new Parcelable.Creator<QuizModel>() {
@Override
public QuizModel createFromParcel(Parcel parcel) {
return new QuizModel(parcel);
}
@Override
public QuizModel[] newArray(int size) {
return new QuizModel[size];
}
}
ArrayList<String> org.buildmlearn.quiztime.data.QuizModel.options
private
String org.buildmlearn.quiztime.data.QuizModel.question
private

The documentation for this class was generated from the following file: