getTopicNotificationsServiceRestriction static method
- ServiceGroupType serviceType
Get topic notifications service restrictions.
Parameters
- IN serviceType The service group id, ServiceGroupType object
Returns
- The OnlineRestrictions set
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();
}