示例#1
0
            public override void GotFeedback(NITFeedback Feedback, NITTrackingInfo TrackingInfo)
            {
                XCFeedbackNotification XFeedback = AdapterFeedback.GetCommonType(Feedback);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXFeedbackNotification(XFeedback);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#2
0
            public override void GotSimpleNotification(NITSimpleNotification Notification, NITTrackingInfo TrackingInfo)
            {
                XCSimpleNotification XSimple = AdapterSimple.GetCommonType(Notification);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXSimpleNotification(XSimple);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#3
0
            public override void GotCustomJSON(NITCustomJSON CustomJSON, NITTrackingInfo TrackingInfo)
            {
                XCCustomJSONNotification XCustomJSON = AdapterCustom.GetCommonType(CustomJSON);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXCustomJSONNotification(XCustomJSON);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#4
0
            public override void GotCoupon(NITCoupon Coupon, NITTrackingInfo TrackingInfo)
            {
                XCCouponNotification XCoupon = AdapterCoupon.GetCommonType(Coupon);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXCouponNotification(XCoupon);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#5
0
            public void GotSimpleNotification(SimpleNotification p0, TrackingInfo p1)
            {
                XCSimpleNotification XSimple = AdapterSimple.GetCommonType(p0);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXSimpleNotification(XSimple);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#6
0
            public void GotContentNotification(Content p0, TrackingInfo p1)
            {
                XCContentNotification XContent = AdapterContent.GetCommonType(p0);

                if (NearPCL.GetContentManager() != null)
                {
                    NearPCL.GetContentManager().GotXContentNotification(XContent);
                }
                else
                {
                    Console.WriteLine("You receive a content but you haven't registered a content manager");
                }
            }
示例#7
0
        public MainPage()
        {
            InitializeComponent();

            NearPCL.SetContentManager(this);
        }