From 1ca159fe346c56310d7c3687697dc1ad6a46800e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 16 Apr 2007 21:47:53 +0000 Subject: [PATCH] Added isFailure(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4664 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/crowd/chat/data/TellFeedbackMessage.as | 8 ++++++++ .../threerings/crowd/chat/data/TellFeedbackMessage.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/as/com/threerings/crowd/chat/data/TellFeedbackMessage.as b/src/as/com/threerings/crowd/chat/data/TellFeedbackMessage.as index 3a2c4ea10..fd80be990 100644 --- a/src/as/com/threerings/crowd/chat/data/TellFeedbackMessage.as +++ b/src/as/com/threerings/crowd/chat/data/TellFeedbackMessage.as @@ -38,6 +38,14 @@ public class TellFeedbackMessage extends UserMessage _failed = failed; } + /** + * Returns true if this is a failure feedback, false if it is successful tell feedback. + */ + public function isFailure () :Boolean + { + return _failed; + } + override public function getFormat () :String { return _failed ? null : "m.told_format"; diff --git a/src/java/com/threerings/crowd/chat/data/TellFeedbackMessage.java b/src/java/com/threerings/crowd/chat/data/TellFeedbackMessage.java index 02be1cce6..014bd4d96 100644 --- a/src/java/com/threerings/crowd/chat/data/TellFeedbackMessage.java +++ b/src/java/com/threerings/crowd/chat/data/TellFeedbackMessage.java @@ -38,6 +38,14 @@ public class TellFeedbackMessage extends UserMessage _failure = failure; } + /** + * Returns true if this is a failure feedback, false if it is successful tell feedback. + */ + public boolean isFailure () + { + return _failure; + } + @Override public String getFormat () {