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

org.bidib.jbidibc.netbidib.client.pairingstates.PairingStateInteractionHandler Maven / Gradle / Ivy

package org.bidib.jbidibc.netbidib.client.pairingstates;

import org.bidib.jbidibc.messages.enums.PairingResult;
import org.bidib.jbidibc.messages.exception.EstablishCommunicationFailedException;

/**
 * The {@code PairingStateInteractionHandler} is the interface for calls from the UI to the pairing state.
 *
 */
public interface PairingStateInteractionHandler {

    /**
     * Signal that pairing must be initiated.
     */
    void initiatePairing();

    /**
     * Signal the pairing result.
     * 
     * @param uniqueId
     *            the uniqueId of the remote partner
     * @param pairingResult
     *            the pairing result
     */
    void pairingResult(Long uniqueId, PairingResult pairingResult);

    /**
     * Signal that the pairing timeout has elapsed.
     */
    void timeoutPairing();

    /**
     * Send the initial startup sequence.
     */
    void sendNetBidibStartupSequence() throws EstablishCommunicationFailedException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy