content: package info.meizi.bean;
  
  import java.io.Serializable;
  import java.util.List;
  
  import io.realm.Realm;
  import io.realm.RealmObject;
  import io.realm.RealmResults;
  
  /**
   * Created by Mr_Wrong on 15/9/22.
   */
  public class Content extends RealmObject implements Serializable {
      private int imagewidth;
      private int imageheight;
      private String url;
      private int order;
      private String groupid;
  
  
      public static List<Content> all(Realm realm,String groupid){
          return realm.where(Content.class)
                  .equalTo("groupid", groupid)
                  .findAllSorted("order", RealmResults.SORT_ORDER_DESCENDING);
      }
  
      public String getGroupid() {
          return groupid;
      }
  
      public void setGroupid(String groupid) {
          this.groupid = groupid;
      }
  
  
      public int getOrder() {
          return order;
      }
  
      public void setOrder(int order) {
          this.order = order;
      }
  
  
      public int getImageheight() {
          return imageheight;
      }
  
      public void setImageheight(int imageheight) {
          this.imageheight = imageheight;
      }
  
      public int getImagewidth() {
          return imagewidth;
      }
  
      public void setImagewidth(int imagewidth) {
          this.imagewidth = imagewidth;
      }
  
  
      public String getUrl() {
          return url;
      }
  
  
      public void setUrl(String url) {
          this.url = url;
      }
  
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      private String title;
  
  
  }
  