Beispiel #1
0
        /// <summary>
        /// job_exchange_rate() : 顯示匯率 (中午 12:00)
        /// </summary>
        /// <returns></returns>
        public static void job_exchange_rate_1200()
        {
            string get_msg  = CallFunction.GetExchange("匯率");
            string post_msg = "午安!吃飯時間到了哦!今日目前的匯率是:" + Environment.NewLine + get_msg;

            CallLineAPIPushMessage(post_msg);
        }
Beispiel #2
0
        /// <summary>
        /// job_exchange_rate() : 顯示匯率 (下午 16:30)
        /// </summary>
        /// <returns></returns>
        public static void job_exchange_rate_1630()
        {
            string get_msg  = CallFunction.GetExchange("匯率");
            string post_msg = "安安!吃過下午茶了嗎?今日收盤的匯率是:" + Environment.NewLine + get_msg;

            CallLineAPIPushMessage(post_msg);
        }
Beispiel #3
0
        /// <summary>
        /// job_pm25_ga : 顯示空污叫下班
        /// </summary>
        /// <returns></returns>
        public static async Task job_pm25_1700()
        {
            string get_msg = await CallFunction.GetAirQulity("善化 嘉義 新營 的空污");

            string post_msg = "啾咪!以下是三處的空污狀況,祝各位下班順心,一路平安!" + Environment.NewLine + get_msg;

            await CallLineAPIPushMessage(post_msg);
        }