using Church.Net.Entity; using LineMessaging; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using WebAPI.Services.Interfaces; namespace WebAPI.Services.AutoReplyCommands { public class ArChurchInfo : IAutoReplyCommand { private static readonly string[] COMMANDS = { "教會", "church" }; private static readonly string MESSAGES = "新生命靈糧堂 Arcadia 牧區\n聚會時間 周日 11:00 AM - 12:30PM\n聚會後有提供精緻午餐唷!\n" + "1881 S 1st Ave, Arcadia, CA 91006"; private static readonly DomainType[] GROUPS = { DomainType.CellGroup }; public string Description => "顯示教會主日聚會資訊"; public IEnumerable Commands => COMMANDS; public string ReplyTextMessage => MESSAGES; public IEnumerable LineMessage => null; IEnumerable IAutoReplyCommand.SupportGroups => GROUPS; public bool Enabled(PastoralDomain pastoralDomain = null, string command = null) { return COMMANDS.Any(c => c.IndexOf(command, StringComparison.OrdinalIgnoreCase) == 0); } } }