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