1 package com.folioreader.model.media_overlay;
3 import android.os.Parcel;
4 import android.os.Parcelable;
7 * @author gautam chibde on 13/6/17.
10 public class OverlayItems implements Parcelable {
13 private String classType;
14 private String spineHref;
17 public OverlayItems() {
20 public OverlayItems(String id, String tag) {
25 public OverlayItems(String id, String tag, String spineHref) {
28 this.spineHref = spineHref;
31 public OverlayItems(String id, String tag, String spineHref, String text) {
34 this.spineHref = spineHref;
38 protected OverlayItems(Parcel in) {
40 tag = in.readString();
41 classType = in.readString();
42 spineHref = in.readString();
43 text = in.readString();
46 public static final Creator<OverlayItems> CREATOR = new Creator<OverlayItems>() {
48 public OverlayItems createFromParcel(Parcel in) {
49 return new OverlayItems(in);
53 public OverlayItems[] newArray(int size) {
54 return new OverlayItems[size];
59 public String toString() {
60 return "OverlayItems{" +
62 ", tag='" + tag + '\'' +
63 ", classType='" + classType + '\'' +
64 ", spineHref='" + spineHref + '\'' +
65 ", text='" + text + '\'' +
69 public String getId() {
73 public String getTag() {
77 public String getSpineHref() {
81 public String getText() {
85 public void setText(String text) {
89 public void setSpineHref(String spineHref) {
90 this.spineHref = spineHref;
94 public int describeContents() {
99 public void writeToParcel(Parcel dest, int flags) {
100 dest.writeString(id);
101 dest.writeString(tag);
102 dest.writeString(classType);
103 dest.writeString(spineHref);
104 dest.writeString(text);