/FileExtraction/Java_unseen/InsightIM_Tok-Android/app/src/main/java/im/tox/tox4j/core/callbacks/FileRecvControlCallback.java
package im.tox.tox4j.core.callbacks;

import im.tox.tox4j.core.data.ToxFriendNumber;
import im.tox.tox4j.core.enums.ToxFileControl;

/**
 * This event is triggered when a file control command is received from a
 * friend.
 */
public interface FileRecvControlCallback {
    /**
     * When receiving [[ToxFileControl.CANCEL]], the client should release the
     * resources associated with the file number and consider the transfer failed.
     *
     * @param friendNumber The friend number of the friend who is sending the file.
     * @param fileNumber The friend-specific file number the data received is associated with.
     * @param control The file control command received.
     */
    void fileRecvControl(ToxFriendNumber friendNumber, int fileNumber, ToxFileControl control);
}
