package track.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.util.Date;

@Entity
public class Campaign {

	private Long id;
	private Long app;
	private String os;
	private String type;
	private Long channel;
	private String channelid;

	private String name;
	private String campaignGroup;
	private String callback;
	private String url;
	private String surl;
	private Date pubDate = new Date();
	private Integer addParam;
	private String campaignpackid;
	
	private String specialKeys;
	//创建账号，或子账号或母账号
	private Long account;

	private String advertiserid;

	private String bundleid;
	
	private boolean awssuccess = false;

	public Campaign() {
		super();
	}

	public String getChannelid() {
		return channelid;
	}

	public void setChannelid(String channelid) {
		this.channelid = channelid;
	}

	public Long getApp() {
		return app;
	}

	public String getCallback() {
		return callback;
	}

/*	public Long getCampaignGroup() {
		return campaignGroup;
	}*/

	public Long getChannel() {
		return channel;
	}

	@Id
	@GeneratedValue
	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public Date getPubDate() {
		return pubDate;
	}

	public String getSurl() {
		return surl;
	}

	public String getType() {
		return type;
	}

	public String getUrl() {
		return url;
	}

	public void setApp(Long app) {
		this.app = app;
	}

	public void setCallback(String callback) {
		this.callback = callback;
	}

/*	public void setCampaignGroup(Long campaignGroup) {
		this.campaignGroup = campaignGroup;
	}*/

	public void setChannel(Long channel) {
		this.channel = channel;
	}

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

	public void setName(String name) {
		this.name = name;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public void setSurl(String surl) {
		this.surl = surl;
	}

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

	public void setUrl(String url) {
		this.url = url;
	}

	public String getSpecialKeys() {
		return specialKeys;
	}

	public void setSpecialKeys(String specialKeys) {
		this.specialKeys = specialKeys;
	}

	public Integer getAddParam() {
		return addParam;
	}

	public void setAddParam(Integer addParam) {
		this.addParam = addParam;
	}

	public Long getAccount() {
		return account;
	}

	public void setAccount(Long account) {
		this.account = account;
	}

	public String getOs() {
		return os;
	}

	public void setOs(String os) {
		this.os = os;
	}

	public boolean isAwssuccess() {
		return awssuccess;
	}

	public void setAwssuccess(boolean awssuccess) {
		this.awssuccess = awssuccess;
	}

	public String getCampaignpackid() {
		return campaignpackid;
	}

	public void setCampaignpackid(String campaignpackid) {
		this.campaignpackid = campaignpackid;
	}

	public String getAdvertiserid() {
		return advertiserid;
	}

	public void setAdvertiserid(String advertiserid) {
		this.advertiserid = advertiserid;
	}

	public String getBundleid() {
		return bundleid;
	}

	public void setBundleid(String bundleid) {
		this.bundleid = bundleid;
	}

	public String getCampaignGroup() {
		return campaignGroup;
	}

	public void setCampaignGroup(String campaignGroup) {
		this.campaignGroup = campaignGroup;
	}

	@Override
	public String toString() {
		return "Campaign{" +
				"id=" + id +
				", app=" + app +
				", os='" + os + '\'' +
				", type='" + type + '\'' +
				", channel=" + channel +
				", channelid='" + channelid + '\'' +
				", name='" + name + '\'' +
				", campaignGroup=" + campaignGroup +
				", callback='" + callback + '\'' +
				", url='" + url + '\'' +
				", surl='" + surl + '\'' +
				", pubDate=" + pubDate +
				", addParam=" + addParam +
				", campaignpackid='" + campaignpackid + '\'' +
				", specialKeys='" + specialKeys + '\'' +
				", account=" + account +
				", advertiserid='" + advertiserid + '\'' +
				", bundleid='" + bundleid + '\'' +
				", awssuccess=" + awssuccess +
				'}';
	}
}
