Esempio n. 1
0
        public static IEnumerable <string> GetAliases(this SlackMessageOptions option)
        {
            var memberInfos = option.GetType().GetMember(option.ToString());
            var attribute   = memberInfos[0].GetCustomAttributes(typeof(AliasAttribute), false);

            return(((AliasAttribute)attribute.ElementAt(0)).Aliases);
        }
Esempio n. 2
0
 private bool IsAliasForOption(SlackMessageOptions option)
 {
     return(option.GetAliases().Contains(command));
 }
Esempio n. 3
0
 protected SlackMessageInterpreter(SlackMessageOptions option)
 {
     this.option = option;
 }