Méthode | Description | |
---|---|---|
Authenticate ( |
Sends an authentication request to the server. Returns a UserToken object if successful, or null otherwise.
|
|
BBServerConnection ( ) : System |
Initializes a new connection to a BlottoBeats Server with a default ip address of localhost and a default port of 3000
|
|
BBServerConnection ( string ipAddress, int port ) : System |
Initializes a new connection to a BlottoBeats Server with the given IP address and port
|
|
SendRequest ( |
Sends a BBRequest to the server
|
|
Test ( ) : bool |
Tests the server to see if the connection is valid
|
|
VerifyToken ( |
Sends a request to the server to verify a user token is valid.
|
public Authenticate ( |
||
credentials | Credentials object that contains the username and password of the user. | |
register | bool | True if registering a new user, false if verifying a current one. |
Résultat |
public BBServerConnection ( string ipAddress, int port ) : System | ||
ipAddress | string | IP address of the server |
port | int | Port to connect to the server with |
Résultat | System |
public SendRequest ( |
||
request | The BBRequest to send | |
Résultat |
public VerifyToken ( |
||
token | Token to verify | |
Résultat | bool |