Beispiel #1
0
        public HttpContent Create()
        {
            var skillRequest = new SkillRequest
            {
                Context = new Context(),
                Session = new Session(),
                Version = "1",
                Request = new LaunchRequest {
                    Type = "LaunchRequest"
                }
            };

            return(skillRequest.ToStreamContent());
        }
        public HttpContent Build()
        {
            var skillRequest = new SkillRequest
            {
                Context = new Context(),
                Session = new Session(),
                Version = "1",
                Request = new IntentRequest {
                    Type = "IntentRequest", Intent = new Intent {
                        Name = _intentName
                    }
                }
            };

            return(skillRequest.ToStreamContent());
        }