Home | History | Annotate | Download | only in messagingservice

Lines Matching defs:messages

25  * A simple class that denotes unread conversations and messages. In a real world application,
26 * this would be replaced by a content provider that actually gets the unread messages to be
32 * Set of strings used as messages by the sample.
34 private static final String[] MESSAGES = new String[]{
44 * Senders of the said messages.
60 * A given conversation can have a single or multiple messages.
61 * Note that the messages are sorted from *newest* to *oldest*
63 private final List<String> messages;
68 List<String> messages) {
71 this.messages = messages == null ? Collections.<String>emptyList() : messages;
84 return messages;
94 ", messages=" + messages +
114 int maxLen = MESSAGES.length;
115 List<String> messages = new ArrayList<>(messagesPerConversation);
117 messages.add(MESSAGES[ThreadLocalRandom.current().nextInt(0, maxLen)]);
119 return messages;