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

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

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

import org.bidib.jbidibc.messages.enums.NetBidibSocketType;
import org.bidib.jbidibc.messages.message.netbidib.BidibLinkData;
import org.bidib.jbidibc.netbidib.client.listener.NetBidibLocalMessageListener;
import org.bidib.jbidibc.netbidib.pairingstore.PairingStore;

/**
 * The {@code PairingStateHandler} is the interface that handles the incoming netBidib messages.
 *
 */
public interface PairingStateHandler extends NetBidibLocalMessageListener {

    /**
     * Initialize the pairing state handler.
     * 
     * @param remotePartnerLinkData
     *            The remote partner link data. This link data stores the data that is received from the remote partner.
     * @param clientLinkData
     *            The client link data. This link data stores the data that is provided by the (local) client instance.
     * @param pairingStore
     *            the pairing store instance
     */
    void initialize(
        final BidibLinkData remotePartnerLinkData, final BidibLinkData clientLinkData, final PairingStore pairingStore);

    /**
     * Set the socket type.
     * 
     * @param socketType
     *            the socket type
     */
    void setNetBidibSocketType(final NetBidibSocketType socketType);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy