wtanaka.praya.bnet
Class BnetUserMessage

java.lang.Object
  |
  +--wtanaka.praya.obj.Obj
        |
        +--wtanaka.praya.obj.Message
              |
              +--wtanaka.praya.bnet.BnetUserMessage
All Implemented Interfaces:
java.io.Serializable

public class BnetUserMessage
extends Message

Contains the list of users on the channel.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/11/04 06:38:49 $
Author:
$Author: wtanaka $
See Also:
Serialized Form

Field Summary
static int CHAT
           
static int D2DV
           
static int D2XP
           
static int DRTL
           
static int SEXP
           
static int STARCRAFT
           
private  int[] types
           
static int UNKNOWN
           
private  java.lang.String[] usernames
           
 
Fields inherited from class wtanaka.praya.obj.Message
generatedBy, score
 
Fields inherited from class wtanaka.praya.obj.Obj
CONTENTS, date, DATE, FROM, privThread, REVCONTENTS, REVDATE, REVFROM, REVSCORE, REVSUBJECT, SCORE, secretObject, SUBJECT
 
Constructor Summary
BnetUserMessage(Protocol p, java.lang.String[] usernames, int[] userTypes)
           
 
Method Summary
static int decodeType(java.lang.String msg)
           
 java.lang.String getContents()
           
 java.lang.String[] getUserList()
           
 int[] getUserTypes()
           
 Recipient replyRecipient()
          Gets the recipient to whom replies to this message will be sent, if applicable.
 
Methods inherited from class wtanaka.praya.obj.Message
changeScore, convertStringToHtml, getScore, getSourceProtocol, isSelfMessage, isStateChangeMessage, lessThan, renderAsHTML, renderAsHTML, renderAsString, setZombie, toString
 
Methods inherited from class wtanaka.praya.obj.Obj
getFrom, getSubject, getTimeStamp, isPrivileged, setPrivilegedThread, setSecretObject, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

usernames

private java.lang.String[] usernames

types

private int[] types

UNKNOWN

public static final int UNKNOWN

STARCRAFT

public static final int STARCRAFT

DRTL

public static final int DRTL

CHAT

public static final int CHAT

D2XP

public static final int D2XP

SEXP

public static final int SEXP

D2DV

public static final int D2DV
Constructor Detail

BnetUserMessage

public BnetUserMessage(Protocol p,
                       java.lang.String[] usernames,
                       int[] userTypes)
Method Detail

getContents

public java.lang.String getContents()
Overrides:
getContents in class Obj

getUserList

public java.lang.String[] getUserList()

getUserTypes

public int[] getUserTypes()

decodeType

public static int decodeType(java.lang.String msg)

replyRecipient

public Recipient replyRecipient()
Description copied from class: Message
Gets the recipient to whom replies to this message will be sent, if applicable.
Overrides:
replyRecipient in class Message
Following copied from class: wtanaka.praya.obj.Message
Returns:
the recipient object for replies to this message. If there is no relevant recipient (e.g. this a logout message) returns null.