1 package com.moiseum.wolnelektury.connection.models;
3 import com.google.gson.annotations.SerializedName;
6 * Created by Piotr Ostrowski on 23.06.2018.
8 public class ReadingStateModel {
10 private static final String UNKNOWN = "unknown";
11 private static final String NOT_STARTED = "not_started";
12 private static final String READING = "reading";
13 private static final String COMPLETED = "complete";
15 public enum ReadingState {
16 @SerializedName(UNKNOWN)
19 public String getStateName() {
23 @SerializedName(NOT_STARTED)
26 public String getStateName() {
30 @SerializedName(READING)
33 public String getStateName() {
37 @SerializedName(COMPLETED)
40 public String getStateName() {
45 public abstract String getStateName();
48 private ReadingState state;
50 public ReadingStateModel() {
51 this.state = ReadingState.STATE_UNKNOWN;
54 public ReadingState getState() {
58 public void setState(ReadingState state) {