@Test public void createOttType() { String ott = "oneTimeToken"; givenMessageSendRequest(MessageSendRequest.createOttType(ott, messages)); payLoadShouldBe("{\"token\":\"oneTimeToken\",\"messages\":[{\"type\":\"flex\"}]}"); }
public static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages) { return new MessageSendRequest().setOtt(ott).setMessages(messages); }
MessageSendRequest { public static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages) { return new MessageSendRequest().setOtt(ott).setMessages(messages); } }
MessageSendRequest { public static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages) { return new MessageSendRequest().setOtt(ott).setMessages(messages); } private  MessageSendRequest(); }
MessageSendRequest { public static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages) { return new MessageSendRequest().setOtt(ott).setMessages(messages); } private  MessageSendRequest(); static MessageSendRequest createSingleUserType(@NonNull String targetUserId, @NonNull List<MessageData> messages); static MessageSendRequest createMultiUsersType(@NonNull List<String> targetUserIds, @NonNull List<MessageData> messages); static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages); @NonNull String toJsonString(); }
MessageSendRequest { public static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages) { return new MessageSendRequest().setOtt(ott).setMessages(messages); } private  MessageSendRequest(); static MessageSendRequest createSingleUserType(@NonNull String targetUserId, @NonNull List<MessageData> messages); static MessageSendRequest createMultiUsersType(@NonNull List<String> targetUserIds, @NonNull List<MessageData> messages); static MessageSendRequest createOttType(@NonNull String ott, @NonNull List<MessageData> messages); @NonNull String toJsonString();  }