private static void StartUp()
        {
            IDal _dal = new Dal();

            var a = new PrayerSetup <Azan, SetAzanSchedule>().SetUp(string.Format("https://muslimsalat.com/{0}/daily/{1}/false.json", "newyork", DateTime.Now.ToString("dd-MM-yyyy"))
                                                                    , "0 1 0 1/1 * ? *"
                                                                    , _dal.GetPlayer());
        }
        /// <summary>
        /// 1 - Updated the SQL Lite with the Selection from DropDown
        /// 2 - Scrapes the Prayes Times API to get Today Times
        /// 3 - Delete All Existing Jobs
        /// 4 - Schedule Job to Run Daily for Scraping
        /// 5 - Schedule are Prayers for Today
        /// </summary>
        private void StartUp()
        {
            _dal.CreateTable();
            _dal.InsertData();
            _dal.UpdatePlayer(_player);

            // serviceStart("Google.Cast.Adthan");

            var a = new PrayerSetup <Azan, SetAzanSchedule>().SetUp(string.Format("https://muslimsalat.com/{0}/daily/{1}/false.json", "newyork", DateTime.Now.ToString("dd-MM-yyyy"))
                                                                    , "0 1 0 1/1 * ? *"
                                                                    , _player);
        }
Exemplo n.º 3
0
        private void StartUp()
        {
            Thread.Sleep(5000);

            string _player = new Dal().GetPlayer();

            if (!string.IsNullOrEmpty(_player))
            {
                var a = new PrayerSetup <Azan, SetAzanSchedule>().SetUp(string.Format("https://muslimsalat.com/{0}/daily/{1}/false.json", "newyork", DateTime.Now.ToString("dd-MM-yyyy"))
                                                                        , "0 1 0 1/1 * ? *"
                                                                        , _player);
            }
        }