|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.beem.project.beem.utils
Class PresenceType

java.lang.Objectcom.beem.project.beem.utils.PresenceType
public final class PresenceType
- extends Object
Utility class to deal with Presence type.
| Field Summary | |
|---|---|
static int |
AVAILABLE
The user is available to receive messages (default). |
static int |
ERROR
The presence packet contains an error message. |
static int |
SUBSCRIBE
Request subscription to recipient's presence. |
static int |
SUBSCRIBED
Grant subscription to sender's presence. |
static int |
UNAVAILABLE
The user is unavailable to receive messages. |
static int |
UNSUBSCRIBE
Request removal of subscription to sender's presence. |
static int |
UNSUBSCRIBED
Grant removal of subscription to sender's presence. |
| Method Summary | |
|---|---|
static int |
getPresenceType(Presence presence)
Get the presence type from a presence packet. |
static Presence.Type |
getPresenceTypeFrom(int type)
Get the smack presence mode for a status. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
AVAILABLE
public static final int AVAILABLE
- The user is available to receive messages (default).
- See Also:
- Constant Field Values
UNAVAILABLE
public static final int UNAVAILABLE
- The user is unavailable to receive messages.
- See Also:
- Constant Field Values
SUBSCRIBE
public static final int SUBSCRIBE
- Request subscription to recipient's presence.
- See Also:
- Constant Field Values
SUBSCRIBED
public static final int SUBSCRIBED
- Grant subscription to sender's presence.
- See Also:
- Constant Field Values
UNSUBSCRIBE
public static final int UNSUBSCRIBE
- Request removal of subscription to sender's presence.
- See Also:
- Constant Field Values
UNSUBSCRIBED
public static final int UNSUBSCRIBED
- Grant removal of subscription to sender's presence.
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- The presence packet contains an error message.
- See Also:
- Constant Field Values
| Method Detail |
|---|
getPresenceType
public static int getPresenceType(Presence presence)
- Get the presence type from a presence packet.
- Parameters:
presence- the presence type- Returns:
- an int representing the presence type
getPresenceTypeFrom
public static Presence.Type getPresenceTypeFrom(int type)
- Get the smack presence mode for a status.
- Parameters:
type- the status type in beem- Returns:
- the presence mode to use in presence packet or null if there is no mode to use
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2009 Beem-project.com. All Rights Reserved.

com.beem.project.beem.utils.PresenceType