public final class IotHubOutboundPacket extends Object
| Modifier and Type | Field and Description |
|---|---|
protected IotHubEventCallback |
callback |
protected Object |
callbackContext |
protected Message |
message |
| Constructor and Description |
|---|
IotHubOutboundPacket(Message message,
IotHubEventCallback callback,
Object callbackContext)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IotHubEventCallback |
getCallback()
Getter for the callback to be invoked when a response is received.
|
Object |
getContext()
Getter for the context to be passed to the callback when it is invoked.
|
Message |
getMessage()
Getter for the message to be sent.
|
protected final Message message
protected final IotHubEventCallback callback
protected final Object callbackContext
public IotHubOutboundPacket(Message message, IotHubEventCallback callback, Object callbackContext)
message - the message to be sent.callback - the callback to be invoked when a response from the IoT
Hub is received.callbackContext - the context to be passed to the callback.public Message getMessage()
public IotHubEventCallback getCallback()
public Object getContext()
Copyright © 2017. All rights reserved.