public class ResponsePacket extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ResponsePacket() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCommand()
Returns the response's command number.
|
int |
getIdentifier()
Returns the response's identifier, which matches the pushed notification's.
|
String |
getMessage()
Returns a humand-friendly error message, as documented by Apple.
|
int |
getStatus()
Returns the response's status code (see getMessage() for a human-friendly status message instead).
|
boolean |
isValidErrorMessage()
Determine if this packet is a valid error-response packet.
|
protected void |
setCommand(int command) |
protected void |
setIdentifier(int identifier) |
protected void |
setStatus(int status) |
public int getCommand()
protected void setCommand(int command)
public int getStatus()
protected void setStatus(int status)
public boolean isValidErrorMessage()
public int getIdentifier()
protected void setIdentifier(int identifier)
public String getMessage()
Copyright © 2016. All rights reserved.