Exemplo n.º 1
0
 public AuthorizationResponse(AuthorizationDirective directive)
 {
     @event = new AlexaEventBody
     {
         header = new Header
         {
             @namespace = directive.header.@namespace,
             name       = "AcceptGrant.Response",
             messageID  = directive.header.messageID
         },
         payload = new AlexaResponsePayload()
     };
 }
Exemplo n.º 2
0
        public ReportStateResponse(AlexaDirective directive)
        {
            // ReSharper disable once UseObjectOrCollectionInitializer
            @event        = new AlexaEventBody(directive.header, directive.endpoint);
            @event.header = new Header
            {
                @namespace       = "Alexa",
                name             = "Response",
                payloadVersion   = "3",
                messageID        = directive.header.messageID,
                correlationToken = directive.header.correlationToken
            };

            context = new Context();
        }
Exemplo n.º 3
0
 public ControlResponse(Header headerObject, DirectiveEndpoint endpoint)
 {
     context = new AlexaControlResponseContext();
     Event   = new AlexaEventBody(headerObject, endpoint);
 }
Exemplo n.º 4
0
 public ControlResponse(object[] args)
 {
     context = new AlexaControlResponseContext();
     Event   = new AlexaEventBody(args[0] as Header, args[1] as DirectiveEndpoint);
 }