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

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

public class SetSoundClassPropertiesResult
extends MethodResult<SetSoundClassProperties>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static SetSoundClassPropertiesResult failureDetectorIdDoesNotExist(String detectorId)
           
static SetSoundClassPropertiesResult failureSoundClassDoesNotExist(String soundClass)
           
 String getDetectorId()
           
 String getSoundClass()
           
static SetSoundClassPropertiesResult 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 and MethodResult.getReason() is DETECTOR_ID_DOES_NOT_EXIST, returns the detectorId that does not exist. If MethodResult.isSuccessful() returns true, returns null.

getSoundClass

public String getSoundClass()
Returns:
if MethodResult.isSuccessful() returns false and MethodResult.getReason() is SOUND_CLASS_DOES_NOT_EXIST, returns the soundClass that does not exist. If MethodResult.isSuccessful() returns true, returns null.

success

public static SetSoundClassPropertiesResult success()

failureDetectorIdDoesNotExist

public static SetSoundClassPropertiesResult failureDetectorIdDoesNotExist(String detectorId)

failureSoundClassDoesNotExist

public static SetSoundClassPropertiesResult failureSoundClassDoesNotExist(String soundClass)


Copyright © 2012. All Rights Reserved.