package com.yutou.jianr_mg.Data;

import androidx.annotation.NonNull;

public class TMod implements  Comparable<TMod>{

	@Override
	public String toString() {
		return "TMod [id=" + id + ", modname=" + modname + ", title=" + title + ", modtype=" + modtype + ", jianrtype="
				+ jianrtype + ", jianrId=" + jianrId + ", info=" + info + ", byid=" + byid + ", byuser=" + byuser
				+ ", overview=" + overview + ", image=" + image + ", icon=" + icon + ", createtime=" + createtime
				+ ", updatetime=" + updatetime + ", modversion=" + modversion + ", gameverid=" + gameverid + ", city="
				+ city + "]";
	}

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modName
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String modname;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.title
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String title;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String modtype;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.jianrType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String jianrtype;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.jianr_id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer jianrId;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.info
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String info;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.byId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer byid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.byUser
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String byuser;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.overview
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String overview;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.image
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String image;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.icon
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private String icon;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.createTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Long createtime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.updateTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Long updatetime=-1l;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.modVersion
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer modversion;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.gameVerId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer gameverid;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.city
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer city;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_mod.reMod
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	private Integer remod;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.id
	 * @return  the value of t_mod.id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.id
	 * @param id  the value for t_mod.id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modName
	 * @return  the value of t_mod.modName
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getModname() {
		return modname;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modName
	 * @param modname  the value for t_mod.modName
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setModname(String modname) {
		this.modname = modname;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.title
	 * @return  the value of t_mod.title
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.title
	 * @param title  the value for t_mod.title
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modType
	 * @return  the value of t_mod.modType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getModtype() {
		return modtype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modType
	 * @param modtype  the value for t_mod.modType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setModtype(String modtype) {
		this.modtype = modtype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.jianrType
	 * @return  the value of t_mod.jianrType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getJianrtype() {
		return jianrtype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.jianrType
	 * @param jianrtype  the value for t_mod.jianrType
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setJianrtype(String jianrtype) {
		this.jianrtype = jianrtype;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.jianr_id
	 * @return  the value of t_mod.jianr_id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getJianrId() {
		return jianrId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.jianr_id
	 * @param jianrId  the value for t_mod.jianr_id
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setJianrId(Integer jianrId) {
		this.jianrId = jianrId;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.info
	 * @return  the value of t_mod.info
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getInfo() {
		return info;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.info
	 * @param info  the value for t_mod.info
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setInfo(String info) {
		this.info = info;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.byId
	 * @return  the value of t_mod.byId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getByid() {
		return byid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.byId
	 * @param byid  the value for t_mod.byId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setByid(Integer byid) {
		this.byid = byid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.byUser
	 * @return  the value of t_mod.byUser
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getByuser() {
		return byuser;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.byUser
	 * @param byuser  the value for t_mod.byUser
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setByuser(String byuser) {
		this.byuser = byuser;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.overview
	 * @return  the value of t_mod.overview
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getOverview() {
		return overview;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.overview
	 * @param overview  the value for t_mod.overview
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setOverview(String overview) {
		this.overview = overview;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.image
	 * @return  the value of t_mod.image
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getImage() {
		return image;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.image
	 * @param image  the value for t_mod.image
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setImage(String image) {
		this.image = image;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.icon
	 * @return  the value of t_mod.icon
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.icon
	 * @param icon  the value for t_mod.icon
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.createTime
	 * @return  the value of t_mod.createTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Long getCreatetime() {
		return createtime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.createTime
	 * @param createtime  the value for t_mod.createTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setCreatetime(Long createtime) {
		this.createtime = createtime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.updateTime
	 * @return  the value of t_mod.updateTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Long getUpdatetime() {
		return updatetime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.updateTime
	 * @param updatetime  the value for t_mod.updateTime
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setUpdatetime(Long updatetime) {
		this.updatetime = updatetime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.modVersion
	 * @return  the value of t_mod.modVersion
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getModversion() {
		return modversion;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.modVersion
	 * @param modversion  the value for t_mod.modVersion
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setModversion(Integer modversion) {
		this.modversion = modversion;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.gameVerId
	 * @return  the value of t_mod.gameVerId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getGameverid() {
		return gameverid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.gameVerId
	 * @param gameverid  the value for t_mod.gameVerId
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setGameverid(Integer gameverid) {
		this.gameverid = gameverid;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.city
	 * @return  the value of t_mod.city
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getCity() {
		return city;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.city
	 * @param city  the value for t_mod.city
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setCity(Integer city) {
		this.city = city;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_mod.reMod
	 * @return  the value of t_mod.reMod
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public Integer getRemod() {
		return remod;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_mod.reMod
	 * @param remod  the value for t_mod.reMod
	 * @mbg.generated  Tue Feb 06 15:48:54 CST 2018
	 */
	public void setRemod(Integer remod) {
		this.remod = remod;
	}

	@Override
	public int compareTo(@NonNull TMod tMod) {
		if(this.updatetime==-1&&tMod.updatetime==-1) {
			return tMod.getCreatetime().compareTo(this.createtime);
		}else if(this.updatetime==-1){
			return  tMod.updatetime.compareTo(this.createtime);
		}else if(tMod.updatetime==-1){
			return tMod.createtime.compareTo(this.updatetime);
		}
		return tMod.getUpdatetime().compareTo(this.updatetime);
	}
}