示例#1
0
 public BaseAction(Models.DialogFlowResponseModelV1 model)
 {
     Model      = model;
     Repository = ConfigurationManager.AppSettings["Repository"];
     Account    = ConfigurationManager.AppSettings["Account"];
     Client     = new GitHubClient(new ProductHeaderValue(Repository));
 }
示例#2
0
        public BaseAction Create(Models.DialogFlowResponseModelV1 model, string intent)
        {
            var type = Type.GetType($"GoogleHomeGitHub.Actions.{intent}Action");

            return(Activator.CreateInstance(type, model) as BaseAction);
        }
示例#3
0
 public PullRequestAction(Models.DialogFlowResponseModelV1 model) : base(model)
 {
 }
示例#4
0
 public FailAction(Models.DialogFlowResponseModelV1 model) : base(model)
 {
 }