com.hn.im.easemob.comm.body.GroupOwnerTransferBody Maven / Gradle / Ivy
package com.hn.im.easemob.comm.body;
import com.fasterxml.jackson.databind.node.ContainerNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.hn.im.easemob.comm.wrapper.BodyWrapper;
import cn.hutool.core.util.StrUtil;
public class GroupOwnerTransferBody implements BodyWrapper {
private String newOwner;
public GroupOwnerTransferBody(String newOwner) {
this.newOwner = newOwner;
}
public String getNewOwner() {
return newOwner;
}
public ContainerNode> getBody() {
return JsonNodeFactory.instance.objectNode().put("newowner", newOwner);
}
public Boolean validate() {
return StrUtil.isNotBlank(newOwner);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy