コード例 #1
0
        public override bool onReceive(PushDataForApplication pushData, ClickButtonHandler handler)
        {
            Console.WriteLine("receive push data action: " + pushData.action.ToString());
            Console.WriteLine("receive push data code: " + pushData.code.ToString());
            Console.WriteLine("receive push data title: " + pushData.title);
            Console.WriteLine("receive push data message: " + pushData.message);
            if (pushData.data != null)
            {
                Console.WriteLine("receive push data data: " + pushData.data.ToString());
            }
            Console.WriteLine("receive push data msg id: " + pushData.msgID.ToString());
            Console.WriteLine("receive push data display without dialog: " + pushData.displayWithoutDialog.ToString());
            Console.WriteLine("receive push data is foreground: " + pushData.isAppOnForeground.ToString());
            Console.WriteLine("receive push data badge: " + pushData.badge.ToString());
            Console.WriteLine("receive push data sound: " + pushData.sound);
            Console.WriteLine("receive push data is slide: " + pushData.isInAppSlide.ToString());
            Console.WriteLine("receive push data orientation: " + pushData.orientation.ToString());
            Console.WriteLine("receive push data portion: " + pushData.portion.ToString());
            Console.WriteLine("receive push data speed: " + pushData.speed.ToString());

            //			if (pushData.action == SHAction.SHAction_OpenUrl)
            //			{
            //				if (handler != null)
            //				{
            //					handler (SHResult.SHResult_Accept);
            //				}
            //				return true;
            //			}

            return(false);
        }
コード例 #2
0
        public override bool onReceive(PushDataForApplication pushData, ClickButtonHandler handler)
        {
            Console.WriteLine ("receive push data action: " + pushData.action.ToString());
            Console.WriteLine ("receive push data code: " + pushData.code.ToString());
            Console.WriteLine ("receive push data title: " + pushData.title);
            Console.WriteLine ("receive push data message: " + pushData.message);
            if (pushData.data != null)
            {
                Console.WriteLine ("receive push data data: " + pushData.data.ToString ());
            }
            Console.WriteLine ("receive push data msg id: " + pushData.msgID.ToString());
            Console.WriteLine ("receive push data display without dialog: " + pushData.displayWithoutDialog.ToString());
            Console.WriteLine ("receive push data is foreground: " + pushData.isAppOnForeground.ToString());
            Console.WriteLine ("receive push data badge: " + pushData.badge.ToString());
            Console.WriteLine ("receive push data sound: " + pushData.sound);
            Console.WriteLine ("receive push data is slide: " + pushData.isInAppSlide.ToString());
            Console.WriteLine ("receive push data orientation: " + pushData.orientation.ToString());
            Console.WriteLine ("receive push data portion: " + pushData.portion.ToString());
            Console.WriteLine ("receive push data speed: " + pushData.speed.ToString());

            //			if (pushData.action == SHAction.SHAction_OpenUrl)
            //			{
            //				if (handler != null)
            //				{
            //					handler (SHResult.SHResult_Accept);
            //				}
            //				return true;
            //			}

            return false;
        }