@Override public Adaptable toAdaptable(final ThingModifyCommandResponse<?> thingModifyCommandResponse) { return toAdaptable(thingModifyCommandResponse, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingEvent<?> thingEvent) { return toAdaptable(thingEvent, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final Command<?> command) { return toAdaptable(command, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingQueryCommandResponse<?> thingQueryCommandResponse) { return toAdaptable(thingQueryCommandResponse, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingQueryCommandResponse<?> thingQueryCommandResponse) { return toAdaptable(thingQueryCommandResponse, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final Event<?> event) { return toAdaptable(event, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingCommandResponse<?> thingCommandResponse) { return toAdaptable(thingCommandResponse, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final Event<?> event) { return toAdaptable(event, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final Command<?> command) { return toAdaptable(command, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingQueryCommand<?> thingQueryCommand) { return toAdaptable(thingQueryCommand, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final CommandResponse<?> commandResponse) { return toAdaptable(commandResponse, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final ThingModifyCommand<?> thingModifyCommand) { return toAdaptable(thingModifyCommand, TopicPath.Channel.TWIN); }
@Override public Adaptable toAdaptable(final Command<?> command, final TopicPath.Channel channel) { if (command instanceof MessageCommand && channel == TopicPath.Channel.LIVE) { return toAdaptable((MessageCommand) command); } else if (command instanceof ThingModifyCommand) { return toAdaptable((ThingModifyCommand) command, channel); } else if (command instanceof ThingQueryCommand) { return toAdaptable((ThingQueryCommand) command, channel); } else { throw UnknownCommandException.newBuilder(command.getName()).build(); } }
@Override public Adaptable toAdaptable(final ThingCommandResponse<?> thingCommandResponse, final TopicPath.Channel channel) { if (thingCommandResponse instanceof ThingQueryCommandResponse) { return toAdaptable((ThingQueryCommandResponse) thingCommandResponse, channel); } else if (thingCommandResponse instanceof ThingModifyCommandResponse) { return toAdaptable((ThingModifyCommandResponse) thingCommandResponse, channel); } else if (thingCommandResponse instanceof ThingErrorResponse) { return toAdaptable((ThingErrorResponse) thingCommandResponse, channel); } else { throw UnknownCommandResponseException.newBuilder(thingCommandResponse.getName()).build(); } }
@Override public Adaptable toAdaptable(final Command<?> command, final TopicPath.Channel channel) { if (command instanceof MessageCommand && channel == TopicPath.Channel.LIVE) { return toAdaptable((MessageCommand) command); } else if (command instanceof ThingModifyCommand) { return toAdaptable((ThingModifyCommand) command, channel); } else if (command instanceof ThingQueryCommand) { return toAdaptable((ThingQueryCommand) command, channel); } else { throw UnknownCommandException.newBuilder(command.getName()).build(); } }
@Override public Adaptable toAdaptable(final ThingCommandResponse<?> thingCommandResponse, final TopicPath.Channel channel) { if (thingCommandResponse instanceof ThingQueryCommandResponse) { return toAdaptable((ThingQueryCommandResponse) thingCommandResponse, channel); } else if (thingCommandResponse instanceof ThingModifyCommandResponse) { return toAdaptable((ThingModifyCommandResponse) thingCommandResponse, channel); } else if (thingCommandResponse instanceof ThingErrorResponse) { return toAdaptable((ThingErrorResponse) thingCommandResponse, channel); } else { throw UnknownCommandResponseException.newBuilder(thingCommandResponse.getName()).build(); } }
@Override public Adaptable toAdaptable(final CommandResponse<?> commandResponse, final TopicPath.Channel channel) { if (commandResponse instanceof MessageCommandResponse && channel == TopicPath.Channel.LIVE) { return toAdaptable((MessageCommandResponse) commandResponse); } else if (commandResponse instanceof ThingCommandResponse) { return toAdaptable((ThingCommandResponse) commandResponse, channel); } else { throw UnknownCommandResponseException.newBuilder(commandResponse.getName()).build(); } }
@Override public Adaptable toAdaptable(final CommandResponse<?> commandResponse, final TopicPath.Channel channel) { if (commandResponse instanceof MessageCommandResponse && channel == TopicPath.Channel.LIVE) { return toAdaptable((MessageCommandResponse) commandResponse); } else if (commandResponse instanceof ThingCommandResponse) { return toAdaptable((ThingCommandResponse) commandResponse, channel); } else { throw UnknownCommandResponseException.newBuilder(commandResponse.getName()).build(); } }
@Override public Adaptable toAdaptable(final Event<?> event, final TopicPath.Channel channel) { if (event instanceof ThingEvent) { return toAdaptable((ThingEvent) event, channel); } else { throw UnknownEventException.newBuilder(event.getName()).build(); } }
@Override public Adaptable toAdaptable(final Event<?> event, final TopicPath.Channel channel) { if (event instanceof ThingEvent) { return toAdaptable((ThingEvent) event, channel); } else { throw UnknownEventException.newBuilder(event.getName()).build(); } }