Beispiel #1
0
        public void SendPushNotification(string message, List <string> playerIdList, Push.SendPushNotificationDelegate callback)
        {
            int    handlerNum   = pushCallback.SetSendPushNotificationCallback(callback);
            string playerIdJson = Internal.Utils.ToJson(playerIdList);

            pushAndroidClass.CallStatic("nmg_push_sendPushNotification", message, playerIdJson, handlerNum);
        }
Beispiel #2
0
        public void SendPushNotification(string message, List <string> playerIdList, Push.SendPushNotificationDelegate callback)
        {
            string playerIdJson = Internal.Utils.ToJson(playerIdList);
            int    handlerNum   = pushCallback.SetSendPushNotificationCallback(callback);

            nmg_push_sendPushNotification(message, playerIdJson, handlerNum);
        }
Beispiel #3
0
        public int SetSendPushNotificationCallback(Push.SendPushNotificationDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

            int handlerNum = CallbackManager.AddHandler(delegate(CallbackMessage message)
            {
                Log.Debug("[PushCallback] SendPushNotificationCallback: " + message);

                Result result = message.GetResult();

                if (null != callback)
                {
                    callback(result);
                }
            });

            return(handlerNum);
        }
 public void SendPushNotification(string message, System.Collections.Generic.List <string> playerIdList, Push.SendPushNotificationDelegate callback)
 {
 }