Common objects
Understand the common objects used throughout the Economy SDK.
Read time 1 minuteLast updated 7 months ago
Economy date
An object is a wrapper for modified and created dates from the economy service. It currently has one parameter as shown below:
EconomyDate- : A
Daterepresentation of the wrapped date.DateTime
Write lock
The write lock is used to implement optimistic concurrency. It is optional.
A is returned for each balance or inventory item instance when they are fetched, added or updated. The user can then pass the value back to the SDK when updating a currency balance or inventory instance. If it matches, the request is successful and will update. If it doesn't, then an error is returned.
writeLockwriteLockThe can be any value.
writeLockstringFor a code example, see the method in the sample.
UpdatePlayersInventoryItemUsingWriteLockInventoriesBasicExample