@@ -0,0 +1,3200 @@
+/*%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.support.annotation.IntDef;%0Aimport android.text.Html;%0Aimport android.text.Spanned;%0A%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0A%0Apublic class LanguagesFlashCard implements FlashCard %7B%0A%0A    @IntDef(%7BGENERAL_VOCAB, FOUNDATION, HIGHER%7D)%0A    @Retention(RetentionPolicy.SOURCE)%0A    public @interface Tier %7B%7D%0A    public static final int GENERAL_VOCAB = 0, FOUNDATION = 1, HIGHER = 2;%0A%0A    private int mId, mTier;%0A    private String mEnglish, mAnswerPrefix, mAnswer;%0A    private Topic mTopic;%0A%0A%0A    public LanguagesFlashCard(int id, String answerPrefix, String answer, String english,%0A                              int tier, Topic topic) %7B%0A        mId = id;%0A        mEnglish = english;%0A        mAnswerPrefix = answerPrefix;%0A        mAnswer = answer;%0A        mTier = tier;%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(mEnglish);%0A    %7D%0A%0A    @Override%0A    public Spanned getAnswer() %7B%0A        if (mAnswerPrefix != null) %7B%0A            return Html.fromHtml(%22%3Ci%3E%22 + mAnswerPrefix + %22%3C/i%3E  %22 + mAnswer);%0A        %7D else %7B%0A            return Html.fromHtml(mAnswer);%0A        %7D%0A    %7D%0A%0A    public @Tier int getTier() %7B%0A        return mTier;%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.LANGUAGE;%0A    %7D%0A%0A%0A    protected LanguagesFlashCard(Parcel in) %7B%0A        mId = in.readInt();%0A        mEnglish = in.readString();%0A        mAnswerPrefix = in.readString();%0A        mAnswer = in.readString();%0A        mTier = in.readInt();%0A        mTopic = in.readParcelable(Topic.class.getClassLoader());%0A    %7D%0A%0A    public static final Creator%3CLanguagesFlashCard%3E CREATOR = new Creator%3CLanguagesFlashCard%3E() %7B%0A        @Override%0A        public LanguagesFlashCard createFromParcel(Parcel in) %7B%0A            return new LanguagesFlashCard(in);%0A        %7D%0A%0A        @Override%0A        public LanguagesFlashCard%5B%5D newArray(int size) %7B%0A            return new LanguagesFlashCard%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(mTier);%0A        dest.writeString(mEnglish);%0A        dest.writeString(mAnswerPrefix);%0A        dest.writeString(mAnswer);%0A        dest.writeParcelable(mTopic, flags);%0A    %7D%0A%7D%0A

Add the `LanguagesFlashCard` object