Package ch.autumo.commons.sms
Class TextAnywhere.SendSMSResponse
java.lang.Object
ch.autumo.commons.sms.TextAnywhere.SendSMSResponse
- Enclosing class:
- TextAnywhere
This class represents the API Response. It is automatically created starting
from the JSON object returned by the server, using the Jackson framework
object-mapper (with snake case).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet internal order ID.Get order ID.int
Get remaining credits.Get result.int
Get total sent.boolean
isValid()
Is it valid?void
setInternalOrderId
(String internal_order_id) Set internal order ID.void
setOrderId
(String order_id) Set order ID.void
setRemainingCredits
(int remaining_credits) Set remaining credits.void
Set result.void
setTotalSent
(int total_sent) Set total sent.
-
Constructor Details
-
SendSMSResponse
public SendSMSResponse()
-
-
Method Details
-
getResult
Get result.- Returns:
- result
-
setResult
Set result.- Parameters:
result
- result
-
getOrderId
Get order ID.- Returns:
- order ID
-
setOrderId
Set order ID.- Parameters:
order_id
- order ID
-
getTotalSent
public int getTotalSent()Get total sent.- Returns:
- total sent
-
setTotalSent
public void setTotalSent(int total_sent) Set total sent.- Parameters:
total_sent
- total sent
-
getRemainingCredits
public int getRemainingCredits()Get remaining credits.- Returns:
- remaining credits
-
setRemainingCredits
public void setRemainingCredits(int remaining_credits) Set remaining credits.- Parameters:
remaining_credits
- remaining credits
-
getInternalOrderId
Get internal order ID.- Returns:
- internal order ID
-
setInternalOrderId
Set internal order ID.- Parameters:
internal_order_id
- internal order ID
-
isValid
public boolean isValid()Is it valid?- Returns:
- valid?
-