prepareReporting static method
- int categId = 0,
Prepares reporting based on the current data source used by PositionService.
Parameters
- IN categId Report category ID, default = 0. If != 0, a dry run test is performed to check if the given category ID can be reported.
Returns if in dry run mode (category ID != 0):
- GemError.suspended.id - Report rate limit exceeded.
- GemError.invalidInput.id - categId is not a valid social report category ID.
- GemError.notFound.id - No valid data source position for reporting.
- GemError.required.id - No valid data source type for reporting, must be DataSourceType.live.
Returns if preparing mode (category ID == 0):
- GemError.suspended.id - Report rate limit exceeded.
- GemError.notFound.id - No valid data source position for reporting.
- value > 0 - The prepared operation ID.
Implementation
static int prepareReporting({final int categId = 0}) {
final OperationResult result = staticMethod(
'SocialOverlay',
'prepareReporting',
args: <String, dynamic>{'categId': categId},
);
return result['result'];
}