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

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

public class GetSoundsResult
extends MethodResult<GetSounds>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static GetSoundsResult failureDetectorIdDoesNotExist(String detectorId)
           
 String getDetectorId()
           
 Map<SoundClass,List<Long>> getSounds()
           
static GetSoundsResult success(Map<SoundClass,List<Long>> sounds)
           
 
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

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.