Live.java 4.43 KB
package com.bjivt.entity.showtime;

import java.util.Date;

import com.bjivt.util.Base64Utils;

public class Live {
    private Integer id;

    private String name;

    private Integer userId;

    private String recordAddr;

    private String chatroomAddr;

    private String videoAddr;

    private Integer audienceTotalNum;

    private Integer audienceNowNum;

    private Long heartbeat;

    private Integer likeNum;

    private String tag;

    private Short isAllowLocation;

    private Integer type;

    private String location;

    private Date createTime;
    
    private Date endedTime;
    
    private Integer recommend;

    private Short active;

    private String thumbnail;
    
    private String aliaName;
    
    private String startTime;
	private String endTime;

    public Integer getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getRecordAddr() {
        return recordAddr;
    }

    public void setRecordAddr(String recordAddr) {
        this.recordAddr = recordAddr == null ? null : recordAddr.trim();
    }

    public String getChatroomAddr() {
        return chatroomAddr;
    }

    public void setChatroomAddr(String chatroomAddr) {
        this.chatroomAddr = chatroomAddr == null ? null : chatroomAddr.trim();
    }

    public String getVideoAddr() {
        return videoAddr;
    }

    public void setVideoAddr(String videoAddr) {
        this.videoAddr = videoAddr == null ? null : videoAddr.trim();
    }

    public Integer getAudienceTotalNum() {
        return audienceTotalNum;
    }

    public void setAudienceTotalNum(Integer audienceTotalNum) {
        this.audienceTotalNum = audienceTotalNum;
    }

    public Integer getAudienceNowNum() {
        return audienceNowNum;
    }

    public void setAudienceNowNum(Integer audienceNowNum) {
        this.audienceNowNum = audienceNowNum;
    }

    public Long getHeartbeat() {
        return heartbeat;
    }

    public void setHeartbeat(Long heartbeat) {
        this.heartbeat = heartbeat;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag == null ? null : tag.trim();
    }

    public Short getIsAllowLocation() {
        return isAllowLocation;
    }

    public void setIsAllowLocation(Short isAllowLocation) {
        this.isAllowLocation = isAllowLocation;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location == null ? null : location.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

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

    public void setEndedTime(Date endedTime) {
        this.endedTime = endedTime;
    }

    public Integer getRecommend() {
        return recommend;
    }

    public void setRecommend(Integer recommend) {
        this.recommend = recommend;
    }

    public Short getActive() {
        return active;
    }

    public void setActive(Short active) {
        this.active = active;
    }

	public String getThumbnail() {
		return thumbnail;
	}

	public void setThumbnail(String thumbnail) {
		this.thumbnail = thumbnail;
	}

	public String getAliaName() {
    	try {
    		if(name != null)
    			aliaName = new String(Base64Utils.decode(name),"UTF-8");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return aliaName;
	}

	public void setAliaName(String aliaName) {
		this.aliaName = aliaName;
	}
	
	public String getStartTime() {
		return startTime;
	}
	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	public String getEndTime() {
		return endTime;
	}
	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
}