0
android qiscus sdkとチャットを作成しました。 QiscusComment.generateCustomMessage()に実装するカスタムペイロードメッセージに関する問題があります。qiscus sdkを使用してメッセージのペイロードを追加するには
誰でも手伝ってもらえますか? 感謝..
android qiscus sdkとチャットを作成しました。 QiscusComment.generateCustomMessage()に実装するカスタムペイロードメッセージに関する問題があります。qiscus sdkを使用してメッセージのペイロードを追加するには
誰でも手伝ってもらえますか? 感謝..
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を使用してメッセージのペイロードをカスタマイズすることができます。私は、あなたのアプリを開発するのに役立つことを願っています。
幸運!