content: package org.amahi.anywhere.db.entities;
  
  import androidx.room.Entity;
  import androidx.annotation.IntDef;
  import androidx.annotation.NonNull;
  
  @Entity(tableName = "offline_table", primaryKeys = {"share", "path", "name"})
  public class OfflineFile {
  
      public static final int DOWNLOADING = 1;
      public static final int DOWNLOADED = 2;
      public static final int OUT_OF_DATE = 3;
  
      @NonNull
      private String path;
      @NonNull
      private String name;
      @NonNull
      private String share;
      private String mime;
      private String fileUri;
      private long timeStamp;
      @Types
      private int state;
      private long downloadId;
  
      public OfflineFile(@NonNull String share, @NonNull String path, @NonNull String name) {
          this.share = share;
          this.path = path;
          this.name = name;
      }
  
      @NonNull
      public String getPath() {
          return path;
      }
  
      public void setPath(@NonNull String path) {
          this.path = path;
      }
  
      @NonNull
      public String getName() {
          return name;
      }
  
      public void setName(@NonNull String name) {
          this.name = name;
      }
  
      @NonNull
      public String getShare() {
          return share;
      }
  
      public void setShare(@NonNull String share) {
          this.share = share;
      }
  
      public String getMime() {
          return mime;
      }
  
      public void setMime(String mime) {
          this.mime = mime;
      }
  
      public String getFileUri() {
          return fileUri;
      }
  
      public void setFileUri(String fileUri) {
          this.fileUri = fileUri;
      }
  
      public long getTimeStamp() {
          return timeStamp;
      }
  
      public void setTimeStamp(long timeStamp) {
          this.timeStamp = timeStamp;
      }
  
      public int getState() {
          return state;
      }
  
      public void setState(int state) {
          this.state = state;
      }
  
      public long getDownloadId() {
          return downloadId;
      }
  
      public void setDownloadId(long downloadId) {
          this.downloadId = downloadId;
      }
  
      @IntDef({DOWNLOADING, DOWNLOADED, OUT_OF_DATE})
      public @interface Types {
      }
  }
  