content: package com.aaron.yespdf.common.bean;
  
  import android.os.Parcel;
  import android.os.Parcelable;
  
  import org.greenrobot.greendao.annotation.Entity;
  import org.greenrobot.greendao.annotation.Generated;
  import org.greenrobot.greendao.annotation.Id;
  import org.greenrobot.greendao.annotation.Unique;
  
  /**
   * @author Aaron aaronzzxup@gmail.com
   */
  @Entity
  public class PDF implements Parcelable {
  
      @Id(autoincrement = true) Long id;
      @Unique String path;
      String dir;
      String name;
      String cover;
      String progress;
      int curPage;
      int totalPage;
      String bookmark;
      long latestRead;
      int position;
      float scaleFactor;
  
      public PDF() {
  
      }
  
      public Long getId() {
          return id;
      }
  
      public String getPath() {
          return path;
      }
  
      public void setPath(String path) {
          this.path = path;
      }
  
      public String getDir() {
          return dir;
      }
  
      public void setDir(String dir) {
          this.dir = dir;
      }
  
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      public String getCover() {
          return cover;
      }
  
      public void setCover(String cover) {
          this.cover = cover;
      }
  
      public String getProgress() {
          return progress;
      }
  
      public void setProgress(String progress) {
          this.progress = progress;
      }
  
      public int getCurPage() {
          return curPage;
      }
  
      public void setCurPage(int curPage) {
          this.curPage = curPage;
      }
  
      public int getTotalPage() {
          return totalPage;
      }
  
      public void setTotalPage(int totalPage) {
          this.totalPage = totalPage;
      }
  
      public String getBookmark() {
          return bookmark;
      }
  
      public void setBookmark(String bookmark) {
          this.bookmark = bookmark;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public long getLatestRead() {
          return latestRead;
      }
  
      public void setLatestRead(long latestRead) {
          this.latestRead = latestRead;
      }
  
      public int getPosition() {
          return position;
      }
  
      public void setPosition(int position) {
          this.position = position;
      }
  
      public float getScaleFactor() {
          return scaleFactor;
      }
  
      public void setScaleFactor(float scaleFactor) {
          this.scaleFactor = scaleFactor;
      }
  
      @Override
      public String toString() {
          return "PDF{" +
                  "id=" + id +
                  ", path='" + path + '\'' +
                  ", dir='" + dir + '\'' +
                  ", name='" + name + '\'' +
                  ", cover='" + cover + '\'' +
                  ", progress='" + progress + '\'' +
                  ", curPage=" + curPage +
                  ", totalPage=" + totalPage +
                  ", bookmark='" + bookmark + '\'' +
                  ", latestRead=" + latestRead +
                  ", position=" + position +
                  ", scaleFactor=" + scaleFactor +
                  '}';
      }
  
      @Override
      public int describeContents() {
          return 0;
      }
  
      @Override
      public void writeToParcel(Parcel dest, int flags) {
          dest.writeValue(this.id);
          dest.writeString(this.path);
          dest.writeString(this.dir);
          dest.writeString(this.name);
          dest.writeString(this.cover);
          dest.writeString(this.progress);
          dest.writeInt(this.curPage);
          dest.writeInt(this.totalPage);
          dest.writeString(this.bookmark);
          dest.writeLong(this.latestRead);
          dest.writeInt(this.position);
          dest.writeFloat(this.scaleFactor);
      }
  
      protected PDF(Parcel in) {
          this.id = (Long) in.readValue(Long.class.getClassLoader());
          this.path = in.readString();
          this.dir = in.readString();
          this.name = in.readString();
          this.cover = in.readString();
          this.progress = in.readString();
          this.curPage = in.readInt();
          this.totalPage = in.readInt();
          this.bookmark = in.readString();
          this.latestRead = in.readLong();
          this.position = in.readInt();
          this.scaleFactor = in.readFloat();
      }
  
      @Generated(hash = 68430817)
      public PDF(Long id, String path, String dir, String name, String cover,
                 String progress, int curPage, int totalPage, String bookmark,
                 long latestRead, int position, float scaleFactor) {
          this.id = id;
          this.path = path;
          this.dir = dir;
          this.name = name;
          this.cover = cover;
          this.progress = progress;
          this.curPage = curPage;
          this.totalPage = totalPage;
          this.bookmark = bookmark;
          this.latestRead = latestRead;
          this.position = position;
          this.scaleFactor = scaleFactor;
      }
  
      public static final Creator<PDF> CREATOR = new Creator<PDF>() {
          @Override
          public PDF createFromParcel(Parcel source) {
              return new PDF(source);
          }
  
          @Override
          public PDF[] newArray(int size) {
              return new PDF[size];
          }
      };
  }
  