com.Komunaldata.SmsGateway.Response
Class getCreditResponse
java.lang.Object
com.Komunaldata.SmsGateway.Response.getCreditResponse
public class getCreditResponse
- extends java.lang.Object
Return value for all getCreditBy[User/Account] webservice call
Constructor Summary |
getCreditResponse(boolean hasError,
java.lang.String errorString,
java.lang.String userErrorString,
java.lang.Integer returnValue)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hasError
protected boolean hasError
errorString
protected java.lang.String errorString
userErrorString
protected java.lang.String userErrorString
getCreditResponse
public getCreditResponse(boolean hasError,
java.lang.String errorString,
java.lang.String userErrorString,
java.lang.Integer returnValue)
- Parameters:
hasError
- True if webservice reports an error, false otherwise.errorString
- For storing all kind of errors, in case of excepted error the value is the same as userErrorString. Only null when hasError is true.userErrorString
- For storing excepted error, which can be displayed to user ("No Access", "Not enough credit", etc), else it is null.returnValue
- Is the credit associated with the User/Account
getReturnValue
public java.lang.Integer getReturnValue()
- Gets the credit associated with the User/Account.
- Returns:
- credit
getErrorString
public java.lang.String getErrorString()
getHasError
public boolean getHasError()
getUserErrorString
public java.lang.String getUserErrorString()