Added isFailure().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4664 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2007-04-16 21:47:53 +00:00
parent 2ec9d50b6f
commit 1ca159fe34
2 changed files with 16 additions and 0 deletions
@@ -38,6 +38,14 @@ public class TellFeedbackMessage extends UserMessage
_failed = failed; _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 override public function getFormat () :String
{ {
return _failed ? null : "m.told_format"; return _failed ? null : "m.told_format";
@@ -38,6 +38,14 @@ public class TellFeedbackMessage extends UserMessage
_failure = failure; _failure = failure;
} }
/**
* Returns true if this is a failure feedback, false if it is successful tell feedback.
*/
public boolean isFailure ()
{
return _failure;
}
@Override @Override
public String getFormat () public String getFormat ()
{ {