\D3strukt0r\VotifierClient\ServerType
ServerTypeInterface¶
-
interface
D3strukt0r\VotifierClient\ServerType\ServerTypeInterface¶ The interface ServerTypeInterface is used to define a PluginType on the server.
-
public
getHost() → string¶ Returns the host.
Returns: string — Returns the host
-
public
getPort() → int¶ Returns the port.
Returns: int — Returns the port
-
public
getPublicKey() → string¶ Returns the public key.
Returns: string — Returns the public key
-
public
verifyConnection($header) → bool¶ Verifies that the connection is correct.
Parameters: - $header (bool|string) – (Required) The header that the plugin usually sends
Returns: bool — Returns true if connections is available, otherwise false
-
public
send($connection, $vote)¶ Sends the vote package to the server.
Parameters: - $connection (\D3strukt0r\VotifierClient\ServerConnection) – (Required) The connection type to the plugin
- $vote (\D3strukt0r\VotifierClient\VoteType\VoteInterface) – (Required) The vote type package
Throws: \Exception
-
public