edu.washington.cs.sounddetector.server.api.methodresult
Class GetSoundResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<GetSound>
edu.washington.cs.sounddetector.server.api.methodresult.GetSoundResult
public class GetSoundResult
- extends MethodResult<GetSound>
getSound
public byte[] getSound()
- Returns:
- if
MethodResult.isSuccessful()
is true, returns the sound requested, otherwise returns
null
getSoundId
public long getSoundId()
- Returns:
- if
MethodResult.isSuccessful()
is false, returns the id of the sound that was requested
but does not exist, otherwise returns null
success
public static GetSoundResult success(byte[] sound)
failureSoundDoesNotExist
public static GetSoundResult failureSoundDoesNotExist(long soundId)
Copyright © 2012. All Rights Reserved.