package com.ntels.onecable.admin.common.websocket;

/**
 * <pre>
 * 1. Interface Name    :   OnWebSocketResponse
 * 2. FileName          :   OnWebSocketResponse.java
 * 3. Package           :   com.ntels.onecable.admin.common.websocket
 * 4. Date              :   2016-12-06
 * 5. Author            :   aaron
 * 6. Comment           :   Websocket response listener interface
 * </pre>
 */
public interface OnWebSocketResponse {
    /**
     * Websocket request success.
     *
     * @param result 결과 data
     */
    void onResponse(String result);

    /**
     * Websocket request error.
     *
     * @param code    Error code
     * @param message Error message
     */
    void onError(int code, String message);
}
