use of com.fanap.podchat.requestobject.RequestUploadImage in project pod-chat-android-sdk by FanapSoft.
the class ChatActivity method createThreadWithMessage.
private void createThreadWithMessage() {
List<Invitee> invite = new ArrayList<>();
invite.add(new Invitee(1151568, InviteType.Constants.TO_BE_USER_CONTACT_ID));
invite.add(new Invitee(1512305, InviteType.Constants.TO_BE_USER_CONTACT_ID));
RequestUploadImage requestUploadThreadImageImage = new RequestUploadImage.Builder(ChatActivity.this, getUri()).setwC(140).sethC(140).build();
RequestThreadInnerMessage message = new RequestThreadInnerMessage.Builder("Hi at " + new Date().toString(), TextMessageType.Constants.TEXT).build();
RequestCreateThread requestCreateThread = new RequestCreateThread.Builder(ThreadType.Constants.OWNER_GROUP, invite).message(message).setUploadThreadImageRequest(requestUploadThreadImageImage).build();
presenter.createThreadWithMessage(requestCreateThread);
}
Aggregations