Package pl.gsmservice.gateway
Class Common
- java.lang.Object
-
- pl.gsmservice.gateway.Common
-
public class Common extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncCommonasync()Switches to the async SDK.PingRequestBuilderping()Checks API availability and versionPingResponseping(java.util.Optional<Options> options)Checks API availability and versionPingResponsepingDirect()Checks API availability and version
-
-
-
Method Detail
-
async
public AsyncCommon async()
Switches to the async SDK.- Returns:
- The async SDK
-
ping
public PingRequestBuilder ping()
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Returns:
- The call builder
-
pingDirect
public PingResponse pingDirect() throws java.lang.Exception
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
ping
public PingResponse ping(java.util.Optional<Options> options) throws java.lang.Exception
Checks API availability and version
Check the API connection and the current API availability status. Also you will get the current API version number. The method doesn't accept any parameters. Please use builder style:
PingResponse res = sdk.common().ping() .call();
As a successful result aPingResponseobject will be returned.- Parameters:
options- additional options- Returns:
- The response from the API call
- Throws:
java.lang.Exception- if the API call fails
-
-