Chat revamp, phase 2.
- FeedbackMessage has been subsumed into SystemMessage, which now has three modes: INFO, FEEDBACK, or ATTENTION. - Cleaned up methods for sending those system messages. - on the server: sendInfo(), sendFeedback(), sendAttention() - on the client: displayInfo(), displayFeedback(), displayAttention(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2635 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
//
|
||||
// $Id: FeedbackMessage.java,v 1.2 2003/06/03 21:41:33 ray Exp $
|
||||
|
||||
package com.threerings.crowd.chat.data;
|
||||
|
||||
/**
|
||||
* A ChatMessage to indicate to the user that an action they took
|
||||
* has been processed.
|
||||
*/
|
||||
public class FeedbackMessage extends ChatMessage
|
||||
{
|
||||
public FeedbackMessage ()
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a FeedbackMessage.
|
||||
*/
|
||||
public FeedbackMessage (String message, String localtype)
|
||||
{
|
||||
super(message, localtype);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SystemMessage.java,v 1.2 2003/06/03 21:41:33 ray Exp $
|
||||
// $Id: SystemMessage.java,v 1.3 2003/06/04 02:50:18 ray Exp $
|
||||
|
||||
package com.threerings.crowd.chat.data;
|
||||
|
||||
@@ -9,6 +9,23 @@ package com.threerings.crowd.chat.data;
|
||||
*/
|
||||
public class SystemMessage extends ChatMessage
|
||||
{
|
||||
/** Attention level constant to indicate that this message is merely
|
||||
* providing the user with information. */
|
||||
public static final byte INFO = 0;
|
||||
|
||||
/** Attention level constant to indicate that this message is the
|
||||
* result of a user action. */
|
||||
public static final byte FEEDBACK = 1;
|
||||
|
||||
/** Attention level constant to indicate that some action is required. */
|
||||
public static final byte ATTENTION = 2;
|
||||
|
||||
//----
|
||||
|
||||
/** The attention level of this message. */
|
||||
public byte attentionLevel;
|
||||
|
||||
// documentation inherited
|
||||
public SystemMessage ()
|
||||
{
|
||||
}
|
||||
@@ -16,8 +33,9 @@ public class SystemMessage extends ChatMessage
|
||||
/**
|
||||
* Construct a SystemMessage.
|
||||
*/
|
||||
public SystemMessage (String message, String bundle)
|
||||
public SystemMessage (String message, String bundle, byte attentionLevel)
|
||||
{
|
||||
super(message, bundle);
|
||||
this.attentionLevel = attentionLevel;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
//
|
||||
// $Id: TellFeedbackMessage.java,v 1.1 2003/06/03 23:46:10 ray Exp $
|
||||
// $Id: TellFeedbackMessage.java,v 1.2 2003/06/04 02:50:18 ray Exp $
|
||||
|
||||
package com.threerings.crowd.chat.data;
|
||||
|
||||
/**
|
||||
* A feedback message to indicate that a tell succeeded.
|
||||
*/
|
||||
public class TellFeedbackMessage extends FeedbackMessage
|
||||
public class TellFeedbackMessage extends ChatMessage
|
||||
{
|
||||
/**
|
||||
* A tell feedback message is only composed on the client.
|
||||
|
||||
Reference in New Issue
Block a user