getOnlineServiceRestriction static method
Returns the online service restrictions for a service group.
Parameters
serviceType: the service group to query.
Returns
- Set<OnlineRestrictions>: the set of restrictions currently configured.
Implementation
static Set<OnlineRestrictions> getOnlineServiceRestriction(
ServiceGroupType serviceType,
) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getOnlineServiceRestriction',
args: serviceType.id,
);
final int packed = resultString['result'];
return OnlineRestrictions.values
.where((OnlineRestrictions element) => (packed & element.id) != 0)
.toSet();
}