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

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

public class UnregisterReceiverPhoneResult
extends MethodResult<UnregisterReceiverPhone>


Nested Class Summary
 
Nested classes/interfaces inherited from class edu.washington.cs.sounddetector.server.api.MethodResult
MethodResult.FailureReason
 
Method Summary
static UnregisterReceiverPhoneResult failurePhoneDoesNotExist(String phoneId)
           
 String getPhoneId()
           
static UnregisterReceiverPhoneResult 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

getPhoneId

public String getPhoneId()
Returns:
if MethodResult.isSuccessful() == true, returns null, otherwise returns the phoneId of the phone that failed to be unregistered.

success

public static UnregisterReceiverPhoneResult success()

failurePhoneDoesNotExist

public static UnregisterReceiverPhoneResult failurePhoneDoesNotExist(String phoneId)


Copyright © 2012. All Rights Reserved.