forked from External/mage
* added strict mode (client and server versions must be same, see MAGE_VERSION_MINOR_PATCH_MUST_BE_SAME); * you must enable string mode after github code changes in serializeable classes (see #4459); * added client-side version checks; * added error message on wrong version disconnects.
47 lines
941 B
Java
47 lines
941 B
Java
package mage.remote.interfaces;
|
|
|
|
import mage.remote.Connection;
|
|
|
|
import java.util.Optional;
|
|
|
|
/**
|
|
* @author noxx
|
|
*/
|
|
public interface Connect {
|
|
|
|
boolean register(Connection connection);
|
|
|
|
boolean emailAuthToken(Connection connection);
|
|
|
|
boolean resetPassword(Connection connection);
|
|
|
|
boolean connect(Connection connection);
|
|
|
|
boolean stopConnecting();
|
|
|
|
void disconnect(boolean showMessage);
|
|
|
|
void reconnect(Throwable throwable);
|
|
|
|
boolean ping();
|
|
|
|
boolean isConnected();
|
|
|
|
Optional<String> getServerHostname();
|
|
|
|
boolean disconnectUser(String userSessionId);
|
|
|
|
boolean endUserSession(String userSessionId);
|
|
|
|
boolean muteUserChat(String userName, long durationMinute);
|
|
|
|
boolean setActivation(String userName, boolean active);
|
|
|
|
boolean toggleActivation(String userName);
|
|
|
|
boolean lockUser(String userName, long durationMinute);
|
|
|
|
String getSessionId();
|
|
|
|
String getLastError();
|
|
}
|