org.telegram.telegraph.executors.TelegraphExecutor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of telegraph-meta Show documentation
Show all versions of telegraph-meta Show documentation
Easy to use library to interact with Telegra.ph
The newest version!
package org.telegram.telegraph.executors;
import org.telegram.telegraph.api.TelegraphMethod;
import org.telegram.telegraph.api.TelegraphObject;
import org.telegram.telegraph.exceptions.TelegraphException;
/**
* @author Ruben Bermudez
* @version 1.0
* Base interface to execute a method, support any custom implementation. Library will create instances of this class
* via TelegraphExecutorFactory when necessary.
*/
public interface TelegraphExecutor {
/**
* Executes a method and returns its result
* @param method Method to execute
* @param Type of method result
* @return Results of the method
* @throws TelegraphException If validation or requests fails
*/
T execute(TelegraphMethod method) throws TelegraphException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy