public AuthorizationResponse(AuthorizationDirective directive) { @event = new AlexaEventBody { header = new Header { @namespace = directive.header.@namespace, name = "AcceptGrant.Response", messageID = directive.header.messageID }, payload = new AlexaResponsePayload() }; }
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(); }
public ControlResponse(Header headerObject, DirectiveEndpoint endpoint) { context = new AlexaControlResponseContext(); Event = new AlexaEventBody(headerObject, endpoint); }
public ControlResponse(object[] args) { context = new AlexaControlResponseContext(); Event = new AlexaEventBody(args[0] as Header, args[1] as DirectiveEndpoint); }