Example #1
0
        private static async void TimerStarter()
        {
            await LocationAccesser();

            /*Message Sending Methods */
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("FirstContactNumber"))
            {
                return;
            }
            _phonenumber = ApplicationData.Current.LocalSettings.Values["FirstContactNumber"] as string;
            MessageSender(_phonenumber);
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("SecondContactNumber"))
            {
                return;
            }
            _phonenumber = ApplicationData.Current.LocalSettings.Values["SecondContactNumber"] as string;
            MessageSender(_phonenumber);
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("ThirdContactNumber"))
            {
                return;
            }
            _phonenumber = ApplicationData.Current.LocalSettings.Values["ThirdContactNumber"] as string;
            MessageSender(_phonenumber);

            TwitterPoster();
            //FacebookPoster();
            if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
            {
                return;
            }
            var spineClass = new SpineClass();

            spineClass.InitializeCallingInfoAsync();
        }
Example #2
0
        private static async void TimerStarter()
        {
            await LocationAccesser();

            /*Message Sending Methods */
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("FirstContactNumber")) return;
            _phonenumber = ApplicationData.Current.LocalSettings.Values["FirstContactNumber"] as string;
            MessageSender(_phonenumber);
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("SecondContactNumber")) return;
            _phonenumber = ApplicationData.Current.LocalSettings.Values["SecondContactNumber"] as string;
            MessageSender(_phonenumber);
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("ThirdContactNumber")) return;
            _phonenumber = ApplicationData.Current.LocalSettings.Values["ThirdContactNumber"] as string;
            MessageSender(_phonenumber);

            TwitterPoster();
            //FacebookPoster();
            if (!Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
                return;
            var spineClass = new SpineClass();
            spineClass.InitializeCallingInfoAsync();
           
        }