public void execute(IotHubStatusCode status, Object context) { System.out.println("Device Client 1: IoT Hub responded to device method operation with status " + status.name()); } }
IotHubStatusCode resultStatus = IotHubStatusCode.getIotHubStatusCode(response.getStatus()); resultStatus.name());
IotHubStatusCode iotHubStatusCode = IotHubStatusCode.getIotHubStatusCode(statusCode); this.savedException = IotHubStatusCode.getConnectionStatusException(iotHubStatusCode, statusDescription); logger.LogError(this.savedException);
iotHubStatus = IotHubStatusCode.getIotHubStatusCode(Integer.parseInt(status)); iotHubStatus = IotHubStatusCode.getIotHubStatusCode(Integer.parseInt(status));
IotHubServiceException exception = IotHubStatusCode.getConnectionStatusException(responseMessage.getStatus(), new String(responseMessage.getBytes())); throw exception;
public void execute(IotHubStatusCode status, Object context) { Success success = (Success) context; //null case is for testing that the callback is fired, but not caring what the status code was. // In some error injection scenarios, the status code reported cannot be predicted, but the callback // still must have been fired. if (this.expectedStatusCode == null || status.equals(expectedStatusCode)) { success.setResult(true); } else { success.setResult(false); } success.callbackWasFired(); success.setCallbackStatusCode(status); } }
IotHubStatusCode status = IotHubStatusCode.getIotHubStatusCode(response.getStatus()); this.listener.onMessageSent(transportMessage, IotHubStatusCode.getConnectionStatusException(status, ""));
IotHubStatusCode status = IotHubStatusCode.getIotHubStatusCode(response.getStatus()); byte[] body = response.getBody();
this.handleMessageException(this.inProgressPackets.remove(message.getMessageId()), IotHubStatusCode.getConnectionStatusException(statusCode, ""));
public void execute(IotHubStatusCode status, Object context) { System.out.println("Device Client: IoT Hub responded to device method operation with status " + status.name()); } }
IotHubStatusCode messageStatus = IotHubStatusCode.getIotHubStatusCode(response.getStatus()); if (messageStatus == IotHubStatusCode.OK)
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to device method operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to device twin operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("Device Client 2: IoT Hub responded to device method operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to device method operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("Device Client 3: IoT Hub responded to device method operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to file upload operation with status " + status.name()); } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to message with status " + status.name()); if (context != null) { synchronized (context) { context.notify(); } } } }
public void execute(IotHubStatusCode status, Object context) { System.out.println("IoT Hub responded to file upload for " + fileNameList.get((int)context) + " operation with status " + status.name()); } }
@Override public void execute(IotHubStatusCode status, Object context) { if((status == IotHubStatusCode.OK) || (status == IotHubStatusCode.OK_EMPTY)) { Succeed.set(true); } else { Succeed.set(false); } System.out.println("IoT Hub responded to device twin operation with status " + status.name()); } }