AppPatch.java 4.54 KB
package com.diligrp.mobsite.man.domain;

import com.diligrp.website.util.domain.BaseDomain;

/**
 * 
 * @ClassName: AppPatch 
 * @Description:
 * @author zhangshirui  
 * @date 2014年8月8日 上午11:34:55
 */
@SuppressWarnings("serial")
public class AppPatch extends BaseDomain{
	
	/**
     * 是否强制升级
     * 1 - 可升级,2 - 强制升级
     */
    public static final Integer FORCE_NO = 2;
    /**
     * 2 - 强制升级
     */
    public static final Integer FORCE_YES = 1;
    
    /**
     * 设备类型
     * 1 - 所有设备,2 - ANDROID,3 - IOS
     */
    public static final Integer DEVICE_ALL = 1;
    /**
     * 2 - ANDROID
     */
    public static final Integer DEVICE_ANDROID= 2;
    /**
     * 3 - IOS
     */
    public static final Integer DEVICE_IOS = 3;
	
	/**
	 * 起始版本安装包地址
	 */
	private String sourceUrl;
	/**
	 * 目标版本安装包地址
	 */
	private String desUrl;
	/**
	 * 补丁版本安装包地址
	 */
	private String patchUrl;
	/**
	 * 目标版本id
	 */
	private Long  versionDesId;
	/**
	 * 目标版本号
	 */
	private String versionDesNo;
	/**
	 * 起始版本id
	 */
	private Long versionSourceId;
	/**
	 * 起始版本号
	 */
	private String versionSourceNo;
	/**
	 * 强制升级标志
	 * 是:1,否:2
	 */
	private Integer  forceFlag;
	/**
	 * 设备类型
	 * 
	 */
	private Integer deviceType;
	/**
	 * 系统类型
	 */
	private String systemType;
	/**
	 * 增量更新描述
	 */
	private String description;
	/**
	 * md5值
	 */
	private String md5;
	/**
	 * 创建者
	 */
	private Long creatorId;
	

	public String getSourceUrl() {
		return sourceUrl;
	}


	public void setSourceUrl(String sourceUrl) {
		this.sourceUrl = sourceUrl;
	}


	public String getDesUrl() {
		return desUrl;
	}


	public void setDesUrl(String desUrl) {
		this.desUrl = desUrl;
	}


	public String getPatchUrl() {
		return patchUrl;
	}


	public void setPatchUrl(String patchUrl) {
		this.patchUrl = patchUrl;
	}


	public Long getVersionDesId() {
		return versionDesId;
	}


	public void setVersionDesId(Long versionDesId) {
		this.versionDesId = versionDesId;
	}


	public String getVersionDesNo() {
		return versionDesNo;
	}


	public void setVersionDesNo(String versionDesNo) {
		this.versionDesNo = versionDesNo;
	}


	public Long getVersionSourceId() {
		return versionSourceId;
	}


	public void setVersionSourceId(Long versionSourceId) {
		this.versionSourceId = versionSourceId;
	}


	public String getVersionSourceNo() {
		return versionSourceNo;
	}


	public void setVersionSourceNo(String versionSourceNo) {
		this.versionSourceNo = versionSourceNo;
	}


	public Integer getForceFlag() {
		return forceFlag;
	}


	public void setForceFlag(Integer forceFlag) {
		this.forceFlag = forceFlag;
	}


	public Integer getDeviceType() {
		return deviceType;
	}


	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}


	public String getSystemType() {
		return systemType;
	}


	public void setSystemType(String systemType) {
		this.systemType = systemType;
	}

	
	public String getDescription() {
		return description;
	}


	public void setDescription(String description) {
		this.description = description;
	}


	public Long getCreatorId() {
		return creatorId;
	}


	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}


	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("AppVersion [sourceUrl=");
		builder.append(sourceUrl);
		builder.append(", desUrl=");
		builder.append(desUrl);
		builder.append(", patchUrl=");
		builder.append(patchUrl);
		builder.append(", versionDesId=");
		builder.append(versionDesId);
		builder.append(", versionDesNo=");
		builder.append(versionDesNo);
		builder.append(", versionSourceId=");
		builder.append(versionSourceId);
		builder.append(", versionSourceNo=");
		builder.append(versionSourceNo);
		builder.append(", forceFlag=");
		builder.append(forceFlag);
		builder.append(", deviceType=");
		builder.append(deviceType);
		builder.append(", systemType=");
		builder.append(systemType);
		builder.append(", description=");
		builder.append(description);
		builder.append(", creatorId=");
		builder.append(creatorId);
		builder.append(", id=");
		builder.append(id);
		builder.append(", created=");
		builder.append(created);
		builder.append(", modified=");
		builder.append(modified);
		builder.append(", yn=");
		builder.append(yn);
		builder.append("]");
		return builder.toString();
	}


    
    public String getMd5() {
        return md5;
    }


    
    public void setMd5(String md5) {
        this.md5 = md5;
    }

}