com.Komunaldata.SmsGateway.Response
Class getSmsLengthResponse

java.lang.Object
  extended by com.Komunaldata.SmsGateway.Response.getSmsLengthResponse

public class getSmsLengthResponse
extends java.lang.Object

Return value for getSMSLength webservice.


Field Summary
protected  java.lang.String errorString
           
protected  boolean hasError
           
protected  java.lang.String userErrorString
           
 
Constructor Summary
getSmsLengthResponse(boolean hasError, java.lang.String errorString, java.lang.String userErrorString, java.lang.Integer returnValue)
           
 
Method Summary
 java.lang.String getErrorString()
           
 boolean getHasError()
           
 java.lang.Integer getReturnValue()
          Gets the number of SMS-es in which the SMS can be sent.
 java.lang.String getUserErrorString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hasError

protected boolean hasError

errorString

protected java.lang.String errorString

userErrorString

protected java.lang.String userErrorString
Constructor Detail

getSmsLengthResponse

public getSmsLengthResponse(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 false.
userErrorString - For storing excepted error, which can be displayed to user ("No Access", "Not enough credit", etc), else it is null.
returnValue - The number of SMS-es in which the SMS can be sent.
Method Detail

getReturnValue

public java.lang.Integer getReturnValue()
Gets the number of SMS-es in which the SMS can be sent.

Returns:

getErrorString

public java.lang.String getErrorString()

getHasError

public boolean getHasError()

getUserErrorString

public java.lang.String getUserErrorString()