public class PostLetterController extends BaseController
httpCallBack| Constructor and Description |
|---|
PostLetterController() |
| Modifier and Type | Method and Description |
|---|---|
String |
calculatePrice(PostLetter postLetter)
Calculate post letter price
|
void |
calculatePriceAsync(PostLetter postLetter,
APICallBack<String> callBack)
Calculate post letter price
|
String |
exportPostLetterHistory(String filename)
export post letter history
|
void |
exportPostLetterHistoryAsync(String filename,
APICallBack<String> callBack)
export post letter history
|
static PostLetterController |
getInstance()
Singleton pattern implementation
|
String |
getPostLetterHistory()
Get all post letter history
|
void |
getPostLetterHistoryAsync(APICallBack<String> callBack)
Get all post letter history
|
String |
sendPostLetter(PostLetter postLetter)
Send post letter
|
void |
sendPostLetterAsync(PostLetter postLetter,
APICallBack<String> callBack)
Send post letter
|
getClientInstance, getHttpCallBack, setClientInstance, setHttpCallBack, validateResponsepublic static PostLetterController getInstance()
public String sendPostLetter(PostLetter postLetter) throws Throwable
postLetter - Required parameter: Example:Throwablepublic void sendPostLetterAsync(PostLetter postLetter, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
postLetter - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String calculatePrice(PostLetter postLetter) throws Throwable
postLetter - Required parameter: Example:Throwablepublic void calculatePriceAsync(PostLetter postLetter, APICallBack<String> callBack) throws com.fasterxml.jackson.core.JsonProcessingException
postLetter - Required parameter: Example:com.fasterxml.jackson.core.JsonProcessingExceptionpublic String getPostLetterHistory() throws Throwable
Throwablepublic void getPostLetterHistoryAsync(APICallBack<String> callBack)
public String exportPostLetterHistory(String filename) throws Throwable
filename - Required parameter: Example:Throwablepublic void exportPostLetterHistoryAsync(String filename, APICallBack<String> callBack)
filename - Required parameter: Example:Copyright © 2017. All rights reserved.