virtual qBool RateObject( ProtocolCallContext * pContext, const DataStoreRatingTarget & target, const DataStoreRateObjectParam & param, DataStoreRatingInfo * pRating );
Name | Description | |
---|---|---|
in | pContext | Call information. |
in | target | Target to rate. |
in | param | The setting parameter. |
out | pRating | Ratings information after rating. Specify NULL if not needed. |
Value | Description |
---|---|
true | RMC call initialization succeeded. |
false | Failure. |
Rates data.
To perform evaluation, the data slot must be initialized ahead of time. The rating is initialized by DataStorePreparePostParam::SetRatingSetting
when performing DataStoreClient::PostObject
. When this function is called to self-rate data that is prohibited from being self-rated or to rate data with a duplicate lock, it returns QERROR(DataStore, OperationNotAllowed)
. You can check whether a duplicate lock is present and check the lock period, by getting DataStoreRatingLog
with the DataStoreClient::GetRating
function. Only people who have access rights to the targeted data can rate it.
QERROR(DataStore, OperationNotAllowed)
case.CONFIDENTIAL