public static Json makeReply(Activity activity, Performative performative, String replyWith) { Json s = object( ACTIVITY_TYPE, activity.getType(), CONVERSATION_ID, activity.getId(), PERFORMATIVE, performative.toString()); if (replyWith != null) return s.set(IN_REPLY_TO, replyWith); else return s; }
public static Json createMessage(Performative performative, Activity activity) { return createMessage(performative, activity.getType(), activity.getId()); }