|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectosnap.api.model.CoreMessage
public class CoreMessage
A message passed between a module and core only
Field Summary | |
---|---|
private CoreMessageCode |
_code
|
private java.lang.String |
_description
|
private java.lang.String |
_osnapUsername
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
CoreMessage(CoreMessageCode code,
java.lang.String description,
java.lang.String socialNetworkName)
Creates a CoreMessage. |
Method Summary | |
---|---|
CoreMessageCode |
getCode()
Gets the keyword contained in this message. |
java.lang.String |
getDescription()
Gets the description of the message |
java.lang.String |
getOSNAPUsername()
Gets the OSNAP Username contained in the message |
void |
setCode(CoreMessageCode code)
Sets the keyword for this message; |
void |
setDescription(java.lang.String description)
Sets the description for the message |
void |
setOSNAPUsername(java.lang.String socialNetworkName)
Sets the type of network the message came from/is going to |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private CoreMessageCode _code
private java.lang.String _description
private java.lang.String _osnapUsername
Constructor Detail |
---|
public CoreMessage(CoreMessageCode code, java.lang.String description, java.lang.String socialNetworkName)
code
- CoreMessageCode
description
- Information contained in this message.socialNetworkName
- The OSNAP Username of the module. null in case of Core.Method Detail |
---|
public java.lang.String getDescription()
getDescription
in interface MessageInterface
public void setDescription(java.lang.String description)
setDescription
in interface MessageInterface
description
- Information contained in the messagepublic CoreMessageCode getCode()
CoreMessageCode
for this messagepublic void setCode(CoreMessageCode code)
code
- CoreMessageCode
public java.lang.String getOSNAPUsername()
getOSNAPUsername
in interface MessageInterface
public void setOSNAPUsername(java.lang.String socialNetworkName)
socialNetworkName
- OSNAP Username
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |