Protocol.RateObjectsWithPosting
#
Type#
func (
err error ,
packet nex . PacketInterface ,
callID uint32 ,
targets * types . List [ * datastore_types . DataStoreRatingTarget ],
rateParams * types . List [ * datastore_types . DataStoreRateObjectParam ],
postParams * types . List [ * datastore_types . DataStorePreparePostParam ],
transactional * types . PrimitiveBool ,
fetchRatings * types . PrimitiveBool
) ( * nex . RMCMessage , * nex . Error )
Description#
Callback handler for the DataStore::RateObjectsWithPosting
RMC method.
Rate multiple objects at once. If a target object does not exist, initialize and rate it using the data from postParams
. targets
, rateParams
, and postParams
must all be the same length.
Parameters#
Name Description err An error which occured during RMC decoding. Nil if no error occured packet The source packet callID The RMC call ID targets List of DataStore objects to rate. Nil if an error occured during RMC decoding rateParams Ratings to apply to objects. Nil if an error occured during RMC decoding postParams Object initialization data. Nil if an error occured during RMC decoding transactional If true only commit database changes if all operations succeed. Nil if an error occured during RMC decoding fetchRatings If true populate pRatings. Nil if an error occured during RMC decoding
Return#
Type Description *nex.RMCMessage
An RMC message of type response. Nil if an error occured during request processing *nex.Error
An error which occured during the request processing. Nil if no error occured
RMC return parameters#
Copyright © 2024 — Powered by Guider