public class SMSActivateGetPricesResponse extends Object
| Constructor and Description |
|---|
SMSActivateGetPricesResponse(@NotNull Map<Integer,Map<String,SMSActivateGetPriceInfo>> smsActivateGetPriceMap)
Constructor response getPrices with data from server.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull SortedSet<Integer> |
getCountryIdSet()
Returns the sorted set with country id.
|
@NotNull SMSActivateGetPriceInfo |
getPriceInfo(int countryId,
@NotNull String serviceName)
Returns the object with info about service.
|
@NotNull Set<String> |
getServicesByCountryId(@NotNull Integer countryId)
Returns the set with short name service.
|
@NotNull Map<String,SMSActivateGetPriceInfo> |
getSmsActivateGetPriceMap(@NotNull Integer countryId)
Returns the map with services by country id.
|
public SMSActivateGetPricesResponse(@NotNull
@NotNull Map<Integer,Map<String,SMSActivateGetPriceInfo>> smsActivateGetPriceMap)
smsActivateGetPriceMap - map where first key is countryId, second key is service short name.@NotNull public @NotNull SMSActivateGetPriceInfo getPriceInfo(int countryId, @NotNull @NotNull String serviceName) throws SMSActivateBaseException
countryId - specified country id.serviceName - service short name.SMSActivateWrongParameterException - if country id or service name is incorrect.SMSActivateBaseException@NotNull public @NotNull Map<String,SMSActivateGetPriceInfo> getSmsActivateGetPriceMap(@NotNull @NotNull Integer countryId) throws SMSActivateWrongParameterException
countryId - country id.SMSActivateWrongParameterException - if country id is incorrect.@NotNull public @NotNull SortedSet<Integer> getCountryIdSet()
@NotNull public @NotNull Set<String> getServicesByCountryId(@NotNull @NotNull Integer countryId) throws SMSActivateWrongParameterException
countryId - country id.SMSActivateWrongParameterException - if country id is incorrect.Copyright © 2020. All rights reserved.