All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.azure.sdk.iot.device.twin.GetTwinCallback Maven / Gradle / Ivy

There is a newer version: 2.5.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.sdk.iot.device.twin;

import com.microsoft.azure.sdk.iot.device.exceptions.IotHubClientException;

/**
 * The callback to be executed when the service responds to a getTwin request with the current twin.
 */
public interface GetTwinCallback
{
    /**
     * The callback to be executed when the service responds to a getTwin request with the current twin.
     * @param twin The current twin.
     * @param context The context that was provided for this callback in
     * {@link com.microsoft.azure.sdk.iot.device.InternalClient#getTwinAsync(GetTwinCallback, Object)}.
     */
    void onTwinReceived(Twin twin, IotHubClientException clientException, Object context);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy