Example #1
0
        public int SetSetWorldsAllowPushNotificationCallback(Push.SetWorldsAllowPushNotificationDelegate callback)
        {
            if (null == callback)
            {
                return(0);
            }

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

                Result result = message.GetResult();

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

            return(handlerNum);
        }
Example #2
0
        public void SetWorldsAllowPushNotification(List <WorldAllowPushNotification> worldAllowPushNotificationList, Push.SetWorldsAllowPushNotificationDelegate callback)
        {
            int    handlerNum = pushCallback.SetSetWorldsAllowPushNotificationCallback(callback);
            string worldAllowPushNotificationJson = Internal.Utils.ToJson(worldAllowPushNotificationList);

            pushAndroidClass.CallStatic("nmg_push_setWorldsAllowPushNotification", worldAllowPushNotificationJson, handlerNum);
        }
 public void SetWorldsAllowPushNotification(System.Collections.Generic.List <WorldAllowPushNotification> worldAllowPushNotificationList, Push.SetWorldsAllowPushNotificationDelegate callback)
 {
 }