Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public static Json createMessage(Performative performative, Activity activity) {
   return createMessage(performative, activity.getType(), activity.getId());
 }