com.leafdigital.irc.api
Class ServerIRCMsg
java.lang.Object
leafchat.core.api.Msg
com.leafdigital.irc.api.IRCMsg
com.leafdigital.irc.api.ServerIRCMsg
- Direct Known Subclasses:
- NumericIRCMsg, ServerNoticeIRCMsg
public class ServerIRCMsg
- extends IRCMsg
IRC message that has a server as prefix
Constructor Summary |
ServerIRCMsg(java.lang.String sourceServer,
java.lang.String target)
|
Methods inherited from class com.leafdigital.irc.api.IRCMsg |
constructBytes, constructBytes, convertEncoding, convertISO, getCommand, getCommandBytes, getLine, getLineISO, getParamISO, getParams, getPrefix, getPrefixBytes, getServer, hasEncoding, includesPostfix, init, init, isParamInteger, setEncoding, splitBytes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
info
public static MessageInfo info
- Scripting event information.
ServerIRCMsg
public ServerIRCMsg(java.lang.String sourceServer,
java.lang.String target)
- Parameters:
sourceServer
- Server that sent the messagetarget
- Target of notice
setResponseID
public void setResponseID(int responseID)
- Used after construction to set the ID of the response (if applicable)
- Parameters:
responseID
- ID of response
getResponseID
public int getResponseID()
- Returns:
- Response ID or Server.UNTRACKED_REQUEST
getSourceServer
public java.lang.String getSourceServer()
- Returns:
- Server that sent the message
getTarget
public java.lang.String getTarget()
- Returns:
- Target of notice
toString
public java.lang.String toString()
- Overrides:
toString
in class IRCMsg
Copyright © 2011 Samuel Marshall. All rights reserved.