2017-11-01 1 views

答えて

1
String message = "Survey Qiscus"; 
    JSONObject payload = new JSONObject(); 
    try { 
     payload.put("sticker_url", "https://res.cloudinary.com/qiscus/image/upload/fxwzBRPcdz/Bubble-Pup-Yup.gif"); 
     payload.put("profile_url", "http://res.cloudinary.com/diufvqwbr/image/upload/v1507608923/logo_gb4lzy.png"); 
     payload.put("title_survey", "[email protected] Selles Survey"); 
     payload.put("date", "2017-10-29"); 
     payload.put("link_url", "https://www.qiscus.com/"); 
    } catch (JSONException e) { 
     e.printStackTrace(); 
    } 
    QiscusComment comment = QiscusComment.generateCustomMessage(message, "survey", payload, 
      qiscusChatRoom.getId(), qiscusChatRoom.getLastTopicId()); 

あなたは sendQiscusComment(コメント)を使ってコメントを送信することができます。

JsonArraysを使用してメッセージのペイロードをカスタマイズすることができます。私は、あなたのアプリを開発するのに役立つことを願っています。

幸運!

関連する問題