Example #1
0
 private static void OnSendMessageResultCallback(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode)
 {
     if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnSendMessageResult != null)
     {
         if (AgoraCallbackObject.GetInstance()._CallbackQueue != null)
         {
             AgoraCallbackObject.GetInstance()._CallbackQueue.EnQueue(() => {
                 if (channelEventHandlerDic.ContainsKey(id) && channelEventHandlerDic[id].OnSendMessageResult != null)
                 {
                     channelEventHandlerDic[id].OnSendMessageResult(id, messageId, errorCode);
                 }
             });
         }
     }
 }
Example #2
0
 void OnSendMessageResultHandler(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode)
 {
     Debug.Log("Message: " + id + " " + messageId + " sent status: " + errorCode);
 }
Example #3
0
 void OnSendMessageResultHandler1(int id, Int64 messageId, CHANNEL_MESSAGE_ERR_CODE errorCode)
 {
     Debug.Log("channel OnSendMessageResultHandler1 messageId = " + messageId + " ,errorCode = " + errorCode);
 }