/// <summary> /// Used when full controller functionality is required /// </summary> /// <param name="requestObject"></param> public AlexaControllerBase(TTt requestObject) { _request = requestObject; _header = RequestHeader; Payload = (T)RequestPayload; _directiveEndpoint = RequestDirectiveEndpoint; if (_directiveEndpoint == null) { object[] args = { _header }; _response = GetNewResponseObject(args); } else { object[] args = { _header, _directiveEndpoint }; _response = GetNewResponseObject(args); ResponseEvent.endpoint.cookie = _directiveEndpoint?.cookie; } }
public AlexaChannelControllerRequestDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaChannelControllerRequestPayload(); }
public AlexaTemperatureSensorDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaTemperatureSensorRequestPayload(); }
public AlexaPlaybackRequestDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaPlaybackRequestPayload(); }
public AlexaSetPowerStateControllerRequestDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaSetPowerStateRequestPayload(); }
public AlexaColorTemperatureControllerRequestDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaColorTemperatureControllerRequestPayload(); }
public AlexaThermostatControllerRequestDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaThermostatRequestPayload(); }
public AlexaBrightnessControllerDirective() { header = new Header(); endpoint = new DirectiveEndpoint(); payload = new AlexaBrightness(); }