net.rim.pushsdk.pap.unmarshal
Class StatusQueryResult

java.lang.Object
  extended by net.rim.pushsdk.pap.unmarshal.ResponseResult
      extended by net.rim.pushsdk.pap.unmarshal.StatusQueryResult

public class StatusQueryResult
extends ResponseResult

Represents a result within a StatusQueryResponse.

Author:
mdicesare

Constructor Summary
StatusQueryResult()
          Default status query result constructor.
 
Method Summary
 void addAddress(String address)
          Adds an address to the addresses associated with the status query operation.
 AddressList getAddresses()
          Deprecated. As of release 1.1, replaced by getAddressList().
 List<String> getAddressList()
          Gets the address list associated with the status query operation.
 Date getEventTime()
          Gets the date and time at which the push message reached its final state.
 MessageState getMessageState()
          Gets the state of the push message.
 QualityOfService getQualityOfService()
          Gets the quality of service of the push message.
 void setAddresses(AddressList addresses)
          Deprecated. As of release 1.1, replaced by setAddressList(List).
 void setAddressList(List<String> addresses)
          Sets the address list associated with the status query operation.
 void setEventTime(Date eventTime)
          Sets the date and time at which the push message reached its final state.
 void setMessageState(MessageState messageState)
          Sets the state of the push message.
 void setQualityOfService(QualityOfService qualityOfService)
          Sets the quality of service of the push message.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class net.rim.pushsdk.pap.unmarshal.ResponseResult
getCode, getDescription, setCode, setDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StatusQueryResult

public StatusQueryResult()
Default status query result constructor.

Method Detail

getEventTime

public Date getEventTime()
Gets the date and time at which the push message reached its final state.

Returns:
the date at which the push message reached its final state

setEventTime

public void setEventTime(Date eventTime)
Sets the date and time at which the push message reached its final state.

Parameters:
eventTime - the date at which the push message reached its final state

getMessageState

public MessageState getMessageState()
Gets the state of the push message.

Returns:
the state of the push message

setMessageState

public void setMessageState(MessageState messageState)
Sets the state of the push message.

Parameters:
messageState - the state of the push message

getQualityOfService

public QualityOfService getQualityOfService()
Gets the quality of service of the push message.

Returns:
the quality of service of the push message

setQualityOfService

public void setQualityOfService(QualityOfService qualityOfService)
Sets the quality of service of the push message.

Parameters:
qualityOfService - the quality of service of the push message

getAddresses

@Deprecated
public AddressList getAddresses()
Deprecated. As of release 1.1, replaced by getAddressList().

Gets the addresses associated with the status query operation.

Returns:
the addresses of the status query operation

getAddressList

public List<String> getAddressList()
Gets the address list associated with the status query operation.

Returns:
the list of addresses
Since:
1.1

setAddresses

@Deprecated
public void setAddresses(AddressList addresses)
Deprecated. As of release 1.1, replaced by setAddressList(List).

Sets the addresses associated with the status query operation.

Parameters:
addresses - the addresses of the status query operation

setAddressList

public void setAddressList(List<String> addresses)
Sets the address list associated with the status query operation.

Parameters:
addresses - the address list
Since:
1.1

addAddress

public void addAddress(String address)
Adds an address to the addresses associated with the status query operation.

Parameters:
address - the address to be added

toString

public String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class ResponseResult
Returns:
a String representation of this object.


Copyright © 2011 Research In Motion. All Rights Reserved.