edu.washington.cs.sounddetector.server.api.methodresult
Class RenameDetectorResult

java.lang.Object
  extended by edu.washington.cs.sounddetector.server.api.MethodResult<RenameDetector>
      extended by edu.washington.cs.sounddetector.server.api.methodresult.RenameDetectorResult

public class RenameDetectorResult
extends MethodResult<RenameDetector>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static RenameDetectorResult failureDetectorIdDoesNotExist(String detectorId)
           
 String getDetectorId()
           
static RenameDetectorResult success()
           
 
Methods inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
getReason, isSuccessful, setReason, setSuccessful, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDetectorId

public String getDetectorId()
Returns:
if MethodResult.isSuccessful() returns false, returns the detectorId that does not exist. Otherwise returns null.

success

public static RenameDetectorResult success()

failureDetectorIdDoesNotExist

public static RenameDetectorResult failureDetectorIdDoesNotExist(String detectorId)


Copyright © 2012. All Rights Reserved.