LoggerInterface.aidl (1312B) - raw
1 package me.rhunk.snapenhance.bridge.logger; 2 3 import me.rhunk.snapenhance.bridge.logger.BridgeLoggedMessage; 4 import me.rhunk.snapenhance.bridge.logger.LoggedChatEdit; 5 6 interface LoggerInterface { 7 /** 8 * Get the ids of the messages that are logged 9 * @return message ids that are logged 10 */ 11 long[] getLoggedIds(in String[] conversationIds, int limit); 12 13 /** 14 * Get the content of a logged message from the database 15 */ 16 @nullable byte[] getMessage(String conversationId, long id); 17 18 /** 19 * Add a message to the message logger database if it is not already there 20 */ 21 oneway void addMessage(in BridgeLoggedMessage message); 22 23 /** 24 * Delete a message from the message logger database 25 */ 26 oneway void deleteMessage(String conversationId, long id); 27 28 /** 29 * Add a story to the message logger database if it is not already there 30 */ 31 boolean addStory(String userId, String url, long postedAt, long createdAt, in byte[] key, in byte[] iv); 32 33 oneway void logTrackerEvent( 34 String conversationId, 35 String conversationTitle, 36 boolean isGroup, 37 String username, 38 String userId, 39 String eventType, 40 String data 41 ); 42 43 List<LoggedChatEdit> getChatEdits(String conversationId, long messageId); 44 }