getOnlineServiceRestriction static method
- ServiceGroupType serviceType
Get online service restrictions.
Parameters
- IN serviceType The service group id, ServiceGroupType object
Returns
- The OnlineRestrictions set
Throws
- An exception if it fails.
Implementation
static Set<OnlineRestrictions> getOnlineServiceRestriction(
ServiceGroupType serviceType,
) {
final OperationResult resultString = objectMethod(
0,
'SdkSettings',
'getOnlineServiceRestriction',
args: serviceType.id,
);
final int packed = resultString['result'];
return OnlineRestrictions.values
.where(
(OnlineRestrictions element) => (packed & element.id) != 0,
)
.toSet();
}