Back to project page uppidy-android-sdk.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCT...
If you think the Android project uppidy-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.uppidy.android.sdk.api; /*from www .ja va2s . c o m*/ import java.util.Date; import java.util.List; import java.util.Map; import org.springframework.social.ApiException; import org.springframework.social.MissingAuthorizationException; /** * Interface defining operations that can be used to backup messages to Uppidy. * * @author arudnev@uppidy.com */ public interface BackupOperations { List<ApiContainer> listContainers(Map<String, String> queryParams); ApiModifications saveContainer(ApiContainer data); void deleteContainer(String containerId); /** * Saves contacts, conversations, messages and attachments. * * @param containerId * id of backup container to sync to * @param data * sync data * @return {@link ApiModifications} with lists of created, updated or deleted entities * @throws ApiException * if there is an error while communicating with Uppidy. * @throws MissingAuthorizationException * if UppidyTemplate was not created with an access token. */ ApiModifications sync(String containerId, ApiSync data); List<ApiContact> listContacts(String containerId, Map<String, String> queryParams); List<ApiMessage> listMessages(String containerId, Map<String, String> queryParams); List<ApiConversation> listConversations(String containerId, Map<String, String> queryParams); ApiModifications upload(String containerId, List<ApiBodyPart> data); // List<ApiBodyPart> download(String containerId, List<ApiBodyPart> data); Date getFirstMessageSyncDate(String containerId); Date getLastMessageSyncDate(String containerId); }