2017-11-01 1 views

Antwort

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()); 

Sie können Ihren Kommentar mit sendQiscusComment (Kommentar) senden;

Sie können JsonArrays verwenden, um Ihre Nachrichtennutzdaten anzupassen. Ich hoffe, es kann Ihnen helfen, Ihre Apps zu entwickeln.

Viel Glück !!

Verwandte Themen