net.rim.pushsdk.subscription.sync
Class SDKSubscriberUpdateFailure

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

public class SDKSubscriberUpdateFailure
extends Object
implements Serializable

Represents a failed attempt to update the status of a subscriber on the SDK side.

Author:
mdandrea
See Also:
Serialized Form

Constructor Summary
SDKSubscriberUpdateFailure()
          Creates a SDKSubscriberUpdateFailure.
SDKSubscriberUpdateFailure(SubscriptionType subType, String pushAppId, String subId)
          Creates a SDKSubscriberUpdateFailure with the specified parameters.
 
Method Summary
 boolean equals(Object obj)
          Returns true if two SDKSubscriberUpdateFailure are found to be equal and false otherwise.
 String getPushApplicationId()
          Gets the push application id.
 String getSubscriberId()
          Gets the id of the subscriber.
 SubscriptionType getSubscriptionType()
          Gets the subscription operation type (i.e.
 int hashCode()
          Returns a hashcode for this SDKSubscriberUpdateFailure.
 void setPushApplicationId(String pushApplicationId)
          Sets the push application id.
 void setSubscriberId(String subscriberId)
          Sets the id of the subscriber.
 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

SDKSubscriberUpdateFailure

public SDKSubscriberUpdateFailure(SubscriptionType subType,
                                  String pushAppId,
                                  String subId)
Creates a SDKSubscriberUpdateFailure with the specified parameters.

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

SDKSubscriberUpdateFailure

public SDKSubscriberUpdateFailure()
Creates a SDKSubscriberUpdateFailure.

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

getSubscriberId

public String getSubscriberId()
Gets the id of the subscriber.

Returns:
the subscriber id

setSubscriberId

public void setSubscriberId(String subscriberId)
Sets the id of the subscriber.

Parameters:
subscriberId - the subscriber id

hashCode

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

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

equals

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

Overrides:
equals in class Object
Returns:
whether two SDKSubscriberUpdateFailure 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.