content: package com.c9mj.platform.explore.mvp.model.bean;
  
  import android.text.TextUtils;
  
  import com.chad.library.adapter.base.entity.MultiItemEntity;
  
  import java.util.List;
  
  public class ExploreListItemBean implements MultiItemEntity {
  
      public static final int ADS = 1;
      public static final int NORMAL = ADS + 1;
  
      private String postid;
      private boolean hasCover;
      private int hasHead;
      private int votecount;//发帖
      private int replyCount;//跟帖
      private int hasImg;
      private String digest;
      private boolean hasIcon;
      private String docid;
      private String title;//标题
      private int order;
      private int priority;
      private String lmodify;
      private String boardid;
      private String photosetID;
      private int imgsum;
      private String template;
      private String skipID;
      private String alias;
      private String skipType;
      private String cid;
      private int hasAD;
      private String source;//来源
      private String ename;
      private String tname;
      private String imgsrc;//
      private String ptime;
      /**
       * title : 熊黛林深V开衩裙现身  长腿若隐若现
       * tag : photoset
       * imgsrc : http://cms-bucket.nosdn.127.net/dd3058bcdbfd40da9b9452b49af576ea20161024103812.jpeg
       * subtitle :
       * url : 00AJ0003|614303
       */
  
      private List<AdsBean> ads;
      /**
       * imgsrc : http://cms-bucket.nosdn.127.net/0da184f778b747669f8b895be3bf46f020161102133548.jpeg
       */
  
      private List<ImgextraBean> imgextra;
  
      public String getPostid() {
          return postid;
      }
  
      public void setPostid(String postid) {
          this.postid = postid;
      }
  
      public boolean isHasCover() {
          return hasCover;
      }
  
      public void setHasCover(boolean hasCover) {
          this.hasCover = hasCover;
      }
  
      public int getHasHead() {
          return hasHead;
      }
  
      public void setHasHead(int hasHead) {
          this.hasHead = hasHead;
      }
  
      public int getReplyCount() {
          return replyCount;
      }
  
      public void setReplyCount(int replyCount) {
          this.replyCount = replyCount;
      }
  
      public int getHasImg() {
          return hasImg;
      }
  
      public void setHasImg(int hasImg) {
          this.hasImg = hasImg;
      }
  
      public String getDigest() {
          return digest;
      }
  
      public void setDigest(String digest) {
          this.digest = digest;
      }
  
      public boolean isHasIcon() {
          return hasIcon;
      }
  
      public void setHasIcon(boolean hasIcon) {
          this.hasIcon = hasIcon;
      }
  
      public String getDocid() {
          return docid;
      }
  
      public void setDocid(String docid) {
          this.docid = docid;
      }
  
      public String getTitle() {
          return title;
      }
  
      public void setTitle(String title) {
          this.title = title;
      }
  
      public int getOrder() {
          return order;
      }
  
      public void setOrder(int order) {
          this.order = order;
      }
  
      public int getPriority() {
          return priority;
      }
  
      public void setPriority(int priority) {
          this.priority = priority;
      }
  
      public String getLmodify() {
          return lmodify;
      }
  
      public void setLmodify(String lmodify) {
          this.lmodify = lmodify;
      }
  
      public String getBoardid() {
          return boardid;
      }
  
      public void setBoardid(String boardid) {
          this.boardid = boardid;
      }
  
      public String getPhotosetID() {
          return photosetID;
      }
  
      public void setPhotosetID(String photosetID) {
          this.photosetID = photosetID;
      }
  
      public int getImgsum() {
          return imgsum;
      }
  
      public void setImgsum(int imgsum) {
          this.imgsum = imgsum;
      }
  
      public String getTemplate() {
          return template;
      }
  
      public void setTemplate(String template) {
          this.template = template;
      }
  
      public int getVotecount() {
          return votecount;
      }
  
      public void setVotecount(int votecount) {
          this.votecount = votecount;
      }
  
      public String getSkipID() {
          return skipID;
      }
  
      public void setSkipID(String skipID) {
          this.skipID = skipID;
      }
  
      public String getAlias() {
          return alias;
      }
  
      public void setAlias(String alias) {
          this.alias = alias;
      }
  
      public String getSkipType() {
          return skipType;
      }
  
      public void setSkipType(String skipType) {
          this.skipType = skipType;
      }
  
      public String getCid() {
          return cid;
      }
  
      public void setCid(String cid) {
          this.cid = cid;
      }
  
      public int getHasAD() {
          return hasAD;
      }
  
      public void setHasAD(int hasAD) {
          this.hasAD = hasAD;
      }
  
      public String getSource() {
          return source;
      }
  
      public void setSource(String source) {
          this.source = source;
      }
  
      public String getEname() {
          return ename;
      }
  
      public void setEname(String ename) {
          this.ename = ename;
      }
  
      public String getTname() {
          return tname;
      }
  
      public void setTname(String tname) {
          this.tname = tname;
      }
  
      public String getImgsrc() {
          return imgsrc;
      }
  
      public void setImgsrc(String imgsrc) {
          this.imgsrc = imgsrc;
      }
  
      public String getPtime() {
          return ptime;
      }
  
      public void setPtime(String ptime) {
          this.ptime = ptime;
      }
  
      public List<AdsBean> getAds() {
          return ads;
      }
  
      public void setAds(List<AdsBean> ads) {
          this.ads = ads;
      }
  
      public List<ImgextraBean> getImgextra() {
          return imgextra;
      }
  
      public void setImgextra(List<ImgextraBean> imgextra) {
          this.imgextra = imgextra;
      }
  
      @Override
      public int getItemType() {
          return ads == null && !TextUtils.isEmpty(digest) ? NORMAL : ADS;
      }
  
      public static class AdsBean {
          private String title;
          private String tag;
          private String imgsrc;
          private String subtitle;
          private String url;
  
          public String getTitle() {
              return title;
          }
  
          public void setTitle(String title) {
              this.title = title;
          }
  
          public String getTag() {
              return tag;
          }
  
          public void setTag(String tag) {
              this.tag = tag;
          }
  
          public String getImgsrc() {
              return imgsrc;
          }
  
          public void setImgsrc(String imgsrc) {
              this.imgsrc = imgsrc;
          }
  
          public String getSubtitle() {
              return subtitle;
          }
  
          public void setSubtitle(String subtitle) {
              this.subtitle = subtitle;
          }
  
          public String getUrl() {
              return url;
          }
  
          public void setUrl(String url) {
              this.url = url;
          }
      }
  
      public static class ImgextraBean {
          private String imgsrc;
  
          public String getImgsrc() {
              return imgsrc;
          }
  
          public void setImgsrc(String imgsrc) {
              this.imgsrc = imgsrc;
          }
      }
  }