42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
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 ArArkCellGroupInfo : IAutoReplyCommand
|
|
{
|
|
private PastoralDomain pastoralDomain;
|
|
private static readonly string[] COMMANDS = { "小組" };
|
|
|
|
private static readonly DomainType[] GROUPS = {
|
|
DomainType.CellGroup,
|
|
};
|
|
|
|
public string Description => "顯示小組聚會資訊";
|
|
public IEnumerable<string> Commands => COMMANDS;
|
|
public string ReplyTextMessage =>
|
|
"新生命靈糧堂 Arcadia 牧區 - 方舟小組\n" +
|
|
"聚會時間 & 流程 周五晚上\n" +
|
|
"07:30 PM ~ 08:30 PM - PotLuck 時光\n" +
|
|
"08:30 PM ~ 10:00 PM - 小組分享\n" +
|
|
"1881 Forest Dr, Azusa, CA 91702";
|
|
public IEnumerable<DomainType> SupportGroups => GROUPS;
|
|
public IEnumerable<ILineMessage> LineMessage => null;
|
|
|
|
public void Initialize(PastoralDomain pastoralDomain = null)
|
|
{
|
|
this.pastoralDomain = pastoralDomain;
|
|
}
|
|
public bool Enabled(PastoralDomain pastoralDomain = null, string command = null)
|
|
{
|
|
this.pastoralDomain = pastoralDomain;
|
|
return COMMANDS.Any(c => c.IndexOf(command, StringComparison.OrdinalIgnoreCase) == 0);
|
|
}
|
|
}
|
|
}
|