Fixed initialization
This commit is contained in:
parent
ff004e1ccd
commit
1457c731b9
@ -26,6 +26,16 @@ import java.util.concurrent.ConcurrentHashMap;
|
|||||||
* Identify the class by using the Constructor.
|
* Identify the class by using the Constructor.
|
||||||
*/
|
*/
|
||||||
public class ConstructorDetector {
|
public class ConstructorDetector {
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Call this to load static methods and prevent errors during startup!
|
||||||
|
try {
|
||||||
|
it.ernytech.tdlib.utils.Init.start();
|
||||||
|
} catch (Throwable throwable) {
|
||||||
|
throwable.printStackTrace();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private static ConcurrentHashMap<Integer, Class> constructorHashMap;
|
private static ConcurrentHashMap<Integer, Class> constructorHashMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
33
src/main/java/it/ernytech/tdlib/ResponseArray.java
Normal file
33
src/main/java/it/ernytech/tdlib/ResponseArray.java
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
* 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/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package it.ernytech.tdlib;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An array of incoming updates from TDLib.
|
||||||
|
*/
|
||||||
|
public class ResponseArray {
|
||||||
|
private Response[] responses;
|
||||||
|
|
||||||
|
public ResponseArray(Response[] responses) {
|
||||||
|
this.responses = responses;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Response[] getResponses() {
|
||||||
|
return responses;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user