diff --git a/app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt b/app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt index 088e250c..91179ded 100644 --- a/app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt +++ b/app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt @@ -7,6 +7,18 @@ import net.pokeranalytics.android.ui.fragment.components.bottomsheet.BottomSheet interface RowRepresentable { + + /** + * The resource identifier of the localized title + */ + val resId: Int? + get() { + return null + } + + /** + * The localized title of the row + */ fun localizedTitle(context: Context): String { this.resId?.let { return context.getString(it) @@ -14,16 +26,17 @@ interface RowRepresentable { return "LOCALISATION NOT FOUND" } - val resId: Int? - get() { - return null - } - + /** + * The type of view associated with the row + */ val viewType: Int get() { return 0 } + /** + * The type of bottom sheet displayed when the row is clicked on + */ val bottomSheetType: BottomSheetType get() { return BottomSheetType.NONE