prepareReporting static method
- int categId = 0,
Prepare reporting based on the current datasource 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 id 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
Throws
- An exception if it fails.
Implementation
static int prepareReporting({final int categId = 0}) {
final OperationResult result = staticMethod(
'SocialOverlay',
'prepareReporting',
args: <String, dynamic>{'categId': categId},
);
return result['result'];
}