From 05476bb6783f74ef7fe1b5022592d9319e2d039a Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Mon, 6 Dec 2021 09:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=97=A7=E7=9A=84server=20sd?= =?UTF-8?q?k?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/wildfirechat/pojos/OutputGetChannelInfo.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/src/main/java/cn/wildfirechat/pojos/OutputGetChannelInfo.java b/common/src/main/java/cn/wildfirechat/pojos/OutputGetChannelInfo.java index 26a1f3bed..9fb2f8bb3 100755 --- a/common/src/main/java/cn/wildfirechat/pojos/OutputGetChannelInfo.java +++ b/common/src/main/java/cn/wildfirechat/pojos/OutputGetChannelInfo.java @@ -19,6 +19,8 @@ public class OutputGetChannelInfo { private String extra; private String owner; private int state; + //此字段已经废弃,为了兼容旧的SDK版本,以后会移除 + private int status; private long updateDt; private String callback; private int automatic; @@ -104,6 +106,14 @@ public void setAutomatic(int automatic) { this.automatic = automatic; } + public int getStatus() { + return status; + } + + public void setStatus(int status) { + this.status = status; + } + public static OutputGetChannelInfo fromPbInfo(WFCMessage.ChannelInfo channelInfo) { OutputGetChannelInfo out = new OutputGetChannelInfo(); out.automatic = channelInfo.getAutomatic(); @@ -115,6 +125,7 @@ public static OutputGetChannelInfo fromPbInfo(WFCMessage.ChannelInfo channelInfo out.owner = channelInfo.getOwner(); out.portrait = channelInfo.getPortrait(); out.state = channelInfo.getStatus(); + out.status = out.state; out.updateDt = channelInfo.getUpdateDt(); return out; }