package com.quran.labs.androidquran.ui.translation;
import android.support.annotation.IntDef;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import com.quran.labs.androidquran.common.QuranAyahInfo;
class TranslationViewRow {
@IntDef({ Type.BASMALLAH, Type.SURA_HEADER, Type.QURAN_TEXT, Type.TRANSLATOR,
Type.TRANSLATION_TEXT, Type.VERSE_NUMBER, Type.SPACER })
@interface Type {
int BASMALLAH = 0;
int SURA_HEADER = 1;
int QURAN_TEXT = 2;
int TRANSLATOR = 3;
int TRANSLATION_TEXT = 4;
int VERSE_NUMBER = 5;
int SPACER = 6;
}
@Type final int type;
@NonNull final QuranAyahInfo ayahInfo;
@Nullable final String data;
TranslationViewRow(int type, @NonNull QuranAyahInfo ayahInfo) {
this(type, ayahInfo, null);
}
TranslationViewRow(int type, @NonNull QuranAyahInfo ayahInfo, @Nullable String data) {
this.type = type;
this.ayahInfo = ayahInfo;
this.data = data;
}
}