41 lines
1.3 KiB
C#
41 lines
1.3 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 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.HappinessGroup,
|
|
DomainType.CellGroup
|
|
};
|
|
|
|
public string Description => "顯示教會主日聚會資訊";
|
|
public IEnumerable<string> Commands => COMMANDS;
|
|
public string ReplyTextMessage => MESSAGES;
|
|
|
|
public IEnumerable<ILineMessage> LineMessage => null;
|
|
|
|
IEnumerable<DomainType> IAutoReplyCommand.SupportGroups => GROUPS;
|
|
|
|
public bool Enabled(PastoralDomain pastoralDomain = null, string command = null)
|
|
{
|
|
return COMMANDS.Any(c => c.IndexOf(command) == 0);
|
|
}
|
|
|
|
public void Initialize(PastoralDomain pastoralDomain = null)
|
|
{
|
|
}
|
|
}
|
|
}
|