com.realtime.xmpp.types
Class Presence

java.lang.Object
  |
  +--com.realtime.xmpp.types.Presence

public class Presence
extends java.lang.Object

Provide presence code information.

Version:
1.0 Copyright © 2002 Real Time Entertainment Group, LLC - All rights reserved.
Author:
Mike Prince

Field Summary
static Presence AWAY
           
static Presence CHAT
           
static Presence DND
           
protected  PresenceShow m_show
          The standard show code.
protected  java.lang.String m_sStatus
          The description.
static Presence XA
           
 
Constructor Summary
Presence(PresenceShow show, java.lang.String sStatus)
          Create a presence code.
 
Method Summary
 PresenceShow getShow()
          Provide the standardized show code.
 java.lang.String getStatus()
          Provide a descriptive text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_show

protected PresenceShow m_show
The standard show code.


m_sStatus

protected java.lang.String m_sStatus
The description.


AWAY

public static final Presence AWAY

CHAT

public static final Presence CHAT

XA

public static final Presence XA

DND

public static final Presence DND
Constructor Detail

Presence

public Presence(PresenceShow show,
                java.lang.String sStatus)

Create a presence code.

Parameters:
show - The value of the show field.
sStatus - Detailed information.
Method Detail

getShow

public PresenceShow getShow()

Provide the standardized show code.

* @return The standard show code. One of away, dnd, xa, and chat.


getStatus

public java.lang.String getStatus()

Provide a descriptive text.

* @return String



Copyright © 2002,2003 Real Time Entertainment Group, LLC. All Rights Reserved.