HOCO Unity SDK 0.0.15-Alpha
A Web3 SDK provided by HoneyComb
|
The Core Logic for interacting with the MongoDb Cloud Database. More...
Static Public Member Functions | |
static async UniTask< T > | Get (string filterProperty, string filterValue, string storageKey="NULL") |
This Method can only return a Live Data Instance type from the database. See LiveCloudData and inherit from it to make your own. | |
static async UniTask< T[]> | GetAll (string storageKey) |
static async UniTask< bool > | Update< TInput > (TInput instanceData, string instanceId, string storageKey="NULL") |
static async UniTask< T > | Update (LiveCloudData modifiedInstance, string storageKey="NULL") |
static async UniTask< bool > | Create (T newData, string storageKey="NULL") |
Things to know to use this function: Make sure the Data fed in is a Root class of the data that is to be added to a LiveCloudData. For example, to send PlayerData as used in LivePlayerData.PlayerData, You must only send the given PlayerData through this function. To try and be even more clear. This function will create the LiveCloudData version of PlayerData when you send it through this function, the result is what LivePlayerData is. | |
static async UniTask< bool > | Delete (LiveCloudData existingInstance, string storageKey="NULL") |
The Core Logic for interacting with the MongoDb Cloud Database.
T | Any type of Serializable Data Class |
T | : | new() |
|
inlinestatic |
This Method can only return a Live Data Instance type from the database. See LiveCloudData and inherit from it to make your own.
filterProperty | The relative Property to the returned type to filter by, like 'PlayerData.PlayerAddress' if returning LivePlayerData |
filterValue | The relative Property Value to filter by, if lookine for 'PlayerData.PlayerAddress' then you feed in a PlayerAddress string as the Value to return the LivePlayerData Instance containing that Address. |
storageKey | The Data store to search in. |
Referenced by LivePlayerData.GetByAddress(), and LivePlayerData.GetOrCreateByAddress().
|
inlinestatic |
Referenced by LiveItemBoxData.GetAll(), and LivePlayerData.GetAll().
|
inlinestatic |
TInput | : | class | |
TInput | : | new() |
|
inlinestatic |
References LiveCloudData.Id.
|
inlinestatic |
Things to know to use this function: Make sure the Data fed in is a Root class of the data that is to be added to a LiveCloudData. For example, to send PlayerData as used in LivePlayerData.PlayerData, You must only send the given PlayerData through this function. To try and be even more clear. This function will create the LiveCloudData version of PlayerData when you send it through this function, the result is what LivePlayerData is.
newData | This is the Raw Datatype that will be converted int o LiveCloudData |
storageKey | This is The CollectionName or Table to create this data on the mongo database |
|
inlinestatic |