edu.washington.cs.sounddetector.server.api.methodresult
Class GetSoundsResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<GetSounds>
edu.washington.cs.sounddetector.server.api.methodresult.GetSoundsResult
public class GetSoundsResult
- extends MethodResult<GetSounds>
getSounds
public Map<SoundClass,List<Long>> getSounds()
- Returns:
- if
MethodResult.isSuccessful()
is true, returns a map from sound classes to a list of
sound ids, otherwise returns null
getDetectorId
public String getDetectorId()
- Returns:
- if
MethodResult.isSuccessful()
is false, returns the detector id that does not exist,
otherwise returns null
success
public static GetSoundsResult success(Map<SoundClass,List<Long>> sounds)
failureDetectorIdDoesNotExist
public static GetSoundsResult failureDetectorIdDoesNotExist(String detectorId)
Copyright © 2012. All Rights Reserved.