tdlight-java/src/main/java/it/tdlight/tdlight/utils/NativeErrorCallback.java

32 lines
1.1 KiB
Java
Raw Normal View History

2018-07-18 12:24:37 +02:00
/*
* Copyright (c) 2018. Ernesto Castellotti <erny.castell@gmail.com>
* This file is part of JTdlib.
*
* JTdlib is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License.
*
* JTdlib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with JTdlib. If not, see <http://www.gnu.org/licenses/>.
*/
2020-08-18 23:13:36 +02:00
package it.tdlight.tdlight.utils;
2020-04-19 16:32:49 +02:00
2020-08-18 23:13:36 +02:00
import it.tdlight.tdlight.Response;
2018-07-18 12:24:37 +02:00
/**
2020-04-19 16:32:49 +02:00
* Interface of callback for receive incoming error response.
2018-07-18 12:24:37 +02:00
*/
2020-04-19 16:32:49 +02:00
public interface NativeErrorCallback {
2018-07-18 12:24:37 +02:00
/**
2020-04-19 16:32:49 +02:00
* This method is called when the library receives error responses
* @param error The incoming error response.
2018-07-18 12:24:37 +02:00
*/
2020-04-19 16:32:49 +02:00
void onNativeError(Response error);
2018-07-18 12:24:37 +02:00
}