@Test public void testMarkMessagesUnread() { Set<String> keys = new HashSet<>(); keys.add("1_message_id"); keys.add("2_message_id"); keys.add("6_message_id"); int updated = resolver.markMessagesRead(keys); assertEquals(keys.size(), updated); updated = resolver.markMessagesUnread(keys); assertEquals(keys.size(), updated); for (Message message : resolver.getMessages()) { assertFalse(message.isRead()); } }
int markMessagesUnread(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD, true); return this.updateMessages(messageIds, values); }
MessageCenterResolver extends UrbanAirshipResolver { int markMessagesUnread(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD, true); return this.updateMessages(messageIds, values); } }
MessageCenterResolver extends UrbanAirshipResolver { int markMessagesUnread(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD, true); return this.updateMessages(messageIds, values); } MessageCenterResolver(Context context); }
MessageCenterResolver extends UrbanAirshipResolver { int markMessagesUnread(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD, true); return this.updateMessages(messageIds, values); } MessageCenterResolver(Context context);  }
MessageCenterResolver extends UrbanAirshipResolver { int markMessagesUnread(@NonNull Set<String> messageIds) { ContentValues values = new ContentValues(); values.put(MessageCenterDataManager.MessageTable.COLUMN_NAME_UNREAD, true); return this.updateMessages(messageIds, values); } MessageCenterResolver(Context context);   }