@@ -0,0 +1,2921 @@
+/*%0A * Copyright 2016 Farbod Salamat-Zadeh%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.satsumasoftware.flashcards.object;%0A%0Aimport android.os.Parcel;%0Aimport android.text.Html;%0Aimport android.text.Spanned;%0A%0Apublic class StandardFlashCard implements FlashCard %7B%0A%0A    private int mId, mPageRef;%0A    private String mQuestion, mAnswer;%0A    private Topic mTopic;%0A%0A%0A    public StandardFlashCard(int id, String question, String answer, int pageRef, Topic topic) %7B%0A        mId = id;%0A        mQuestion = question;%0A        mAnswer = answer;%0A        mPageRef = pageRef;%0A        mTopic = topic;%0A    %7D%0A%0A%0A    @Override%0A    public int getId() %7B%0A        return mId;%0A    %7D%0A%0A    @Override%0A    public Spanned getQuestion() %7B%0A        return Html.fromHtml(mQuestion);%0A    %7D%0A%0A    @Override%0A    public Spanned getAnswer() %7B%0A        if (mAnswer.equals(%22#see-guide%22)) %7B%0A            return Html.fromHtml(%22This answer is too long to fit on a flashcard, but you can %22 +%0A                    %22check %3Cb%3Epage %22 + mPageRef + %22%3C/b%3E of the revision guide (%5C%22%3Cem%3E%22 +%0A                    mTopic.getCourse().getRevisionGuideName() + %22%3C/em%3E%5C%22) for details.%22);%0A        %7D else %7B%0A            return Html.fromHtml(mAnswer);%0A        %7D%0A    %7D%0A%0A    @Override%0A    public Topic getTopic() %7B%0A        return mTopic;%0A    %7D%0A%0A    @Override%0A    public String getFlashCardType() %7B%0A        return FlashCard.STANDARD;%0A    %7D%0A%0A%0A    public int getPageReference() %7B%0A        return mPageRef;%0A    %7D%0A%0A%0A    protected StandardFlashCard(Parcel in) %7B%0A        mId = in.readInt();%0A        mPageRef = in.readInt();%0A        mQuestion = in.readString();%0A        mAnswer = in.readString();%0A        mTopic = in.readParcelable(Topic.class.getClassLoader());%0A    %7D%0A%0A    public static final Creator%3CStandardFlashCard%3E CREATOR = new Creator%3CStandardFlashCard%3E() %7B%0A        @Override%0A        public StandardFlashCard createFromParcel(Parcel in) %7B%0A            return new StandardFlashCard(in);%0A        %7D%0A%0A        @Override%0A        public StandardFlashCard%5B%5D newArray(int size) %7B%0A            return new StandardFlashCard%5Bsize%5D;%0A        %7D%0A    %7D;%0A%0A    @Override%0A    public int describeContents() %7B%0A        return 0;%0A    %7D%0A%0A    @Override%0A    public void writeToParcel(Parcel dest, int flags) %7B%0A        dest.writeInt(mId);%0A        dest.writeInt(mPageRef);%0A        dest.writeString(mQuestion);%0A        dest.writeString(mAnswer);%0A        dest.writeParcelable(mTopic, flags);%0A    %7D%0A%7D%0A

Add the `StandardFlashCard` object