/*
 * This file is generated by jOOQ.
 */
package jj.tech.paolu.repository.jooq.tables.pojos;


import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * This class is generated by jOOQ.
 */
@SuppressWarnings({ "all", "unchecked", "rawtypes", "this-escape" })
public class HistoryG24 implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    private String newissue;
    private String issue;
    private String ball;
    private Integer closetime;
    private Integer opentime;
    private LocalDateTime addtime;
    private String gameid;

    public HistoryG24() {}

    public HistoryG24(HistoryG24 value) {
        this.id = value.id;
        this.newissue = value.newissue;
        this.issue = value.issue;
        this.ball = value.ball;
        this.closetime = value.closetime;
        this.opentime = value.opentime;
        this.addtime = value.addtime;
        this.gameid = value.gameid;
    }

    public HistoryG24(
        String id,
        String newissue,
        String issue,
        String ball,
        Integer closetime,
        Integer opentime,
        LocalDateTime addtime,
        String gameid
    ) {
        this.id = id;
        this.newissue = newissue;
        this.issue = issue;
        this.ball = ball;
        this.closetime = closetime;
        this.opentime = opentime;
        this.addtime = addtime;
        this.gameid = gameid;
    }

    /**
     * Getter for <code>yx.history_g24.id</code>.
     */
    public String getId() {
        return this.id;
    }

    /**
     * Setter for <code>yx.history_g24.id</code>.
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * Getter for <code>yx.history_g24.newIssue</code>. 当前期号
     */
    public String getNewissue() {
        return this.newissue;
    }

    /**
     * Setter for <code>yx.history_g24.newIssue</code>. 当前期号
     */
    public void setNewissue(String newissue) {
        this.newissue = newissue;
    }

    /**
     * Getter for <code>yx.history_g24.issue</code>. 下一期号
     */
    public String getIssue() {
        return this.issue;
    }

    /**
     * Setter for <code>yx.history_g24.issue</code>. 下一期号
     */
    public void setIssue(String issue) {
        this.issue = issue;
    }

    /**
     * Getter for <code>yx.history_g24.ball</code>. 开奖号码
     */
    public String getBall() {
        return this.ball;
    }

    /**
     * Setter for <code>yx.history_g24.ball</code>. 开奖号码
     */
    public void setBall(String ball) {
        this.ball = ball;
    }

    /**
     * Getter for <code>yx.history_g24.closeTime</code>. 关闭时间
     */
    public Integer getClosetime() {
        return this.closetime;
    }

    /**
     * Setter for <code>yx.history_g24.closeTime</code>. 关闭时间
     */
    public void setClosetime(Integer closetime) {
        this.closetime = closetime;
    }

    /**
     * Getter for <code>yx.history_g24.openTime</code>. 开奖时间
     */
    public Integer getOpentime() {
        return this.opentime;
    }

    /**
     * Setter for <code>yx.history_g24.openTime</code>. 开奖时间
     */
    public void setOpentime(Integer opentime) {
        this.opentime = opentime;
    }

    /**
     * Getter for <code>yx.history_g24.addTime</code>. 提交时间
     */
    public LocalDateTime getAddtime() {
        return this.addtime;
    }

    /**
     * Setter for <code>yx.history_g24.addTime</code>. 提交时间
     */
    public void setAddtime(LocalDateTime addtime) {
        this.addtime = addtime;
    }

    /**
     * Getter for <code>yx.history_g24.gameID</code>. 游戏ID
     */
    public String getGameid() {
        return this.gameid;
    }

    /**
     * Setter for <code>yx.history_g24.gameID</code>. 游戏ID
     */
    public void setGameid(String gameid) {
        this.gameid = gameid;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final HistoryG24 other = (HistoryG24) obj;
        if (this.id == null) {
            if (other.id != null)
                return false;
        }
        else if (!this.id.equals(other.id))
            return false;
        if (this.newissue == null) {
            if (other.newissue != null)
                return false;
        }
        else if (!this.newissue.equals(other.newissue))
            return false;
        if (this.issue == null) {
            if (other.issue != null)
                return false;
        }
        else if (!this.issue.equals(other.issue))
            return false;
        if (this.ball == null) {
            if (other.ball != null)
                return false;
        }
        else if (!this.ball.equals(other.ball))
            return false;
        if (this.closetime == null) {
            if (other.closetime != null)
                return false;
        }
        else if (!this.closetime.equals(other.closetime))
            return false;
        if (this.opentime == null) {
            if (other.opentime != null)
                return false;
        }
        else if (!this.opentime.equals(other.opentime))
            return false;
        if (this.addtime == null) {
            if (other.addtime != null)
                return false;
        }
        else if (!this.addtime.equals(other.addtime))
            return false;
        if (this.gameid == null) {
            if (other.gameid != null)
                return false;
        }
        else if (!this.gameid.equals(other.gameid))
            return false;
        return true;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((this.id == null) ? 0 : this.id.hashCode());
        result = prime * result + ((this.newissue == null) ? 0 : this.newissue.hashCode());
        result = prime * result + ((this.issue == null) ? 0 : this.issue.hashCode());
        result = prime * result + ((this.ball == null) ? 0 : this.ball.hashCode());
        result = prime * result + ((this.closetime == null) ? 0 : this.closetime.hashCode());
        result = prime * result + ((this.opentime == null) ? 0 : this.opentime.hashCode());
        result = prime * result + ((this.addtime == null) ? 0 : this.addtime.hashCode());
        result = prime * result + ((this.gameid == null) ? 0 : this.gameid.hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("HistoryG24 (");

        sb.append(id);
        sb.append(", ").append(newissue);
        sb.append(", ").append(issue);
        sb.append(", ").append(ball);
        sb.append(", ").append(closetime);
        sb.append(", ").append(opentime);
        sb.append(", ").append(addtime);
        sb.append(", ").append(gameid);

        sb.append(")");
        return sb.toString();
    }
}
