Added isFailure().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4664 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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 ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user