BeFriend.ViewModel.SosPageViewModel.timer_Tick C# (CSharp) Method

timer_Tick() private method

private timer_Tick ( object sender, object e ) : void
sender object
e object
return void
        private async void timer_Tick(object sender, object e)
        {
            await LocationAccesser();

            await TwitterPoster();
            //await FacebookPoster();

            if (!ApiInformation.IsTypePresent("Windows.Phone.UI.Input.HardwareButtons"))
                return;

            /*Message Sending Methods */
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("FirstContactNumber"))
            {
                SosPageText += "\n No First Contact Assigned! Checking other entries";
                RaisePropertyChanged(() => SosPageText);
            }
            else
            {
                _phonenumber = ApplicationData.Current.LocalSettings.Values["FirstContactNumber"] as string;
                MessageSender(_phonenumber);
            }
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("SecondContactNumber"))
            {
                SosPageText += "\n No Second Contact Assigned! Checking other entries";
                RaisePropertyChanged(() => SosPageText);
            }
            else
            {
                _phonenumber = ApplicationData.Current.LocalSettings.Values["SecondContactNumber"] as string;
                MessageSender(_phonenumber);
            }
            if (!ApplicationData.Current.LocalSettings.Values.ContainsKey("ThirdContactNumber"))
            {
                SosPageText += "\n No Third Contact Assigned! Checking other entries";
                RaisePropertyChanged(() => SosPageText);
            }
            else
            {
                _phonenumber = ApplicationData.Current.LocalSettings.Values["ThirdContactNumber"] as string;
                MessageSender(_phonenumber);
            }
        }