BlacklistService
Class to work with the blacklist
Constructors
- BlacklistService(IRestClient restClient)
-
Creates and initializes an instance of the BlacklistService class
Methods
- GetAsync(int blackListItemId)
-
Get telephone number from the blacklist by the unique identifier
Parameters
- blackListItemId
-
Unique identifier of the telephone number
Returns
Telephone blacklist item
- GetAsync(string odataQuery)
-
Get telephone numbers from the blacklist using OData filter
Parameters
- odataQuery
-
OData query object
Returns
List of the telephone blacklist items
- AddAsync(TelephoneBlacklistItem newItem)
-
Add telephone number to the blacklist
Parameters
- newItem
-
Telephone number to be added to the blacklist
Returns
Unique identifier of the new telephone number in the blacklist
- ImportAsync(TelephoneBlacklistItems blackListItems)
-
Add an array of telephone numbers to the blacklist. The number of added elements cannot be more than 10000.
Parameters
- blackListItems
-
Object which stored list of telephone numbers to be added to the blacklist
- PutAsync(int blacklistItemId, TelephoneBlacklistItem updateItem)
-
Update telephone number in the blacklist