public static extern bool GetMessageById(int msgId, MessageInfoEventHandler callback);
public void GetHistoryMessage(string targetId, ConversationType type, int lastId = -1) { if (type == ConversationType.PRIVATE) { MessageInfoEventHandler get_paged_callback = new MessageInfoEventHandler(get_paged_messageex_callback_delegate.get_paged_messagex_call_back); Rcsdk.GetHistoryMessages(targetId, 1, "", lastId, 5, get_paged_callback); } else if (type == ConversationType.DISCUSSION) { MessageInfoEventHandler get_paged_callback = new MessageInfoEventHandler(get_paged_messageex_callback_delegate.get_paged_messagex_call_back); Rcsdk.GetHistoryMessages(targetId, 2, "", lastId, 5, get_paged_callback); } }
public static extern bool GetHistoryMessages(string targetId, int categoryId, string clazzName, int lastId, int count, MessageInfoEventHandler callback);