Search in sources :

Example 1 with UpdateFileFolder

use of com.instructure.canvasapi2.models.UpdateFileFolder in project instructure-android by instructure.

the class FileFolderManager method updateFile.

public static void updateFile(long fileId, UpdateFileFolder updateFileFolder, final StatusCallback<FileFolder> callback) {
    if (isTesting() || mTesting) {
    // TODO
    } else {
        final RestBuilder adapter = new RestBuilder(callback);
        final RestParams params = new RestParams.Builder().build();
        FileFolderAPI.updateFile(fileId, updateFileFolder, adapter, callback, params);
    }
}
Also used : RestParams(com.instructure.canvasapi2.builders.RestParams) RestBuilder(com.instructure.canvasapi2.builders.RestBuilder)

Example 2 with UpdateFileFolder

use of com.instructure.canvasapi2.models.UpdateFileFolder in project instructure-android by instructure.

the class FileFolderManager method updateFolder.

public static void updateFolder(long folderId, UpdateFileFolder updateFileFolder, final StatusCallback<FileFolder> callback) {
    if (isTesting() || mTesting) {
    // TODO
    } else {
        final RestBuilder adapter = new RestBuilder(callback);
        final RestParams params = new RestParams.Builder().build();
        FileFolderAPI.updateFolder(folderId, updateFileFolder, adapter, callback, params);
    }
}
Also used : RestParams(com.instructure.canvasapi2.builders.RestParams) RestBuilder(com.instructure.canvasapi2.builders.RestBuilder)

Aggregations

RestBuilder (com.instructure.canvasapi2.builders.RestBuilder)2 RestParams (com.instructure.canvasapi2.builders.RestParams)2