UserStorage

Protocols

Protocol IDName
53UserStorageProtocol

UserStorageProtocol

Method IDSignature
1
func SearchContents(query: [[UserStorageQuery]]((userstoragequery))) -> (searchResults: qlist<[[UserContent]]((usercontent))>)
2
func SearchContentsWithTotal(query: [[UserStorageQuery]]((userstoragequery))) -> (searchResults: qlist<[[UserContent]]((usercontent))>, totalResults: uint32)
3
func DeleteContent(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
4
func SaveMetaData(properties: qlist<[[ContentProperty]]((contentproperty))>) -> ()
5
func SaveContentDB(properties: qlist<[[ContentProperty]]((contentproperty))>, data: buffer) -> ()
6
func SaveContentAndGetUploadInfo(properties: qlist<[[ContentProperty]]((contentproperty))>, size: uint32, contentKey: [[UserContentKey]]((usercontentkey))) -> (uploadInfo: [[UserContentURL]]((usercontenturl)), pendingID: uint64, headers: qvector<string>)
7
func UploadEnd(pendingID: uint64, result: bool) -> ()
8
func GetContentDB(contentKey: [[UserContentKey]]((usercontentkey))) -> (data: buffer)
9
func GetContentURL(contentKey: [[UserContentKey]]((usercontentkey))) -> (downloadInfo: [[UserContentURL]]((usercontenturl)))
10
func GetSlotCount(typeID: uint32) -> (slotCount: [[UserSlotCount]]((userslotcount)))
11
func GetMetaData(contentKey: [[UserContentKey]]((usercontentkey))) -> (content: [[UserContent]]((usercontent)))
12
func Like(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
13
func Unlike(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
14
func IsLiked(contentKey: [[UserContentKey]]((usercontentkey))) -> (liked: bool)
15
func GetFavourites(contentTypes: qlist<uint32>) -> (favourites: qlist<[[UserContent]]((usercontent))>)
16
func MakeFavourite(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
17
func RemoveFromFavourites(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
18
func ReportInappropriate(contentKey: [[UserContentKey]]((usercontentkey)), reason: string) -> ()
19
func IncrementPlayCount(contentKey: [[UserContentKey]]((usercontentkey))) -> ()
20
func UpdateCustomStat(contentKey: [[UserContentKey]]((usercontentkey)), statID: uint16, incValue: int64) -> ()
21
func GetOwnContents(typeID: uint32) -> (results: qlist<[[UserContent]]((usercontent))>)
22
func GetMostPopularTags(contentKey: [[UserContentKey]]((usercontentkey))) -> (tags: qlist<[[WeightedTag]]((weightedtag))>, totalNumberOfTaggings: uint32)
23
func GetTags(contentKey: [[UserContentKey]]((usercontentkey))) -> (tagIds: qlist<uint32>)
24
func TagContent(contentKey: [[UserContentKey]]((usercontentkey)), newTagIds: qlist<uint32>) -> ()
25
func SearchContentsByPlayers(pids: qlist<uint32>, query: [[UserStorageQuery]]((userstoragequery))) -> (searchResults: qlist<[[UserContent]]((usercontent))>)
26
func SearchContentsByPlayersWithTotal(pids: qlist<uint32>, query: [[UserStorageQuery]]((userstoragequery))) -> (searchResults: qlist<[[UserContent]]((usercontent))>, totalResults: uint32)