CarrotChat v2.8.60.240131版本的 MD5 值为:2baf8b9f31830b86b5c5a85ae6b47e05
以下内容为反编译后的 MUCMemberAliasUpdate.java 源代码,内容仅作参考
package ak.im.module;
import com.asim.protobuf.Akeychat;
import org.jivesoftware.smack.packet.ExtensionElement;
public class MUCMemberAliasUpdate implements ExtensionElement {
public static String ELEMENT = "x";
public static String NAME_SPACE = "http://jabber.org/protocol/muc#memberinfoupdate";
private static final String TAG = "MUCMemberAliasUpdate";
private MemberInfo mMemberInfo;
public static class MemberInfo {
public String data;
Akeychat.MucRoomUpdatePresenceMessage updateMessage;
public MemberInfo(String str) {
try {
this.data = str;
this.updateMessage = Akeychat.MucRoomUpdatePresenceMessage.parseFrom(ak.comm.d.decode(str));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public Akeychat.MucRoomUpdatePresenceMessage getUpdateMessage() {
return this.updateMessage;
}
}
@Override
public String getElementName() {
return ELEMENT;
}
public MemberInfo getMemberInfo() {
return this.mMemberInfo;
}
@Override
public String getNamespace() {
return NAME_SPACE;
}
public void setMemberInfo(MemberInfo memberInfo) {
this.mMemberInfo = memberInfo;
}
@Override
public String toXML() {
StringBuilder sb = new StringBuilder();
sb.append("<");
sb.append(getElementName());
sb.append(" xmlns=\"");
sb.append(getNamespace());
sb.append("\">");
if (getMemberInfo() != null) {
sb.append("<memberinfoupdate>");
sb.append(getMemberInfo().data);
sb.append("</memberinfoupdate>");
}
sb.append("</");
sb.append(getElementName());
sb.append(">");
return sb.toString();
}
}