public void Remind(PostManager postManager, List <DailyJob> dailyJobList, string from, long id, Visibility v, string[] token) { PostContent pc = null; switch (token[1]) { case "add": pc = AddRemind(dailyJobList, from, id, v, token[2]); Console.WriteLine(Count); break; case "remove": pc = RemoveRemind(from, id, v, token[2]); Console.WriteLine(Count); break; case "help": pc = ShowHelp(from, id, v); break; default: var content = $"@{from} コマンドが正しくありません。使い方は\"(at)info help\"または\"(at)info remind help\"を参照してください。\n"; pc = new PostContent(id, content, false, null, v: v); break; } if (pc != null) { postManager.Col.Add(pc); } }
public Reminder(DateTime?t, string f, string c, PostContent pc) { PostTime = t; From = f; Code = c; Post = pc; Posted = false; }
public void Feed(PostManager postManager, string from, long id, long accountId, Visibility v, string[] token) { PostContent pc = null; switch (token[1]) { case "add": pc = Subscribe(from, id, accountId, v); break; case "remove": pc = UnSubscribe(from, id, accountId, v); break; case "help": pc = ShowHelp(from, id, v); break; default: var content = $"@{from} コマンドが正しくありません。使い方は\"(at)info help\"または\"(at)info feed help\"を参照してください。\n"; pc = new PostContent(id, content, false, null, v: v); break; } if (pc != null) { postManager.Col.Add(pc); } }