azure-docs-sdk-java/archive/docs-ref-autogen/com.microsoft.azure.sdk.iot...

53 строки
3.0 KiB
YAML

### YamlMime:JavaType
constructors:
- fullName: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.DirectMethodResponse(String json)
name: DirectMethodResponse(String json)
nameWithType: DirectMethodResponse.DirectMethodResponse(String json)
parameters:
- name: json
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
syntax: public DirectMethodResponse(String json)
uid: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.DirectMethodResponse(String)
inheritances:
- <xref href="java.lang.Object" data-throw-if-not-resolved="False"/>
methods:
- fullName: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayload(Class<T> clazz)
name: getPayload(Class<T> clazz)
nameWithType: DirectMethodResponse.getPayload(Class<T> clazz)
parameters:
- description: <p>the Custom type into which the payload can be deserialized </p>
name: clazz
type: <xref href="Class%3CT%3E?alt=Class%3CT%3E&text=Class%3CT%3E" data-throw-if-not-resolved="False"/>
returns:
description: <p>the DirectMethodResponse payload in Custom type </p>
type: <xref href="%3CT%3E+T?alt=%3CT%3E+T&text=%3CT%3E+T" data-throw-if-not-resolved="False"/>
summary: <p>Return the DirectMethodResponse payload in a custom type of your choosing </p>
syntax: public <T> T getPayload(Class<T> clazz)
uid: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayload(Class<T>)
- fullName: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayloadAsJsonElement()
name: getPayloadAsJsonElement()
nameWithType: DirectMethodResponse.getPayloadAsJsonElement()
returns:
description: <p>the DirectMethodResponse payload in JsonElement type </p>
type: <xref href="JsonElement?alt=JsonElement&text=JsonElement" data-throw-if-not-resolved="False"/>
summary: <p>Return the DirectMethodResponse payload in JsonElement type </p>
syntax: public JsonElement getPayloadAsJsonElement()
uid: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayloadAsJsonElement()
- fullName: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayloadAsJsonString()
name: getPayloadAsJsonString()
nameWithType: DirectMethodResponse.getPayloadAsJsonString()
returns:
description: <p>the DirectMethodResponse payload in json string </p>
type: <xref href="String?alt=String&text=String" data-throw-if-not-resolved="False"/>
summary: <p>Return the DirectMethodResponse payload in json string Use this if you wish to deserialize to a specific type using a deserialization library of your choice </p>
syntax: public String getPayloadAsJsonString()
uid: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse.getPayloadAsJsonString()
nameWithType: DirectMethodResponse
syntax: public class DirectMethodResponse
type: class
uid: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse
fullName: com.microsoft.azure.sdk.iot.device.edge.DirectMethodResponse
name: DirectMethodResponse
package: com.microsoft.azure.sdk.iot.device.edge
metadata: {}