|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.subscription.web.BaseRequest
net.rim.pushsdk.subscription.web.SubscribeRequest
public class SubscribeRequest
Represents the details of an HTTP request from a subscribe.
| Field Summary | |
|---|---|
static int |
ADDRESS_MAX_LENGTH
The maximum allowed length for a subscriber's address (e.g. |
static int |
MODEL_MAX_LENGTH
The maximum allowed length for the model number of a subscriber's device. |
static int |
OS_VERSION_MAX_LENGTH
The maximum allowed length for the OS version of a subscriber's device. |
static int |
SUBSCRIBER_ID_MAX_LENGTH
The maximum allowed length for the id of a subscriber. |
| Fields inherited from class net.rim.pushsdk.subscription.web.BaseRequest |
|---|
pushApplicationId, subscriberId |
| Constructor Summary | |
|---|---|
SubscribeRequest()
Constructs a subscribe request. |
|
SubscribeRequest(String pushApplicationId,
String subscriberId,
String address,
String osVersion,
String model)
Deprecated. As of release 1.1, replaced by the SubscribeRequest(String, String, String, String, String, SubscriberType) constructor instead. To use
this constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties
file by setting the use.public.push flag. |
|
SubscribeRequest(String pushApplicationId,
String subscriberId,
String address,
String osVersion,
String model,
SubscriberType type)
Constructs a subscribe request with the given subscription details. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two subscribe requests are found to be equal and false otherwise. |
String |
getAddress()
Gets the current value of the subscriber's address (e.g. |
String |
getModel()
Gets the current value of the model number of a subscriber's device. |
String |
getOsVersion()
Gets the current value of the OS version of a subscriber's device. |
SubscriberType |
getType()
Gets the type of the subscriber. |
int |
hashCode()
Returns a hashcode for this subscribe request. |
void |
setAddress(String address)
Sets the subscriber's address (e.g. |
void |
setModel(String model)
Sets the model number of a subscriber's device. |
void |
setOsVersion(String osVersion)
Sets the OS version of a subscriber's device. |
void |
setType(SubscriberType type)
Sets the type of the subscriber. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class net.rim.pushsdk.subscription.web.BaseRequest |
|---|
getPushApplicationId, getSubscriberId, setPushApplicationId, setSubscriberId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ADDRESS_MAX_LENGTH
public static final int OS_VERSION_MAX_LENGTH
public static final int MODEL_MAX_LENGTH
public static final int SUBSCRIBER_ID_MAX_LENGTH
| Constructor Detail |
|---|
public SubscribeRequest()
@Deprecated
public SubscribeRequest(String pushApplicationId,
String subscriberId,
String address,
String osVersion,
String model)
SubscribeRequest(String, String, String, String, String, SubscriberType) constructor instead. To use
this constructor, you must configure the SDK to be in public or enterprise mode through the PushSDK.properties
file by setting the use.public.push flag.
pushApplicationId - the app id of a push applicationsubscriberId - the id of a subscriber to a push applicationaddress - the address (e.g. PIN, email address) of a subscriberosVersion - the OS version of a subscriber's devicemodel - the model number of a subscriber's device
public SubscribeRequest(String pushApplicationId,
String subscriberId,
String address,
String osVersion,
String model,
SubscriberType type)
pushApplicationId - the app id of a push applicationsubscriberId - the id of a subscriber to a push applicationaddress - the address (e.g. PIN, email address) of a subscriberosVersion - the OS version of a subscriber's devicemodel - the model number of a subscriber's devicetype - the subscriber's type (i.e. public (BIS) or enterprise (BES); this parameter is allowed to be null if
pushApplicationId does not correspond to a push app of type Public+Enterprise Push)SubscriberType| Method Detail |
|---|
public String getAddress()
public void setAddress(String address)
address - the subscriber's addresspublic String getOsVersion()
public void setOsVersion(String osVersion)
osVersion - the OS version of a subscriber's devicepublic String getModel()
public void setModel(String model)
model - the model number of a subscriber's devicepublic SubscriberType getType()
SubscriberTypepublic void setType(SubscriberType type)
type - the subscriber's typeSubscriberTypepublic String toString()
String with all attributes in name = value format.
toString in class BaseRequestString representation of this object.public int hashCode()
hashCode in class BaseRequestpublic boolean equals(Object obj)
equals in class BaseRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||