Search in sources :

Example 1 with RequestThreadInfo

use of com.fanap.podchat.requestobject.RequestThreadInfo in project pod-chat-android-sdk by FanapSoft.

the class ChatActivity method updateThreadInfo.

private void updateThreadInfo() {
    // RequestUploadImage requestUploadImage =
    // new RequestUploadImage.Builder(ChatActivity.this, getUri())
    // .sethC(140)
    // .setwC(140)
    // .setUserGroupHashCode(TEST_THREAD_HASH)
    // .build();
    RequestThreadInfo request = new RequestThreadInfo.Builder(TEST_THREAD_ID).name(// required. if not set, thread name will set to null
    "Chat sample thread").image(// required. if not set, thread image will set to null
    "https://podspace.pod.ir/nzh/drive/downloadImage?hash=ELJIHZN9NP37ZIDA").description(// required. if not set, thread name will set to null
    "this is test description updated on " + new Date().toString()).build();
    presenter.updateThreadInfo(request);
}
Also used : GsonBuilder(com.google.gson.GsonBuilder) Date(java.util.Date) RequestThreadInfo(com.fanap.podchat.requestobject.RequestThreadInfo)

Aggregations

RequestThreadInfo (com.fanap.podchat.requestobject.RequestThreadInfo)1 GsonBuilder (com.google.gson.GsonBuilder)1 Date (java.util.Date)1