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

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

public class GetOldNotificationsResult
extends MethodResult<GetOldNotifications>


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

failurePhoneDoesNotExist

public static GetOldNotificationsResult failurePhoneDoesNotExist(String phoneId)


Copyright © 2012. All Rights Reserved.