use of com.fanap.podchat.mainmodel.ChatMessage in project pod-chat-android-sdk by FanapSoft.
the class ContactManager method createRemoveContactRequest.
public static String createRemoveContactRequest(String uniqueId, String typeCode, List<String> userIds) {
String content = App.getGson().toJson(userIds);
AsyncMessage message = new ChatMessage();
message.setType(ChatMessageType.Constants.REMOVE_CONTACT);
message.setToken(CoreConfig.token);
message.setTokenIssuer(CoreConfig.tokenIssuer);
message.setTypeCode(typeCode != null ? typeCode : CoreConfig.typeCode);
message.setContent(content);
message.setUniqueId(uniqueId);
return App.getGson().toJson(message);
}
Aggregations