SMSLogs.java 6.05 KB
package com.model;

import java.util.Date;

/**
 * Created by yoho on 2016/11/29.
 */
public class SMSLogs {

    /**
     * 日志表主键ID
     */
    private Integer id;

    /**
     * 模板ID
     */
    private Integer templateId;

    /**
     * 模板名称
     */
    private String templateName;

    /**
     * ip地址
     */
    private String ip;

    /**
     * 国家或者地区码
     */
    private String area;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 管理状态:0-初始状态,1-发送成功,2-模版不存在,3-短信服务商不存在,4-发送失败
     */
    private Integer manageStatus;

    /**
     * 第一家短信运营商ID
     */
    private Integer firstService;

    /**
     * 第一家短信运营商返回结果
     */
    private String firstServiceReuslt;

    /**
     * 第一家短信运营商发送状态
     */
    private Integer firstServiceStatus;

    /**
     * 第二家短信运营商ID
     */
    private Integer secondService;

    /**
     * 第二家短信运营商返回结果
     */
    private String secondServiceResult;

    /**
     * 第二家短信运营商发送状态 0-尚未发送, 1-发送成功, 2-发送失败
     */
    private Integer secondServiceStatus;

    /**
     * 短信发送内容
     */
    private String content;

    /**
     * 扩展字段1
     */
    private String ext1;

    /**
     * 扩展字段2
     */
    private String ext2;

    /**
     * 扩展字段3
     */
    private String ext3;

    public SMSLogs(){

    }

    public SMSLogs(Integer id, Integer templateId, String templateName, Date createTime, Date updateTime, Integer manageStatus, String content) {
        this.id = id;
        this.templateId = templateId;
        this.templateName = templateName;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.manageStatus = manageStatus;
        this.content = content;
    }

    public SMSLogs(Integer templateId, String templateName, String ip, String area, String mobile, Integer manageStatus, String content) {
        this.templateId = templateId;
        this.templateName = templateName;
        this.ip = ip;
        this.area = area;
        this.mobile = mobile;
        this.manageStatus = manageStatus;
        this.content = content;
    }

    public SMSLogs(int templateId, String templateName, Date createTime, Date updateTime, int manageStatus){
        this.templateId = templateId;
        this.templateName = templateName;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.manageStatus = manageStatus;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTemplateId() {
        return templateId;
    }

    public void setTemplateId(Integer templateId) {
        this.templateId = templateId;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName == null ? null : templateName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getManageStatus() {
        return manageStatus;
    }

    public void setManageStatus(Integer manageStatus) {
        this.manageStatus = manageStatus;
    }

    public Integer getFirstService() {
        return firstService;
    }

    public void setFirstService(Integer firstService) {
        this.firstService = firstService;
    }

    public String getFirstServiceReuslt() {
        return firstServiceReuslt;
    }

    public void setFirstServiceReuslt(String firstServiceReuslt) {
        this.firstServiceReuslt = firstServiceReuslt == null ? null : firstServiceReuslt.trim();
    }

    public Integer getFirstServiceStatus() {
        return firstServiceStatus;
    }

    public void setFirstServiceStatus(Integer firstServiceStatus) {
        this.firstServiceStatus = firstServiceStatus;
    }

    public Integer getSecondService() {
        return secondService;
    }

    public void setSecondService(Integer secondService) {
        this.secondService = secondService;
    }

    public String getSecondServiceResult() {
        return secondServiceResult;
    }

    public void setSecondServiceResult(String secondServiceResult) {
        this.secondServiceResult = secondServiceResult == null ? null : secondServiceResult.trim();
    }

    public Integer getSecondServiceStatus() {
        return secondServiceStatus;
    }

    public void setSecondServiceStatus(Integer secondServiceStatus) {
        this.secondServiceStatus = secondServiceStatus;
    }

    public String getExt1() {
        return ext1;
    }

    public void setExt1(String ext1) {
        this.ext1 = ext1 == null ? null : ext1.trim();
    }

    public String getExt2() {
        return ext2;
    }

    public void setExt2(String ext2) {
        this.ext2 = ext2 == null ? null : ext2.trim();
    }

    public String getExt3() {
        return ext3;
    }

    public void setExt3(String ext3) {
        this.ext3 = ext3 == null ? null : ext3.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}