edu.washington.cs.sounddetector.server.api.methodresult
Class GetPendingNotificationsResult
java.lang.Object
edu.washington.cs.sounddetector.server.api.MethodResult<GetPendingNotifications>
edu.washington.cs.sounddetector.server.api.methodresult.GetPendingNotificationsResult
public class GetPendingNotificationsResult
- extends MethodResult<GetPendingNotifications>
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.