public static void makeACommentInConversation(String body, String intercomID) { Admin admin = new Admin().setId(supportID); AdminReply adminReply = new AdminReply(admin); adminReply.setBody(body); Conversation.reply(intercomID, adminReply); }
public static void makeANoteInConversation(String body, String intercomID, String userID) { Admin admin = new Admin().setId(userID != null ? userID : supportID); AdminReply adminReply = new AdminReply(admin); adminReply.setMessageType("note"); adminReply.setBody(body); Conversation.reply(intercomID, adminReply); }
public static Conversation findConversationByID(String id) { final Conversation conversation = Conversation.find(id); return conversation; }