edu.washington.cs.sounddetector.server.api.methodresult
Class SetSoundClassPropertiesResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<SetSoundClassProperties>
edu.washington.cs.sounddetector.server.api.methodresult.SetSoundClassPropertiesResult
public class SetSoundClassPropertiesResult
- extends MethodResult<SetSoundClassProperties>
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.