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

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

public class GetPendingNotificationsResult
extends MethodResult<GetPendingNotifications>


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

getNotifications

public List<Notification> getNotifications()
Returns:
if MethodResult.isSuccessful() == true, returns the list of notifications the phone has not yet seen. Otherwise, returns null.

getPhoneId

public String getPhoneId()
Returns:
if MethodResult.isSuccessful() == false, returns the phoneId of the phone that does not exist on the server. Otherwise, returns null.

success

public static GetPendingNotificationsResult success(List<Notification> notifications)

failurePhoneDoesNotExist

public static GetPendingNotificationsResult failurePhoneDoesNotExist(String phoneId)


Copyright © 2012. All Rights Reserved.