net.rim.pushsdk.subscription.sync
Class PPGSubscriberUpdateFailure

java.lang.Object
  extended by net.rim.pushsdk.subscription.sync.PPGSubscriberUpdateFailure
All Implemented Interfaces:
Serializable

public class PPGSubscriberUpdateFailure
extends Object
implements Serializable

Represents a failed attempt to update the status of a subscriber on the PPG end.

Author:
mdandrea
See Also:
Serialized Form

Constructor Summary
PPGSubscriberUpdateFailure()
          Creates a PPGSubscriberUpdateFailure.
PPGSubscriberUpdateFailure(SubscriptionType subType, String pushAppId, String pushAppPassword, String address)
          Creates a PPGSubscriberUpdateFailure with the specified parameters.
 
Method Summary
 boolean equals(Object obj)
          Returns true if two PPGSubscriberUpdateFailure are found to be equal and false otherwise.
 String getAddress()
          Gets the address of a subscriber.
 String getPushApplicationId()
          Gets the push application id.
 String getPushApplicationPassword()
          Gets the password for the push application.
 SubscriptionType getSubscriptionType()
          Gets the subscription operation type (i.e.
 int hashCode()
          Returns a hashcode for this PPGSubscriberUpdateFailure.
 void setAddress(String address)
          Sets the address of a subscriber.
 void setPushApplicationId(String pushApplicationId)
          Sets the push application id.
 void setPushApplicationPassword(String pushApplicationPassword)
          Sets the password of the push application.
 void setSubscriptionType(SubscriptionType subscriptionType)
          Sets the subscription operation type (i.e.
 String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PPGSubscriberUpdateFailure

public PPGSubscriberUpdateFailure(SubscriptionType subType,
                                  String pushAppId,
                                  String pushAppPassword,
                                  String address)
Creates a PPGSubscriberUpdateFailure with the specified parameters.

Parameters:
subType - the subscription type (i.e. suspend, resume, or unsubscribe)
pushAppId - the push application id
pushAppPassword - the push application password
address - the address of a subscriber (e.g. PIN)

PPGSubscriberUpdateFailure

public PPGSubscriberUpdateFailure()
Creates a PPGSubscriberUpdateFailure.

Method Detail

getSubscriptionType

public SubscriptionType getSubscriptionType()
Gets the subscription operation type (i.e. suspend, resume, or unsubscribe).

Returns:
the subscription operation type

setSubscriptionType

public void setSubscriptionType(SubscriptionType subscriptionType)
Sets the subscription operation type (i.e. suspend, resume, or unsubscribe).

Parameters:
subscriptionType - the subscription operation type

getPushApplicationId

public String getPushApplicationId()
Gets the push application id.

Returns:
the push application id

setPushApplicationId

public void setPushApplicationId(String pushApplicationId)
Sets the push application id.

Parameters:
pushApplicationId - the push application id

getPushApplicationPassword

public String getPushApplicationPassword()
Gets the password for the push application.

Returns:
the push application password

setPushApplicationPassword

public void setPushApplicationPassword(String pushApplicationPassword)
Sets the password of the push application.

Parameters:
pushApplicationPassword - the push application password

getAddress

public String getAddress()
Gets the address of a subscriber.

Returns:
the subscriber address

setAddress

public void setAddress(String address)
Sets the address of a subscriber.

Parameters:
address - the subscriber address

hashCode

public int hashCode()
Returns a hashcode for this PPGSubscriberUpdateFailure.

Overrides:
hashCode in class Object
Returns:
a hashcode for this PPGSubscriberUpdateFailure.

equals

public boolean equals(Object obj)
Returns true if two PPGSubscriberUpdateFailure are found to be equal and false otherwise.

Overrides:
equals in class Object
Returns:
whether two PPGSubscriberUpdateFailure are equal

toString

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

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


Copyright © 2011 Research In Motion. All Rights Reserved.