Search in sources :

Example 1 with UpdateOCVersionOperation

use of com.owncloud.android.operations.UpdateOCVersionOperation in project android by owncloud.

the class FileSyncAdapter method updateOCVersion.

/**
     * Updates the locally stored version value of the ownCloud server
     */
private void updateOCVersion() {
    UpdateOCVersionOperation update = new UpdateOCVersionOperation(getAccount(), getContext());
    RemoteOperationResult result = update.execute(getClient());
    if (!result.isSuccess()) {
        mLastFailedResult = result;
    }
}
Also used : RemoteOperationResult(com.owncloud.android.lib.common.operations.RemoteOperationResult) UpdateOCVersionOperation(com.owncloud.android.operations.UpdateOCVersionOperation)

Aggregations

RemoteOperationResult (com.owncloud.android.lib.common.operations.RemoteOperationResult)1 UpdateOCVersionOperation (com.owncloud.android.operations.UpdateOCVersionOperation)1