Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.atik.lict_mcq.database.model;
- import android.os.Parcel;
- import android.os.Parcelable;
- /**
- * Created by Atik on 3/27/2017.
- */
- public class ShowCorrectanswer implements Parcelable {
- private String question;
- private String answer;
- public ShowCorrectanswer(String answer, String question) {
- this.answer = answer;
- this.question = question;
- }
- public ShowCorrectanswer() {
- }
- protected ShowCorrectanswer(Parcel in) {
- question = in.readString();
- answer = in.readString();
- }
- public static final Creator<ShowCorrectanswer> CREATOR = new Creator<ShowCorrectanswer>() {
- @Override
- public ShowCorrectanswer createFromParcel(Parcel in) {
- return new ShowCorrectanswer(in);
- }
- @Override
- public ShowCorrectanswer[] newArray(int size) {
- return new ShowCorrectanswer[size];
- }
- };
- public String getQuestion() {
- return question;
- }
- public void setQuestion(String question) {
- this.question = question;
- }
- public String getAnswer() {
- return answer;
- }
- public void setAnswer(String answer) {
- this.answer = answer;
- }
- @Override
- public int describeContents() {
- return 0;
- }
- @Override
- public void writeToParcel(Parcel parcel, int i) {
- parcel.writeString(question);
- parcel.writeString(answer);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement