com.sinch.sdk.domains.numbers.ActiveNumberService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sinch-sdk-java Show documentation
Show all versions of sinch-sdk-java Show documentation
SDK providing a Java API for the Sinch REST APIs.
package com.sinch.sdk.domains.numbers;
import com.sinch.sdk.core.exceptions.ApiException;
import com.sinch.sdk.domains.numbers.models.ActiveNumber;
import com.sinch.sdk.domains.numbers.models.requests.ActiveNumberListRequestParameters;
import com.sinch.sdk.domains.numbers.models.requests.ActiveNumberUpdateRequestParameters;
import com.sinch.sdk.domains.numbers.models.responses.ActiveNumberListResponse;
/**
* Active Numbers Service
*
* @see https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Active-Number
* @since 1.0
*/
public interface ActiveNumberService {
/**
* Lists active numbers for a project
*
* @param parameters Filtering criteria
* @return List of active numbers
* @since 1.0
*/
ActiveNumberListResponse list(ActiveNumberListRequestParameters parameters) throws ApiException;
/**
* Get active number information by phone number
*
* @param phoneNumber Phone number
* @return Active number information
* @since 1.0
*/
ActiveNumber get(String phoneNumber) throws ApiException;
/**
* Release an active number from the project
*
* @param phoneNumber Phone number
* @return Released active number
* @since 1.0
*/
ActiveNumber release(String phoneNumber) throws ApiException;
/**
* Update an active phone number
*
* @param phoneNumber Phone number
* @param parameters Parameters to be updated
* @return Updated active number
* @since 1.0
*/
ActiveNumber update(String phoneNumber, ActiveNumberUpdateRequestParameters parameters)
throws ApiException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy