getTopicNotificationsServiceRestriction static method
Returns topic notification 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> getTopicNotificationsServiceRestriction(
ServiceGroupType serviceType,
) {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getTopicNotificationsServiceRestriction',
args: serviceType.id,
);
final int packed = resultString['result'];
return OnlineRestrictions.values
.where((OnlineRestrictions element) => (packed & element.id) != 0)
.toSet();
}