Exemplo n.º 1
0
        //リプライが来た時のフィルター

        /*
         * private bool evFill(string content)
         * {
         *  string[] contentSprit = content.Replace(" ", " ").Split(' '); //全角スペースを半角スペースに変換
         *  (JobClass mainclass, JobClass subclass) = myFunction.convertJobClass(contentSprit[0]);
         *  return (mainclass != JobClass.None && subclass != JobClass.None) || (mainclass == JobClass.Hr);
         * }
         */

        //緊急クエストが始まる時に使う
        public async Task postEmgTime(emgQuest emg, int interval)
        {
            if (interval == 0)
            {
                await emgService.PostAsync(string.Format("【緊急開始】{0} {1}", emg.eventTime.ToString("HH:mm"), emg.eventName));
            }
            else
            {
                string liveStr = myFunction.getLiveEmgStr(emg);
                await emgService.PostAsync(string.Format("【{0}分前】{1} {2}", interval, emg.eventTime.ToString("HH:mm"), liveStr));
            }
        }
 //覇者の紋章をPOST
 public async Task PostChp(List <string> chpList)
 {
     string postStr = generateListChpStr(chpList);
     await chpService.PostAsync(postStr);
 }