Class DB_Connect
The main connection to the databse server
Namespace: JelleVer.DatabaseTools
Assembly: cs.temp.dll.dll
Syntax
public class DB_Connect : MonoBehaviour
Fields
downloadSuccesEvent
Declaration
public UserDataArrayEvent downloadSuccesEvent
Field Value
| Type | Description |
|---|---|
| UserDataArrayEvent |
uploadSuccesEvent
Declaration
public UnityEvent uploadSuccesEvent
Field Value
| Type | Description |
|---|---|
| UnityEvent |
Methods
TryDownloadData()
Starts Downloading the data from the server
Declaration
public void TryDownloadData()
TryUploadData(String, Object)
Start Uploading data to the serever
Declaration
public void TryUploadData(string username, Object data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | username | the name of the user to link the data to |
| Object | data | the actual data, to be serialised to Json |
TryUploadData(String, String)
Start Uploading data to the serever
Declaration
public void TryUploadData(string username, string data)
Parameters
| Type | Name | Description |
|---|---|---|
| String | username | the name of the user to link the data to |
| String | data | the actual data |