/* * This file is part of the Wildfire Chat package. * (c) Heavyrain2012 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package cn.wildfirechat.pojos; import cn.wildfirechat.proto.WFCMessage; public class OutputGetChannelInfo { private String channelId; private String name; private String desc; private String portrait; private String extra; private String owner; private int status; private long updateDt; private String callback; private int automatic; public String getChannelId() { return channelId; } public void setChannelId(String channelId) { this.channelId = channelId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getDesc() { return desc; } public void setDesc(String desc) { this.desc = desc; } public String getPortrait() { return portrait; } public void setPortrait(String portrait) { this.portrait = portrait; } public String getExtra() { return extra; } public void setExtra(String extra) { this.extra = extra; } public String getOwner() { return owner; } public void setOwner(String owner) { this.owner = owner; } public int getStatus() { return status; } public void setStatus(int status) { this.status = status; } public long getUpdateDt() { return updateDt; } public void setUpdateDt(long updateDt) { this.updateDt = updateDt; } public String getCallback() { return callback; } public void setCallback(String callback) { this.callback = callback; } public int getAutomatic() { return automatic; } public void setAutomatic(int automatic) { this.automatic = automatic; } public static OutputGetChannelInfo fromPbInfo(WFCMessage.ChannelInfo channelInfo) { OutputGetChannelInfo out = new OutputGetChannelInfo(); out.automatic = channelInfo.getAutomatic(); out.callback = channelInfo.getCallback(); out.channelId = channelInfo.getTargetId(); out.desc = channelInfo.getDesc(); out.extra = channelInfo.getExtra(); out.name = channelInfo.getName(); out.owner = channelInfo.getOwner(); out.portrait = channelInfo.getPortrait(); out.status = channelInfo.getStatus(); out.updateDt = channelInfo.getUpdateDt(); return out; } }