id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
58,600 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getInfoRequest | public BoxRequestsBookmark.GetBookmarkInfo getInfoRequest(final String id) {
BoxRequestsBookmark.GetBookmarkInfo request = new BoxRequestsBookmark.GetBookmarkInfo(id, getBookmarkInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.GetBookmarkInfo getInfoRequest(final String id) {
BoxRequestsBookmark.GetBookmarkInfo request = new BoxRequestsBookmark.GetBookmarkInfo(id, getBookmarkInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"GetBookmarkInfo",
"getInfoRequest",
"(",
"final",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"GetBookmarkInfo",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"GetBookmarkInfo",
"(",
"id",
",",
"getBookmarkInfoUrl",
... | Gets a request that retrieves information on a bookmark
@param id id of bookmark to retrieve info on
@return request to get a bookmarks information | [
"Gets",
"a",
"request",
"that",
"retrieves",
"information",
"on",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L73-L76 |
58,601 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getCreateRequest | public BoxRequestsBookmark.CreateBookmark getCreateRequest(String parentId, String url) {
BoxRequestsBookmark.CreateBookmark request = new BoxRequestsBookmark.CreateBookmark(parentId, url, getBookmarksUrl(), mSession);
return request;
} | java | public BoxRequestsBookmark.CreateBookmark getCreateRequest(String parentId, String url) {
BoxRequestsBookmark.CreateBookmark request = new BoxRequestsBookmark.CreateBookmark(parentId, url, getBookmarksUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"CreateBookmark",
"getCreateRequest",
"(",
"String",
"parentId",
",",
"String",
"url",
")",
"{",
"BoxRequestsBookmark",
".",
"CreateBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"CreateBookmark",
"(",
"parentId",
"... | Gets a request that creates a bookmark in a parent bookmark
@param parentId id of the parent bookmark to create the bookmark in
@param url URL of the new bookmark
@return request to create a bookmark | [
"Gets",
"a",
"request",
"that",
"creates",
"a",
"bookmark",
"in",
"a",
"parent",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L85-L88 |
58,602 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getUpdateRequest | public BoxRequestsBookmark.UpdateBookmark getUpdateRequest(String id) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.UpdateBookmark getUpdateRequest(String id) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"getUpdateRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"(",
"id",
",",
"getBookmarkInfoUrl",
"(",
"id... | Gets a request that updates a bookmark's information
@param id id of bookmark to update information on
@return request to update a bookmark's information | [
"Gets",
"a",
"request",
"that",
"updates",
"a",
"bookmark",
"s",
"information"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L96-L99 |
58,603 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getCopyRequest | public BoxRequestsBookmark.CopyBookmark getCopyRequest(String id, String parentId) {
BoxRequestsBookmark.CopyBookmark request = new BoxRequestsBookmark.CopyBookmark(id, parentId, getBookmarkCopyUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.CopyBookmark getCopyRequest(String id, String parentId) {
BoxRequestsBookmark.CopyBookmark request = new BoxRequestsBookmark.CopyBookmark(id, parentId, getBookmarkCopyUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"CopyBookmark",
"getCopyRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsBookmark",
".",
"CopyBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"CopyBookmark",
"(",
"id",
",",
"parentId... | Gets a request that copies a bookmark
@param id id of the bookmark to copy
@param parentId id of the parent folder to copy the bookmark into
@return request to copy a bookmark | [
"Gets",
"a",
"request",
"that",
"copies",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L108-L111 |
58,604 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getRenameRequest | public BoxRequestsBookmark.UpdateBookmark getRenameRequest(String id, String newName) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
request.setName(newName);
return request;
} | java | public BoxRequestsBookmark.UpdateBookmark getRenameRequest(String id, String newName) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
request.setName(newName);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"getRenameRequest",
"(",
"String",
"id",
",",
"String",
"newName",
")",
"{",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"(",
"id",
",",
"g... | Gets a request that renames a bookmark
@param id id of bookmark to rename
@param newName id of bookmark to retrieve info on
@return request to rename a bookmark | [
"Gets",
"a",
"request",
"that",
"renames",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L120-L124 |
58,605 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getMoveRequest | public BoxRequestsBookmark.UpdateBookmark getMoveRequest(String id, String parentId) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
request.setParentId(parentId);
return request;
} | java | public BoxRequestsBookmark.UpdateBookmark getMoveRequest(String id, String parentId) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession);
request.setParentId(parentId);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"getMoveRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"(",
"id",
",",
"ge... | Gets a request that moves a bookmark to another folder
@param id id of bookmark to move
@param parentId id of parent folder to move bookmark into
@return request to move a bookmark | [
"Gets",
"a",
"request",
"that",
"moves",
"a",
"bookmark",
"to",
"another",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L133-L137 |
58,606 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getDeleteRequest | public BoxRequestsBookmark.DeleteBookmark getDeleteRequest(String id) {
BoxRequestsBookmark.DeleteBookmark request = new BoxRequestsBookmark.DeleteBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.DeleteBookmark getDeleteRequest(String id) {
BoxRequestsBookmark.DeleteBookmark request = new BoxRequestsBookmark.DeleteBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"DeleteBookmark",
"getDeleteRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"DeleteBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"DeleteBookmark",
"(",
"id",
",",
"getBookmarkInfoUrl",
"(",
"id... | Gets a request that deletes a bookmark
@param id id of bookmark to delete
@return request to delete a bookmark | [
"Gets",
"a",
"request",
"that",
"deletes",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L145-L148 |
58,607 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getCreateSharedLinkRequest | public BoxRequestsBookmark.UpdateSharedBookmark getCreateSharedLinkRequest(String id) {
BoxRequestsBookmark.UpdateSharedBookmark request = new BoxRequestsBookmark.UpdateSharedBookmark(id, getBookmarkInfoUrl(id), mSession)
.setAccess(null);
return request;
} | java | public BoxRequestsBookmark.UpdateSharedBookmark getCreateSharedLinkRequest(String id) {
BoxRequestsBookmark.UpdateSharedBookmark request = new BoxRequestsBookmark.UpdateSharedBookmark(id, getBookmarkInfoUrl(id), mSession)
.setAccess(null);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"UpdateSharedBookmark",
"getCreateSharedLinkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"UpdateSharedBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"UpdateSharedBookmark",
"(",
"id",
",",
"getBo... | Gets a request that creates a shared link for a bookmark
@param id id of bookmark to create shared link for
@return request to create a shared link for a bookmark | [
"Gets",
"a",
"request",
"that",
"creates",
"a",
"shared",
"link",
"for",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L156-L160 |
58,608 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getDisableSharedLinkRequest | public BoxRequestsBookmark.UpdateBookmark getDisableSharedLinkRequest(String id) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession)
.setSharedLink(null);
return request;
} | java | public BoxRequestsBookmark.UpdateBookmark getDisableSharedLinkRequest(String id) {
BoxRequestsBookmark.UpdateBookmark request = new BoxRequestsBookmark.UpdateBookmark(id, getBookmarkInfoUrl(id), mSession)
.setSharedLink(null);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"getDisableSharedLinkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"UpdateBookmark",
"(",
"id",
",",
"getBookmarkInfoUrl",
... | Gets a request that disables a shared link for a bookmark
@param id id of bookmark to disable a shared link for
@return request to create a shared link for a bookmark | [
"Gets",
"a",
"request",
"that",
"disables",
"a",
"shared",
"link",
"for",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L168-L172 |
58,609 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getAddCommentRequest | public BoxRequestsBookmark.AddCommentToBookmark getAddCommentRequest(String bookmarkId, String message) {
BoxRequestsBookmark.AddCommentToBookmark request = new BoxRequestsBookmark.AddCommentToBookmark(bookmarkId, message, getCommentUrl(), mSession);
return request;
} | java | public BoxRequestsBookmark.AddCommentToBookmark getAddCommentRequest(String bookmarkId, String message) {
BoxRequestsBookmark.AddCommentToBookmark request = new BoxRequestsBookmark.AddCommentToBookmark(bookmarkId, message, getCommentUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"AddCommentToBookmark",
"getAddCommentRequest",
"(",
"String",
"bookmarkId",
",",
"String",
"message",
")",
"{",
"BoxRequestsBookmark",
".",
"AddCommentToBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"AddCommentToBookmar... | Gets a request that adds a comment to a bookmark
@param bookmarkId id of the bookmark to add the comment to
@param message message for the comment that will be added
@return request to add a comment to a bookmark | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"comment",
"to",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L181-L184 |
58,610 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getTrashedBookmarkRequest | public BoxRequestsBookmark.GetTrashedBookmark getTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.GetTrashedBookmark request = new BoxRequestsBookmark.GetTrashedBookmark(id, getTrashedBookmarkUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.GetTrashedBookmark getTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.GetTrashedBookmark request = new BoxRequestsBookmark.GetTrashedBookmark(id, getTrashedBookmarkUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"GetTrashedBookmark",
"getTrashedBookmarkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"GetTrashedBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"GetTrashedBookmark",
"(",
"id",
",",
"getTrashedBo... | Gets a request that returns a bookmark in the trash
@param id id of bookmark to get in the trash
@return request to get a bookmark from the trash | [
"Gets",
"a",
"request",
"that",
"returns",
"a",
"bookmark",
"in",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L192-L195 |
58,611 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getDeleteTrashedBookmarkRequest | public BoxRequestsBookmark.DeleteTrashedBookmark getDeleteTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.DeleteTrashedBookmark request = new BoxRequestsBookmark.DeleteTrashedBookmark(id, getTrashedBookmarkUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.DeleteTrashedBookmark getDeleteTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.DeleteTrashedBookmark request = new BoxRequestsBookmark.DeleteTrashedBookmark(id, getTrashedBookmarkUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"DeleteTrashedBookmark",
"getDeleteTrashedBookmarkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"DeleteTrashedBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"DeleteTrashedBookmark",
"(",
"id",
",",
... | Gets a request that permanently deletes a bookmark from the trash
@param id id of bookmark to delete from the trash
@return request to permanently delete a bookmark from the trash | [
"Gets",
"a",
"request",
"that",
"permanently",
"deletes",
"a",
"bookmark",
"from",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L203-L206 |
58,612 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getRestoreTrashedBookmarkRequest | public BoxRequestsBookmark.RestoreTrashedBookmark getRestoreTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.RestoreTrashedBookmark request = new BoxRequestsBookmark.RestoreTrashedBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.RestoreTrashedBookmark getRestoreTrashedBookmarkRequest(String id) {
BoxRequestsBookmark.RestoreTrashedBookmark request = new BoxRequestsBookmark.RestoreTrashedBookmark(id, getBookmarkInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"RestoreTrashedBookmark",
"getRestoreTrashedBookmarkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"RestoreTrashedBookmark",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"RestoreTrashedBookmark",
"(",
"id",
"... | Gets a request that restores a trashed bookmark
@param id id of bookmark to restore
@return request to restore a bookmark from the trash | [
"Gets",
"a",
"request",
"that",
"restores",
"a",
"trashed",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L214-L217 |
58,613 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getCommentsRequest | public BoxRequestsBookmark.GetBookmarkComments getCommentsRequest(String id) {
BoxRequestsBookmark.GetBookmarkComments request = new BoxRequestsBookmark.GetBookmarkComments(id, getBookmarkCommentsUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.GetBookmarkComments getCommentsRequest(String id) {
BoxRequestsBookmark.GetBookmarkComments request = new BoxRequestsBookmark.GetBookmarkComments(id, getBookmarkCommentsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"GetBookmarkComments",
"getCommentsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"GetBookmarkComments",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"GetBookmarkComments",
"(",
"id",
",",
"getBookmarkComme... | Gets a request that retrieves the comments on a bookmark
@param id id of the bookmark to retrieve comments for
@return request to retrieve comments on a bookmark | [
"Gets",
"a",
"request",
"that",
"retrieves",
"the",
"comments",
"on",
"a",
"bookmark"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L225-L228 |
58,614 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getAddToCollectionRequest | public BoxRequestsBookmark.AddBookmarkToCollection getAddToCollectionRequest(String bookmarkId, String collectionId) {
BoxRequestsBookmark.AddBookmarkToCollection request = new BoxRequestsBookmark.AddBookmarkToCollection(bookmarkId, collectionId, getBookmarkInfoUrl(bookmarkId), mSession);
return request... | java | public BoxRequestsBookmark.AddBookmarkToCollection getAddToCollectionRequest(String bookmarkId, String collectionId) {
BoxRequestsBookmark.AddBookmarkToCollection request = new BoxRequestsBookmark.AddBookmarkToCollection(bookmarkId, collectionId, getBookmarkInfoUrl(bookmarkId), mSession);
return request... | [
"public",
"BoxRequestsBookmark",
".",
"AddBookmarkToCollection",
"getAddToCollectionRequest",
"(",
"String",
"bookmarkId",
",",
"String",
"collectionId",
")",
"{",
"BoxRequestsBookmark",
".",
"AddBookmarkToCollection",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"Add... | Gets a request that adds a bookmark to a collection
@param bookmarkId id of bookmark to add to collection
@param collectionId id of collection to add the bookmark to
@return request to add a bookmark to a collection | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"bookmark",
"to",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L237-L240 |
58,615 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java | BoxApiBookmark.getDeleteFromCollectionRequest | public BoxRequestsBookmark.DeleteBookmarkFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsBookmark.DeleteBookmarkFromCollection request = new BoxRequestsBookmark.DeleteBookmarkFromCollection(id, getBookmarkInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsBookmark.DeleteBookmarkFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsBookmark.DeleteBookmarkFromCollection request = new BoxRequestsBookmark.DeleteBookmarkFromCollection(id, getBookmarkInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsBookmark",
".",
"DeleteBookmarkFromCollection",
"getDeleteFromCollectionRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsBookmark",
".",
"DeleteBookmarkFromCollection",
"request",
"=",
"new",
"BoxRequestsBookmark",
".",
"DeleteBookmarkFromCollection",
... | Gets a request that removes a bookmark from a collection
@param id id of bookmark to delete from the collection
@return request to delete a bookmark from a collection | [
"Gets",
"a",
"request",
"that",
"removes",
"a",
"bookmark",
"from",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiBookmark.java#L248-L251 |
58,616 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/RealTimeServerConnection.java | RealTimeServerConnection.connect | public BoxSimpleMessage connect() {
mRetries = 0;
try {
BoxIteratorRealTimeServers servers = (BoxIteratorRealTimeServers)mRequest.send();
mBoxRealTimeServer = servers.get(0);
} catch (BoxException e){
mChangeListener.onException(e, this);
return nu... | java | public BoxSimpleMessage connect() {
mRetries = 0;
try {
BoxIteratorRealTimeServers servers = (BoxIteratorRealTimeServers)mRequest.send();
mBoxRealTimeServer = servers.get(0);
} catch (BoxException e){
mChangeListener.onException(e, this);
return nu... | [
"public",
"BoxSimpleMessage",
"connect",
"(",
")",
"{",
"mRetries",
"=",
"0",
";",
"try",
"{",
"BoxIteratorRealTimeServers",
"servers",
"=",
"(",
"BoxIteratorRealTimeServers",
")",
"mRequest",
".",
"send",
"(",
")",
";",
"mBoxRealTimeServer",
"=",
"servers",
"."... | Returns a message once a change has been detected or error occurs. Otherwise this method will continue reconnecting.
@return A BoxSimpleMessage with a simple message indicating a change in the user's account. | [
"Returns",
"a",
"message",
"once",
"a",
"change",
"has",
"been",
"detected",
"or",
"error",
"occurs",
".",
"Otherwise",
"this",
"method",
"will",
"continue",
"reconnecting",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/RealTimeServerConnection.java#L88-L131 |
58,617 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestMultipart.java | BoxRequestMultipart.putField | public void putField(String key, Date value) {
this.fields.put(key, BoxDateFormat.format(value));
} | java | public void putField(String key, Date value) {
this.fields.put(key, BoxDateFormat.format(value));
} | [
"public",
"void",
"putField",
"(",
"String",
"key",
",",
"Date",
"value",
")",
"{",
"this",
".",
"fields",
".",
"put",
"(",
"key",
",",
"BoxDateFormat",
".",
"format",
"(",
"value",
")",
")",
";",
"}"
] | Adds or updates a multipart field in this request.
@param key the field's key.
@param value the field's value. | [
"Adds",
"or",
"updates",
"a",
"multipart",
"field",
"in",
"this",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestMultipart.java#L75-L77 |
58,618 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestMultipart.java | BoxRequestMultipart.setFile | public void setFile(InputStream inputStream, String filename, long fileSize) {
this.setFile(inputStream, filename);
this.fileSize = fileSize;
} | java | public void setFile(InputStream inputStream, String filename, long fileSize) {
this.setFile(inputStream, filename);
this.fileSize = fileSize;
} | [
"public",
"void",
"setFile",
"(",
"InputStream",
"inputStream",
",",
"String",
"filename",
",",
"long",
"fileSize",
")",
"{",
"this",
".",
"setFile",
"(",
"inputStream",
",",
"filename",
")",
";",
"this",
".",
"fileSize",
"=",
"fileSize",
";",
"}"
] | Sets the file contents of this request.
@param inputStream a stream containing the file contents.
@param filename the name of the file.
@param fileSize the size of the file. | [
"Sets",
"the",
"file",
"contents",
"of",
"this",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestMultipart.java#L95-L98 |
58,619 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxRepresentation.java | BoxRepresentation.getRepresentationHintString | public static String getRepresentationHintString(String repType, String repSize) {
StringBuffer sb = new StringBuffer(repType);
if(TYPE_JPG.equals(repType) || TYPE_PNG.equals(repType)) {
if(TextUtils.isEmpty(repSize)) {
throw new InvalidParameterException("Size is not optiona... | java | public static String getRepresentationHintString(String repType, String repSize) {
StringBuffer sb = new StringBuffer(repType);
if(TYPE_JPG.equals(repType) || TYPE_PNG.equals(repType)) {
if(TextUtils.isEmpty(repSize)) {
throw new InvalidParameterException("Size is not optiona... | [
"public",
"static",
"String",
"getRepresentationHintString",
"(",
"String",
"repType",
",",
"String",
"repSize",
")",
"{",
"StringBuffer",
"sb",
"=",
"new",
"StringBuffer",
"(",
"repType",
")",
";",
"if",
"(",
"TYPE_JPG",
".",
"equals",
"(",
"repType",
")",
... | Helper method to generate representation hint string
@param repType the type of representation
@param repSize the size of representation, used for image types. (please refer to dimension string
@return string that can be used on server requests hinting the type of representation to return | [
"Helper",
"method",
"to",
"generate",
"representation",
"hint",
"string"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxRepresentation.java#L165-L174 |
58,620 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorEnterpriseEvents.java | BoxIteratorEnterpriseEvents.getNextStreamPosition | public Long getNextStreamPosition() {
String longValue = getPropertyAsString(FIELD_NEXT_STREAM_POSITION);
return Long.parseLong(longValue.replace("\"", ""));
} | java | public Long getNextStreamPosition() {
String longValue = getPropertyAsString(FIELD_NEXT_STREAM_POSITION);
return Long.parseLong(longValue.replace("\"", ""));
} | [
"public",
"Long",
"getNextStreamPosition",
"(",
")",
"{",
"String",
"longValue",
"=",
"getPropertyAsString",
"(",
"FIELD_NEXT_STREAM_POSITION",
")",
";",
"return",
"Long",
".",
"parseLong",
"(",
"longValue",
".",
"replace",
"(",
"\"\\\"\"",
",",
"\"\"",
")",
")"... | Gets the next position in the event stream that you should request in order to get the next events.
@return next position in the event stream to request in order to get the next events. | [
"Gets",
"the",
"next",
"position",
"in",
"the",
"event",
"stream",
"that",
"you",
"should",
"request",
"in",
"order",
"to",
"get",
"the",
"next",
"events",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxIteratorEnterpriseEvents.java#L31-L34 |
58,621 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxFile.java | BoxFile.createFromIdAndName | public static BoxFile createFromIdAndName(String fileId, String name) {
JsonObject object = new JsonObject();
object.add(BoxItem.FIELD_ID, fileId);
object.add(BoxItem.FIELD_TYPE, BoxFile.TYPE);
if (!TextUtils.isEmpty(name)) {
object.add(BoxItem.FIELD_NAME, name);
}
... | java | public static BoxFile createFromIdAndName(String fileId, String name) {
JsonObject object = new JsonObject();
object.add(BoxItem.FIELD_ID, fileId);
object.add(BoxItem.FIELD_TYPE, BoxFile.TYPE);
if (!TextUtils.isEmpty(name)) {
object.add(BoxItem.FIELD_NAME, name);
}
... | [
"public",
"static",
"BoxFile",
"createFromIdAndName",
"(",
"String",
"fileId",
",",
"String",
"name",
")",
"{",
"JsonObject",
"object",
"=",
"new",
"JsonObject",
"(",
")",
";",
"object",
".",
"add",
"(",
"BoxItem",
".",
"FIELD_ID",
",",
"fileId",
")",
";",... | A convenience method to create an empty file with just the id and type fields set. This allows
the ability to interact with the content sdk in a more descriptive and type safe manner
@param fileId the id of file to create
@param name the name of the file to create
@return an empty BoxFile object that only contains id ... | [
"A",
"convenience",
"method",
"to",
"create",
"an",
"empty",
"file",
"with",
"just",
"the",
"id",
"and",
"type",
"fields",
"set",
".",
"This",
"allows",
"the",
"ability",
"to",
"interact",
"with",
"the",
"content",
"sdk",
"in",
"a",
"more",
"descriptive",
... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxFile.java#L103-L111 |
58,622 | box/box-android-sdk | box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java | MainActivity.loadRootFolder | private void loadRootFolder() {
new Thread() {
@Override
public void run() {
try {
//Api to fetch root folder
final BoxIteratorItems folderItems = mFolderApi.getItemsRequest(BoxConstants.ROOT_FOLDER_ID).send();
r... | java | private void loadRootFolder() {
new Thread() {
@Override
public void run() {
try {
//Api to fetch root folder
final BoxIteratorItems folderItems = mFolderApi.getItemsRequest(BoxConstants.ROOT_FOLDER_ID).send();
r... | [
"private",
"void",
"loadRootFolder",
"(",
")",
"{",
"new",
"Thread",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"run",
"(",
")",
"{",
"try",
"{",
"//Api to fetch root folder",
"final",
"BoxIteratorItems",
"folderItems",
"=",
"mFolderApi",
".",
"getItems... | Method to demonstrate fetching folder items from the root folder | [
"Method",
"to",
"demonstrate",
"fetching",
"folder",
"items",
"from",
"the",
"root",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java#L123-L145 |
58,623 | box/box-android-sdk | box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java | MainActivity.uploadSampleFile | private void uploadSampleFile() {
mDialog = ProgressDialog.show(MainActivity.this, getText(R.string.boxsdk_Please_wait), getText(R.string.boxsdk_Please_wait));
new Thread() {
@Override
public void run() {
try {
String uploadFileName = "box_logo... | java | private void uploadSampleFile() {
mDialog = ProgressDialog.show(MainActivity.this, getText(R.string.boxsdk_Please_wait), getText(R.string.boxsdk_Please_wait));
new Thread() {
@Override
public void run() {
try {
String uploadFileName = "box_logo... | [
"private",
"void",
"uploadSampleFile",
"(",
")",
"{",
"mDialog",
"=",
"ProgressDialog",
".",
"show",
"(",
"MainActivity",
".",
"this",
",",
"getText",
"(",
"R",
".",
"string",
".",
"boxsdk_Please_wait",
")",
",",
"getText",
"(",
"R",
".",
"string",
".",
... | Method demonstrates a sample file being uploaded using the file api | [
"Method",
"demonstrates",
"a",
"sample",
"file",
"being",
"uploaded",
"using",
"the",
"file",
"api"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java#L150-L183 |
58,624 | box/box-android-sdk | box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java | MainActivity.uploadNewVersion | private void uploadNewVersion(final BoxFile file) {
new Thread() {
@Override
public void run() {
try {
String uploadFileName = "box_logo.png";
InputStream uploadStream = getResources().getAssets().open(uploadFileName);
... | java | private void uploadNewVersion(final BoxFile file) {
new Thread() {
@Override
public void run() {
try {
String uploadFileName = "box_logo.png";
InputStream uploadStream = getResources().getAssets().open(uploadFileName);
... | [
"private",
"void",
"uploadNewVersion",
"(",
"final",
"BoxFile",
"file",
")",
"{",
"new",
"Thread",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"run",
"(",
")",
"{",
"try",
"{",
"String",
"uploadFileName",
"=",
"\"box_logo.png\"",
";",
"InputStream",
... | Method demonstrates a new version of a file being uploaded using the file api
@param file | [
"Method",
"demonstrates",
"a",
"new",
"version",
"of",
"a",
"file",
"being",
"uploaded",
"using",
"the",
"file",
"api"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sample/src/main/java/com/box/androidsdk/sample/MainActivity.java#L189-L209 |
58,625 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.copyStream | public static void copyStream(final InputStream inputStream, final OutputStream outputStream) throws IOException,
InterruptedException {
copyStream(inputStream, outputStream, null);
} | java | public static void copyStream(final InputStream inputStream, final OutputStream outputStream) throws IOException,
InterruptedException {
copyStream(inputStream, outputStream, null);
} | [
"public",
"static",
"void",
"copyStream",
"(",
"final",
"InputStream",
"inputStream",
",",
"final",
"OutputStream",
"outputStream",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"copyStream",
"(",
"inputStream",
",",
"outputStream",
",",
"null",
")... | Utility method to write given inputStream to given outputStream.
@param inputStream the inputStream to copy from.
@param outputStream the outputStream to write to.
@throws IOException thrown if there was a problem reading from inputStream or writing to outputStream.
@throws InterruptedException thrown if the... | [
"Utility",
"method",
"to",
"write",
"given",
"inputStream",
"to",
"given",
"outputStream",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L74-L77 |
58,626 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.copyStreamAndComputeSha1 | public static String copyStreamAndComputeSha1(final InputStream inputStream, final OutputStream outputStream)
throws NoSuchAlgorithmException, IOException, InterruptedException {
MessageDigest md = MessageDigest.getInstance("SHA-1");
copyStream(inputStream, outputStream, md);
return ... | java | public static String copyStreamAndComputeSha1(final InputStream inputStream, final OutputStream outputStream)
throws NoSuchAlgorithmException, IOException, InterruptedException {
MessageDigest md = MessageDigest.getInstance("SHA-1");
copyStream(inputStream, outputStream, md);
return ... | [
"public",
"static",
"String",
"copyStreamAndComputeSha1",
"(",
"final",
"InputStream",
"inputStream",
",",
"final",
"OutputStream",
"outputStream",
")",
"throws",
"NoSuchAlgorithmException",
",",
"IOException",
",",
"InterruptedException",
"{",
"MessageDigest",
"md",
"=",... | Utility method to write given inputStream to given outputStream and compute the sha1 while transferring the bytes
@param inputStream the inputStream to copy from.
@param outputStream the outputStream to write to.
@return
@throws IOException thrown if there was a problem reading from inputStream or writing to... | [
"Utility",
"method",
"to",
"write",
"given",
"inputStream",
"to",
"given",
"outputStream",
"and",
"compute",
"the",
"sha1",
"while",
"transferring",
"the",
"bytes"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L88-L93 |
58,627 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.copyStream | private static void copyStream(final InputStream inputStream, final OutputStream outputStream, MessageDigest messageDigest) throws IOException,
InterruptedException {
// Read the rest of the stream and write to the destination OutputStream.
final byte[] buffer = new byte[BUFFER_SIZE];
... | java | private static void copyStream(final InputStream inputStream, final OutputStream outputStream, MessageDigest messageDigest) throws IOException,
InterruptedException {
// Read the rest of the stream and write to the destination OutputStream.
final byte[] buffer = new byte[BUFFER_SIZE];
... | [
"private",
"static",
"void",
"copyStream",
"(",
"final",
"InputStream",
"inputStream",
",",
"final",
"OutputStream",
"outputStream",
",",
"MessageDigest",
"messageDigest",
")",
"throws",
"IOException",
",",
"InterruptedException",
"{",
"// Read the rest of the stream and wr... | Utility method to write given inputStream to given outputStream and update the messageDigest while transferring the bytes
@param inputStream the inputStream to copy from.
@param outputStream the outputStream to write to.
@param messageDigest messageDigest to update with the outpu
@throws IOException thrown... | [
"Utility",
"method",
"to",
"write",
"given",
"inputStream",
"to",
"given",
"outputStream",
"and",
"update",
"the",
"messageDigest",
"while",
"transferring",
"the",
"bytes"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L104-L136 |
58,628 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.createArrayOutputStream | public static OutputStream createArrayOutputStream(final OutputStream[] outputStreams) {
return new OutputStream() {
@Override
public void close() throws IOException {
for (OutputStream o : outputStreams) {
o.close();
}
... | java | public static OutputStream createArrayOutputStream(final OutputStream[] outputStreams) {
return new OutputStream() {
@Override
public void close() throws IOException {
for (OutputStream o : outputStreams) {
o.close();
}
... | [
"public",
"static",
"OutputStream",
"createArrayOutputStream",
"(",
"final",
"OutputStream",
"[",
"]",
"outputStreams",
")",
"{",
"return",
"new",
"OutputStream",
"(",
")",
"{",
"@",
"Override",
"public",
"void",
"close",
"(",
")",
"throws",
"IOException",
"{",
... | Helper method that wraps given arrays inside of a single outputstream.
@param outputStreams an array of multiple outputstreams.
@return a single outputstream that will write to provided outputstreams. | [
"Helper",
"method",
"that",
"wraps",
"given",
"arrays",
"inside",
"of",
"a",
"single",
"outputstream",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L144-L187 |
58,629 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.sha1 | public static String sha1(final InputStream inputStream) throws IOException, NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("SHA-1");
byte[] bytes = new byte[8192];
int byteCount;
while ((byteCount = inputStream.read(bytes)) > 0) {
md.update(bytes, 0,... | java | public static String sha1(final InputStream inputStream) throws IOException, NoSuchAlgorithmException {
MessageDigest md = MessageDigest.getInstance("SHA-1");
byte[] bytes = new byte[8192];
int byteCount;
while ((byteCount = inputStream.read(bytes)) > 0) {
md.update(bytes, 0,... | [
"public",
"static",
"String",
"sha1",
"(",
"final",
"InputStream",
"inputStream",
")",
"throws",
"IOException",
",",
"NoSuchAlgorithmException",
"{",
"MessageDigest",
"md",
"=",
"MessageDigest",
".",
"getInstance",
"(",
"\"SHA-1\"",
")",
";",
"byte",
"[",
"]",
"... | Utilitiy method to calculate sha1 based on given inputStream.
@param inputStream InputStream of file to calculate sha1 for.
@return the calculated sha1 for given stream.
@throws IOException thrown if there was issue getting stream content.
@throws NoSuchAlgorithmException thrown if Sha-1 algorithm impleme... | [
"Utilitiy",
"method",
"to",
"calculate",
"sha1",
"based",
"on",
"given",
"inputStream",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L227-L237 |
58,630 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.parseJsonValueToLong | public static long parseJsonValueToLong(JsonValue value) {
try {
return value.asLong();
} catch (UnsupportedOperationException e) {
String s = value.asString().replace("\"", "");
return Long.parseLong(s);
}
} | java | public static long parseJsonValueToLong(JsonValue value) {
try {
return value.asLong();
} catch (UnsupportedOperationException e) {
String s = value.asString().replace("\"", "");
return Long.parseLong(s);
}
} | [
"public",
"static",
"long",
"parseJsonValueToLong",
"(",
"JsonValue",
"value",
")",
"{",
"try",
"{",
"return",
"value",
".",
"asLong",
"(",
")",
";",
"}",
"catch",
"(",
"UnsupportedOperationException",
"e",
")",
"{",
"String",
"s",
"=",
"value",
".",
"asSt... | Parse a given JsonValue to a long regardless of whether that value is a String or a long.
@param value a JsonValue to parse to a long.
@return a long representation of the given value. Can throw a runtime exception (ParseException, UnsupportedOperationException, or NumberFormatException). | [
"Parse",
"a",
"given",
"JsonValue",
"to",
"a",
"long",
"regardless",
"of",
"whether",
"that",
"value",
"is",
"a",
"String",
"or",
"a",
"long",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L259-L266 |
58,631 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.parseJsonValueToInteger | public static long parseJsonValueToInteger(JsonValue value) {
try {
return value.asInt();
} catch (UnsupportedOperationException e) {
String s = value.asString().replace("\"", "");
return Integer.parseInt(s);
}
} | java | public static long parseJsonValueToInteger(JsonValue value) {
try {
return value.asInt();
} catch (UnsupportedOperationException e) {
String s = value.asString().replace("\"", "");
return Integer.parseInt(s);
}
} | [
"public",
"static",
"long",
"parseJsonValueToInteger",
"(",
"JsonValue",
"value",
")",
"{",
"try",
"{",
"return",
"value",
".",
"asInt",
"(",
")",
";",
"}",
"catch",
"(",
"UnsupportedOperationException",
"e",
")",
"{",
"String",
"s",
"=",
"value",
".",
"as... | Parse a given JsonValue to an int regardless of whether that value is a String or an int.
@param value a JsonValue to parse to an int.
@return an int representation of the given value. Can throw a runtime exception (ParseException, UnsupportedOperationException, or NumberFormatException). | [
"Parse",
"a",
"given",
"JsonValue",
"to",
"an",
"int",
"regardless",
"of",
"whether",
"that",
"value",
"is",
"a",
"String",
"or",
"an",
"int",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L274-L281 |
58,632 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.concatStringWithDelimiter | public static String concatStringWithDelimiter(String[] strings, String delimiter) {
StringBuilder sbr = new StringBuilder();
int size = strings.length;
for (int i = 0; i < size - 1; i++) {
sbr.append(strings[i]).append(delimiter);
}
sbr.append(strings[size - 1]);
... | java | public static String concatStringWithDelimiter(String[] strings, String delimiter) {
StringBuilder sbr = new StringBuilder();
int size = strings.length;
for (int i = 0; i < size - 1; i++) {
sbr.append(strings[i]).append(delimiter);
}
sbr.append(strings[size - 1]);
... | [
"public",
"static",
"String",
"concatStringWithDelimiter",
"(",
"String",
"[",
"]",
"strings",
",",
"String",
"delimiter",
")",
"{",
"StringBuilder",
"sbr",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"int",
"size",
"=",
"strings",
".",
"length",
";",
"for",... | Utility method to create a large String with the given delimiter.
@param strings Strings to concatenate.
@param delimiter The delimiter to use to put between each string item.
@return a large string with all items separated by given delimiter. | [
"Utility",
"method",
"to",
"create",
"a",
"large",
"String",
"with",
"the",
"given",
"delimiter",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L290-L298 |
58,633 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.cloneSerializable | public static <T extends Object> T cloneSerializable(T source) {
ByteArrayOutputStream baos = null;
ObjectOutputStream oos = null;
ByteArrayInputStream bais = null;
ObjectInputStream ois = null;
try {
baos = new ByteArrayOutputStream();
oos = new ObjectOut... | java | public static <T extends Object> T cloneSerializable(T source) {
ByteArrayOutputStream baos = null;
ObjectOutputStream oos = null;
ByteArrayInputStream bais = null;
ObjectInputStream ois = null;
try {
baos = new ByteArrayOutputStream();
oos = new ObjectOut... | [
"public",
"static",
"<",
"T",
"extends",
"Object",
">",
"T",
"cloneSerializable",
"(",
"T",
"source",
")",
"{",
"ByteArrayOutputStream",
"baos",
"=",
"null",
";",
"ObjectOutputStream",
"oos",
"=",
"null",
";",
"ByteArrayInputStream",
"bais",
"=",
"null",
";",
... | Helper method to clone a serializable object.
@param source the serializable object to clone.
@param <T> The class of the serializable object.
@return a clone of the given source object. | [
"Helper",
"method",
"to",
"clone",
"a",
"serializable",
"object",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L330-L350 |
58,634 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.convertSerializableToString | public static String convertSerializableToString(Serializable obj) {
ByteArrayOutputStream baos = null;
ObjectOutputStream oos = null;
try {
baos = new ByteArrayOutputStream();
oos = new ObjectOutputStream(baos);
oos.writeObject(obj);
return new S... | java | public static String convertSerializableToString(Serializable obj) {
ByteArrayOutputStream baos = null;
ObjectOutputStream oos = null;
try {
baos = new ByteArrayOutputStream();
oos = new ObjectOutputStream(baos);
oos.writeObject(obj);
return new S... | [
"public",
"static",
"String",
"convertSerializableToString",
"(",
"Serializable",
"obj",
")",
"{",
"ByteArrayOutputStream",
"baos",
"=",
"null",
";",
"ObjectOutputStream",
"oos",
"=",
"null",
";",
"try",
"{",
"baos",
"=",
"new",
"ByteArrayOutputStream",
"(",
")",
... | Helper method to write a serializable object into a String.
@param obj the Serializable object
@return a String representation of obj. | [
"Helper",
"method",
"to",
"write",
"a",
"serializable",
"object",
"into",
"a",
"String",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L358-L373 |
58,635 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.deleteFolderRecursive | public static boolean deleteFolderRecursive(final File f) {
if (f.isDirectory()) {
File[] files = f.listFiles();
if (files == null) {
return false;
}
for (File c : files) {
deleteFolderRecursive(c);
}
}
r... | java | public static boolean deleteFolderRecursive(final File f) {
if (f.isDirectory()) {
File[] files = f.listFiles();
if (files == null) {
return false;
}
for (File c : files) {
deleteFolderRecursive(c);
}
}
r... | [
"public",
"static",
"boolean",
"deleteFolderRecursive",
"(",
"final",
"File",
"f",
")",
"{",
"if",
"(",
"f",
".",
"isDirectory",
"(",
")",
")",
"{",
"File",
"[",
"]",
"files",
"=",
"f",
".",
"listFiles",
"(",
")",
";",
"if",
"(",
"files",
"==",
"nu... | Recursively delete a folder and all its subfolders and files.
@param f directory to be deleted.
@return True if the folder was deleted. | [
"Recursively",
"delete",
"a",
"folder",
"and",
"all",
"its",
"subfolders",
"and",
"files",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L396-L407 |
58,636 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.isInternetAvailable | public static boolean isInternetAvailable(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return isInternetAvailable... | java | public static boolean isInternetAvailable(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
return isInternetAvailable... | [
"public",
"static",
"boolean",
"isInternetAvailable",
"(",
"Context",
"context",
")",
"{",
"ConnectivityManager",
"connectivityManager",
"=",
"(",
"ConnectivityManager",
")",
"context",
".",
"getApplicationContext",
"(",
")",
".",
"getSystemService",
"(",
"Context",
"... | Check for an internet connection.
@param context current context.
@return whether or not there is a valid internet connection | [
"Check",
"for",
"an",
"internet",
"connection",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L415-L422 |
58,637 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.getAssetFile | public static String getAssetFile(final Context context, final String assetName) {
// if the file is not found create it and return that.
// if we do not have a file we copy our asset out to create one.
AssetManager assetManager = context.getAssets();
BufferedReader in = null;
tr... | java | public static String getAssetFile(final Context context, final String assetName) {
// if the file is not found create it and return that.
// if we do not have a file we copy our asset out to create one.
AssetManager assetManager = context.getAssets();
BufferedReader in = null;
tr... | [
"public",
"static",
"String",
"getAssetFile",
"(",
"final",
"Context",
"context",
",",
"final",
"String",
"assetName",
")",
"{",
"// if the file is not found create it and return that.",
"// if we do not have a file we copy our asset out to create one.",
"AssetManager",
"assetManag... | Helper method for reading an asset file into a string.
@param context current context.
@param assetName the asset name
@return a string representation of a file in assets. | [
"Helper",
"method",
"for",
"reading",
"an",
"asset",
"file",
"into",
"a",
"string",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L453-L486 |
58,638 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.toastSafely | public static void toastSafely(final Context context, final int resId, final int duration) {
Long lastToastTime = LAST_TOAST_TIME.get(resId);
if (lastToastTime != null && (lastToastTime + TOAST_MIN_REPEAT_DELAY) < System.currentTimeMillis()) {
return;
}
Looper mainLooper = Lo... | java | public static void toastSafely(final Context context, final int resId, final int duration) {
Long lastToastTime = LAST_TOAST_TIME.get(resId);
if (lastToastTime != null && (lastToastTime + TOAST_MIN_REPEAT_DELAY) < System.currentTimeMillis()) {
return;
}
Looper mainLooper = Lo... | [
"public",
"static",
"void",
"toastSafely",
"(",
"final",
"Context",
"context",
",",
"final",
"int",
"resId",
",",
"final",
"int",
"duration",
")",
"{",
"Long",
"lastToastTime",
"=",
"LAST_TOAST_TIME",
".",
"get",
"(",
"resId",
")",
";",
"if",
"(",
"lastToa... | Helper method for showing a toast message checking to see if user is on ui thread, and not showing the
same toast if it has already been shown within TOAST_MIN_REPEAT_DELAY time.
@param context current context.
@param resId string resource id to display.
@param duration Toast.LENGTH_LONG or Toast.LENGTH_SHORT. | [
"Helper",
"method",
"for",
"showing",
"a",
"toast",
"message",
"checking",
"to",
"see",
"if",
"user",
"is",
"on",
"ui",
"thread",
"and",
"not",
"showing",
"the",
"same",
"toast",
"if",
"it",
"has",
"already",
"been",
"shown",
"within",
"TOAST_MIN_REPEAT_DELA... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L523-L542 |
58,639 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.setInitialsThumb | public static void setInitialsThumb(Context context, TextView initialsView, String fullName) {
char initial1 = '\u0000';
char initial2 = '\u0000';
if (fullName != null) {
String[] nameParts = fullName.split(" ");
if (nameParts[0].length() > 0) {
initial1 =... | java | public static void setInitialsThumb(Context context, TextView initialsView, String fullName) {
char initial1 = '\u0000';
char initial2 = '\u0000';
if (fullName != null) {
String[] nameParts = fullName.split(" ");
if (nameParts[0].length() > 0) {
initial1 =... | [
"public",
"static",
"void",
"setInitialsThumb",
"(",
"Context",
"context",
",",
"TextView",
"initialsView",
",",
"String",
"fullName",
")",
"{",
"char",
"initial1",
"=",
"'",
"'",
";",
"char",
"initial2",
"=",
"'",
"'",
";",
"if",
"(",
"fullName",
"!=",
... | Helper method used to display initials into a given textview.
@param context current context
@param initialsView TextView used to set initials into.
@param fullName The user's full name to create initials for. | [
"Helper",
"method",
"used",
"to",
"display",
"initials",
"into",
"a",
"given",
"textview",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L551-L566 |
58,640 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.setCollabNumberThumb | public static void setCollabNumberThumb(Context context, TextView initialsView, int collabNumber) {
String collabNumberDisplay = (collabNumber >= 100) ? "+99" : "+" + Integer.toString(collabNumber);
setColorForCollabNumberThumb(initialsView);
initialsView.setTextColor(COLLAB_NUMBER_THUMB_COLOR);... | java | public static void setCollabNumberThumb(Context context, TextView initialsView, int collabNumber) {
String collabNumberDisplay = (collabNumber >= 100) ? "+99" : "+" + Integer.toString(collabNumber);
setColorForCollabNumberThumb(initialsView);
initialsView.setTextColor(COLLAB_NUMBER_THUMB_COLOR);... | [
"public",
"static",
"void",
"setCollabNumberThumb",
"(",
"Context",
"context",
",",
"TextView",
"initialsView",
",",
"int",
"collabNumber",
")",
"{",
"String",
"collabNumberDisplay",
"=",
"(",
"collabNumber",
">=",
"100",
")",
"?",
"\"+99\"",
":",
"\"+\"",
"+",
... | Helper method to display number of collaborators. If there are more than 99 collaborators it
would show "99+" due to the width constraint in the view.
@param context current context
@param initialsView TextView used to display number of collaborators
@param collabNumber Number of collaborators | [
"Helper",
"method",
"to",
"display",
"number",
"of",
"collaborators",
".",
"If",
"there",
"are",
"more",
"than",
"99",
"collaborators",
"it",
"would",
"show",
"99",
"+",
"due",
"to",
"the",
"width",
"constraint",
"in",
"the",
"view",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L576-L581 |
58,641 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.setColorsThumb | public static void setColorsThumb(TextView initialsView, int backgroundColor, int strokeColor) {
GradientDrawable drawable = (GradientDrawable) initialsView.getResources().getDrawable(R.drawable.boxsdk_thumb_background);
drawable.setColorFilter(backgroundColor, PorterDuff.Mode.MULTIPLY);
if (Bui... | java | public static void setColorsThumb(TextView initialsView, int backgroundColor, int strokeColor) {
GradientDrawable drawable = (GradientDrawable) initialsView.getResources().getDrawable(R.drawable.boxsdk_thumb_background);
drawable.setColorFilter(backgroundColor, PorterDuff.Mode.MULTIPLY);
if (Bui... | [
"public",
"static",
"void",
"setColorsThumb",
"(",
"TextView",
"initialsView",
",",
"int",
"backgroundColor",
",",
"int",
"strokeColor",
")",
"{",
"GradientDrawable",
"drawable",
"=",
"(",
"GradientDrawable",
")",
"initialsView",
".",
"getResources",
"(",
")",
"."... | Sets the the background thumb color for the account view to one of the material colors
@param initialsView view where the thumbs will be shown | [
"Sets",
"the",
"the",
"background",
"thumb",
"color",
"for",
"the",
"account",
"view",
"to",
"one",
"of",
"the",
"material",
"colors"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L599-L609 |
58,642 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.setColorForInitialsThumb | public static void setColorForInitialsThumb(TextView initialsView, int position) {
int backgroundColor = THUMB_COLORS[(position) % THUMB_COLORS.length];
setColorsThumb(initialsView, backgroundColor, Color.WHITE);
} | java | public static void setColorForInitialsThumb(TextView initialsView, int position) {
int backgroundColor = THUMB_COLORS[(position) % THUMB_COLORS.length];
setColorsThumb(initialsView, backgroundColor, Color.WHITE);
} | [
"public",
"static",
"void",
"setColorForInitialsThumb",
"(",
"TextView",
"initialsView",
",",
"int",
"position",
")",
"{",
"int",
"backgroundColor",
"=",
"THUMB_COLORS",
"[",
"(",
"position",
")",
"%",
"THUMB_COLORS",
".",
"length",
"]",
";",
"setColorsThumb",
"... | Sets the thumb color that displays users initials
@param initialsView TextView used to display number of collaborators
@param position Used to pick a material color from an array | [
"Sets",
"the",
"thumb",
"color",
"that",
"displays",
"users",
"initials"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L617-L620 |
58,643 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java | SdkUtils.getLocalizedFileSize | public static String getLocalizedFileSize(final Context context, double numSize) {
String localeLanguage = Locale.getDefault().getLanguage();
if (!SIZE_LANGUAGE.equals(localeLanguage) && context != null && context.getResources() != null) {
Resources resources = context.getResources();
... | java | public static String getLocalizedFileSize(final Context context, double numSize) {
String localeLanguage = Locale.getDefault().getLanguage();
if (!SIZE_LANGUAGE.equals(localeLanguage) && context != null && context.getResources() != null) {
Resources resources = context.getResources();
... | [
"public",
"static",
"String",
"getLocalizedFileSize",
"(",
"final",
"Context",
"context",
",",
"double",
"numSize",
")",
"{",
"String",
"localeLanguage",
"=",
"Locale",
".",
"getDefault",
"(",
")",
".",
"getLanguage",
"(",
")",
";",
"if",
"(",
"!",
"SIZE_LAN... | Java version of routine to turn a long into a short user readable string.
This routine is used if the JNI native C version is not available.
@param numSize the number of bytes in the file.
@return String Short human readable String e.g. 2.5 MB | [
"Java",
"version",
"of",
"routine",
"to",
"turn",
"a",
"long",
"into",
"a",
"short",
"user",
"readable",
"string",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/SdkUtils.java#L739-L771 |
58,644 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCollectionUpdate.java | BoxRequestCollectionUpdate.setCollectionId | protected R setCollectionId(String id) {
JsonArray jsonArray = new JsonArray();
if (!TextUtils.isEmpty(id)) {
BoxCollection col = BoxCollection.createFromId(id);
jsonArray.add(col.toJsonObject());
}
mBodyMap.put(FIELD_COLLECTIONS, jsonArray);
return (R) th... | java | protected R setCollectionId(String id) {
JsonArray jsonArray = new JsonArray();
if (!TextUtils.isEmpty(id)) {
BoxCollection col = BoxCollection.createFromId(id);
jsonArray.add(col.toJsonObject());
}
mBodyMap.put(FIELD_COLLECTIONS, jsonArray);
return (R) th... | [
"protected",
"R",
"setCollectionId",
"(",
"String",
"id",
")",
"{",
"JsonArray",
"jsonArray",
"=",
"new",
"JsonArray",
"(",
")",
";",
"if",
"(",
"!",
"TextUtils",
".",
"isEmpty",
"(",
"id",
")",
")",
"{",
"BoxCollection",
"col",
"=",
"BoxCollection",
"."... | Sets the id of the collection to update.
@param id id of the collection to update.
@return request with the updated collection id. | [
"Sets",
"the",
"id",
"of",
"the",
"collection",
"to",
"update",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestCollectionUpdate.java#L45-L53 |
58,645 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getInfoRequest | public BoxRequestsFolder.GetFolderInfo getInfoRequest(String id) {
BoxRequestsFolder.GetFolderInfo request = new BoxRequestsFolder.GetFolderInfo(id, getFolderInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.GetFolderInfo getInfoRequest(String id) {
BoxRequestsFolder.GetFolderInfo request = new BoxRequestsFolder.GetFolderInfo(id, getFolderInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"GetFolderInfo",
"getInfoRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"GetFolderInfo",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"GetFolderInfo",
"(",
"id",
",",
"getFolderInfoUrl",
"(",
"id",
")",
"... | Gets a request that retrieves information on a folder
@param id id of folder to retrieve info on
@return request to get a folders information | [
"Gets",
"a",
"request",
"that",
"retrieves",
"information",
"on",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L82-L85 |
58,646 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getItemsRequest | public BoxRequestsFolder.GetFolderItems getItemsRequest(String id) {
BoxRequestsFolder.GetFolderItems request = new BoxRequestsFolder.GetFolderItems(id, getFolderItemsUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.GetFolderItems getItemsRequest(String id) {
BoxRequestsFolder.GetFolderItems request = new BoxRequestsFolder.GetFolderItems(id, getFolderItemsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"GetFolderItems",
"getItemsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"GetFolderItems",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"GetFolderItems",
"(",
"id",
",",
"getFolderItemsUrl",
"(",
"id",
")"... | Gets a request that retrieves the items of a folder
@param id id of folder to get children on
@return request to get a folders children | [
"Gets",
"a",
"request",
"that",
"retrieves",
"the",
"items",
"of",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L94-L97 |
58,647 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getCreateRequest | public BoxRequestsFolder.CreateFolder getCreateRequest(String parentId, String name) {
BoxRequestsFolder.CreateFolder request = new BoxRequestsFolder.CreateFolder(parentId, name, getFoldersUrl(), mSession);
return request;
} | java | public BoxRequestsFolder.CreateFolder getCreateRequest(String parentId, String name) {
BoxRequestsFolder.CreateFolder request = new BoxRequestsFolder.CreateFolder(parentId, name, getFoldersUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"CreateFolder",
"getCreateRequest",
"(",
"String",
"parentId",
",",
"String",
"name",
")",
"{",
"BoxRequestsFolder",
".",
"CreateFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"CreateFolder",
"(",
"parentId",
",",
"name... | Gets a request that creates a folder in a parent folder
@param parentId id of the parent folder to create the folder in
@param name name of the new folder
@return request to create a folder | [
"Gets",
"a",
"request",
"that",
"creates",
"a",
"folder",
"in",
"a",
"parent",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L120-L123 |
58,648 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getUpdateRequest | public BoxRequestsFolder.UpdateFolder getUpdateRequest(String id) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.UpdateFolder getUpdateRequest(String id) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"UpdateFolder",
"getUpdateRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"UpdateFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"UpdateFolder",
"(",
"id",
",",
"getFolderInfoUrl",
"(",
"id",
")",
",... | Gets a request that updates a folders information
@param id id of folder to update information on
@return request to update a folders information | [
"Gets",
"a",
"request",
"that",
"updates",
"a",
"folders",
"information"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L132-L135 |
58,649 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getRenameRequest | public BoxRequestsFolder.UpdateFolder getRenameRequest(String id, String newName) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession)
.setName(newName);
return request;
} | java | public BoxRequestsFolder.UpdateFolder getRenameRequest(String id, String newName) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession)
.setName(newName);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"UpdateFolder",
"getRenameRequest",
"(",
"String",
"id",
",",
"String",
"newName",
")",
"{",
"BoxRequestsFolder",
".",
"UpdateFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"UpdateFolder",
"(",
"id",
",",
"getFolderInfo... | Gets a request that renames a folder
@param id id of folder to rename
@param newName id of folder to retrieve info on
@return request to rename a folder | [
"Gets",
"a",
"request",
"that",
"renames",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L144-L148 |
58,650 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getMoveRequest | public BoxRequestsFolder.UpdateFolder getMoveRequest(String id, String parentId) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession)
.setParentId(parentId);
return request;
} | java | public BoxRequestsFolder.UpdateFolder getMoveRequest(String id, String parentId) {
BoxRequestsFolder.UpdateFolder request = new BoxRequestsFolder.UpdateFolder(id, getFolderInfoUrl(id), mSession)
.setParentId(parentId);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"UpdateFolder",
"getMoveRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsFolder",
".",
"UpdateFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"UpdateFolder",
"(",
"id",
",",
"getFolderInfoU... | Gets a request that moves a folder to another folder
@param id id of folder to move
@param parentId id of parent folder to move folder into
@return request to move a folder | [
"Gets",
"a",
"request",
"that",
"moves",
"a",
"folder",
"to",
"another",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L157-L161 |
58,651 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getCopyRequest | public BoxRequestsFolder.CopyFolder getCopyRequest(String id, String parentId) {
BoxRequestsFolder.CopyFolder request = new BoxRequestsFolder.CopyFolder(id, parentId, getFolderCopyUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.CopyFolder getCopyRequest(String id, String parentId) {
BoxRequestsFolder.CopyFolder request = new BoxRequestsFolder.CopyFolder(id, parentId, getFolderCopyUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"CopyFolder",
"getCopyRequest",
"(",
"String",
"id",
",",
"String",
"parentId",
")",
"{",
"BoxRequestsFolder",
".",
"CopyFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"CopyFolder",
"(",
"id",
",",
"parentId",
",",
... | Gets a request that copies a folder
@param id id of folder to copy
@param parentId id of parent folder to copy folder into
@return request to copy a folder | [
"Gets",
"a",
"request",
"that",
"copies",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L170-L173 |
58,652 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getCollaborationsRequest | public BoxRequestsFolder.GetCollaborations getCollaborationsRequest(String id) {
BoxRequestsFolder.GetCollaborations request = new BoxRequestsFolder.GetCollaborations(id, getFolderCollaborationsUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.GetCollaborations getCollaborationsRequest(String id) {
BoxRequestsFolder.GetCollaborations request = new BoxRequestsFolder.GetCollaborations(id, getFolderCollaborationsUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"GetCollaborations",
"getCollaborationsRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"GetCollaborations",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"GetCollaborations",
"(",
"id",
",",
"getFolderCollaboration... | Gets a request that gets the collaborations of a folder
@param id id of folder to move
@return request to move a folder | [
"Gets",
"a",
"request",
"that",
"gets",
"the",
"collaborations",
"of",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L192-L195 |
58,653 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getCreateSharedLinkRequest | public BoxRequestsFolder.UpdateSharedFolder getCreateSharedLinkRequest(String id) {
BoxRequestsFolder.UpdateSharedFolder request = new BoxRequestsFolder.UpdateSharedFolder(id, getFolderInfoUrl(id), mSession)
.setAccess(null);
return request;
} | java | public BoxRequestsFolder.UpdateSharedFolder getCreateSharedLinkRequest(String id) {
BoxRequestsFolder.UpdateSharedFolder request = new BoxRequestsFolder.UpdateSharedFolder(id, getFolderInfoUrl(id), mSession)
.setAccess(null);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"UpdateSharedFolder",
"getCreateSharedLinkRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"UpdateSharedFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"UpdateSharedFolder",
"(",
"id",
",",
"getFolderInfoUrl"... | Gets a request that creates a shared link for a folder
@param id id of folder to create shared link for
@return request to create a shared link for a folder | [
"Gets",
"a",
"request",
"that",
"creates",
"a",
"shared",
"link",
"for",
"a",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L203-L207 |
58,654 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getAddToCollectionRequest | public BoxRequestsFolder.AddFolderToCollection getAddToCollectionRequest(String folderId, String collectionId) {
BoxRequestsFolder.AddFolderToCollection request = new BoxRequestsFolder.AddFolderToCollection(folderId, collectionId, getFolderInfoUrl(folderId), mSession);
return request;
} | java | public BoxRequestsFolder.AddFolderToCollection getAddToCollectionRequest(String folderId, String collectionId) {
BoxRequestsFolder.AddFolderToCollection request = new BoxRequestsFolder.AddFolderToCollection(folderId, collectionId, getFolderInfoUrl(folderId), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"AddFolderToCollection",
"getAddToCollectionRequest",
"(",
"String",
"folderId",
",",
"String",
"collectionId",
")",
"{",
"BoxRequestsFolder",
".",
"AddFolderToCollection",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"AddFolderToColl... | Gets a request that adds a folder to a collection
@param folderId id of folder to add to collection
@param collectionId id of collection to add the folder to
@return request to add a folder to a collection | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"folder",
"to",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L228-L231 |
58,655 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getDeleteFromCollectionRequest | public BoxRequestsFolder.DeleteFolderFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsFolder.DeleteFolderFromCollection request = new BoxRequestsFolder.DeleteFolderFromCollection(id, getFolderInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.DeleteFolderFromCollection getDeleteFromCollectionRequest(String id) {
BoxRequestsFolder.DeleteFolderFromCollection request = new BoxRequestsFolder.DeleteFolderFromCollection(id, getFolderInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"DeleteFolderFromCollection",
"getDeleteFromCollectionRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"DeleteFolderFromCollection",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"DeleteFolderFromCollection",
"(",
"id",... | Gets a request that removes a folder from a collection
@param id id of folder to delete from the collection
@return request to delete a folder from a collection | [
"Gets",
"a",
"request",
"that",
"removes",
"a",
"folder",
"from",
"a",
"collection"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L239-L242 |
58,656 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getTrashedItemsRequest | public BoxRequestsFolder.GetTrashedItems getTrashedItemsRequest() {
BoxRequestsFolder.GetTrashedItems request = new BoxRequestsFolder.GetTrashedItems(getTrashedItemsUrl(), mSession);
return request;
} | java | public BoxRequestsFolder.GetTrashedItems getTrashedItemsRequest() {
BoxRequestsFolder.GetTrashedItems request = new BoxRequestsFolder.GetTrashedItems(getTrashedItemsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"GetTrashedItems",
"getTrashedItemsRequest",
"(",
")",
"{",
"BoxRequestsFolder",
".",
"GetTrashedItems",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"GetTrashedItems",
"(",
"getTrashedItemsUrl",
"(",
")",
",",
"mSession",
")",
... | Gets a request that returns the items in the trash
@return request to get a folder from the trash | [
"Gets",
"a",
"request",
"that",
"returns",
"the",
"items",
"in",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L249-L252 |
58,657 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getTrashedFolderRequest | public BoxRequestsFolder.GetTrashedFolder getTrashedFolderRequest(String id) {
BoxRequestsFolder.GetTrashedFolder request = new BoxRequestsFolder.GetTrashedFolder(id, getTrashedFolderUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.GetTrashedFolder getTrashedFolderRequest(String id) {
BoxRequestsFolder.GetTrashedFolder request = new BoxRequestsFolder.GetTrashedFolder(id, getTrashedFolderUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"GetTrashedFolder",
"getTrashedFolderRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"GetTrashedFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"GetTrashedFolder",
"(",
"id",
",",
"getTrashedFolderUrl",
"(... | Gets a request that returns a folder in the trash
@param id id of folder to get in the trash
@return request to get a folder from the trash | [
"Gets",
"a",
"request",
"that",
"returns",
"a",
"folder",
"in",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L260-L263 |
58,658 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getDeleteTrashedFolderRequest | public BoxRequestsFolder.DeleteTrashedFolder getDeleteTrashedFolderRequest(String id) {
BoxRequestsFolder.DeleteTrashedFolder request = new BoxRequestsFolder.DeleteTrashedFolder(id, getTrashedFolderUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.DeleteTrashedFolder getDeleteTrashedFolderRequest(String id) {
BoxRequestsFolder.DeleteTrashedFolder request = new BoxRequestsFolder.DeleteTrashedFolder(id, getTrashedFolderUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"DeleteTrashedFolder",
"getDeleteTrashedFolderRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"DeleteTrashedFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"DeleteTrashedFolder",
"(",
"id",
",",
"getTrashedF... | Gets a request that permanently deletes a folder from the trash
@param id id of folder to delete from the trash
@return request to permanently delete a folder from the trash | [
"Gets",
"a",
"request",
"that",
"permanently",
"deletes",
"a",
"folder",
"from",
"the",
"trash"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L271-L274 |
58,659 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java | BoxApiFolder.getRestoreTrashedFolderRequest | public BoxRequestsFolder.RestoreTrashedFolder getRestoreTrashedFolderRequest(String id) {
BoxRequestsFolder.RestoreTrashedFolder request = new BoxRequestsFolder.RestoreTrashedFolder(id, getFolderInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsFolder.RestoreTrashedFolder getRestoreTrashedFolderRequest(String id) {
BoxRequestsFolder.RestoreTrashedFolder request = new BoxRequestsFolder.RestoreTrashedFolder(id, getFolderInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsFolder",
".",
"RestoreTrashedFolder",
"getRestoreTrashedFolderRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsFolder",
".",
"RestoreTrashedFolder",
"request",
"=",
"new",
"BoxRequestsFolder",
".",
"RestoreTrashedFolder",
"(",
"id",
",",
"getFold... | Gets a request that restores a trashed folder
@param id id of folder to restore
@return request to restore a folder from the trash | [
"Gets",
"a",
"request",
"that",
"restores",
"a",
"trashed",
"folder"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiFolder.java#L282-L285 |
58,660 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java | BoxApiCollaboration.getInfoRequest | public BoxRequestsShare.GetCollaborationInfo getInfoRequest(String collaborationId) {
BoxRequestsShare.GetCollaborationInfo collab = new BoxRequestsShare.GetCollaborationInfo(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | java | public BoxRequestsShare.GetCollaborationInfo getInfoRequest(String collaborationId) {
BoxRequestsShare.GetCollaborationInfo collab = new BoxRequestsShare.GetCollaborationInfo(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | [
"public",
"BoxRequestsShare",
".",
"GetCollaborationInfo",
"getInfoRequest",
"(",
"String",
"collaborationId",
")",
"{",
"BoxRequestsShare",
".",
"GetCollaborationInfo",
"collab",
"=",
"new",
"BoxRequestsShare",
".",
"GetCollaborationInfo",
"(",
"collaborationId",
",",
"g... | A request to retrieve a collaboration of a given id.
@param collaborationId id of the collaboration to retrieve
@return request to retrieve information about a collaboration | [
"A",
"request",
"to",
"retrieve",
"a",
"collaboration",
"of",
"a",
"given",
"id",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java#L49-L52 |
58,661 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java | BoxApiCollaboration.getAddRequest | public BoxRequestsShare.AddCollaboration getAddRequest(BoxCollaborationItem collaborationItem, BoxCollaboration.Role role, String login) {
BoxRequestsShare.AddCollaboration collab = new BoxRequestsShare.AddCollaboration(getCollaborationsUrl(),
createStubItem(collaborationItem), role, login, mSes... | java | public BoxRequestsShare.AddCollaboration getAddRequest(BoxCollaborationItem collaborationItem, BoxCollaboration.Role role, String login) {
BoxRequestsShare.AddCollaboration collab = new BoxRequestsShare.AddCollaboration(getCollaborationsUrl(),
createStubItem(collaborationItem), role, login, mSes... | [
"public",
"BoxRequestsShare",
".",
"AddCollaboration",
"getAddRequest",
"(",
"BoxCollaborationItem",
"collaborationItem",
",",
"BoxCollaboration",
".",
"Role",
"role",
",",
"String",
"login",
")",
"{",
"BoxRequestsShare",
".",
"AddCollaboration",
"collab",
"=",
"new",
... | A request that adds a user as a collaborator to an item by using their login.
@param collaborationItem item to be collaborated.
@param role role of the collaboration
@param login email address of the user to add
@return request to add/create a collaboration | [
"A",
"request",
"that",
"adds",
"a",
"user",
"as",
"a",
"collaborator",
"to",
"an",
"item",
"by",
"using",
"their",
"login",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java#L168-L172 |
58,662 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java | BoxApiCollaboration.getPendingCollaborationsRequest | public BoxRequestsShare.GetPendingCollaborations getPendingCollaborationsRequest() {
BoxRequestsShare.GetPendingCollaborations request = new BoxRequestsShare.GetPendingCollaborations(getCollaborationsUrl(), mSession);
return request;
} | java | public BoxRequestsShare.GetPendingCollaborations getPendingCollaborationsRequest() {
BoxRequestsShare.GetPendingCollaborations request = new BoxRequestsShare.GetPendingCollaborations(getCollaborationsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsShare",
".",
"GetPendingCollaborations",
"getPendingCollaborationsRequest",
"(",
")",
"{",
"BoxRequestsShare",
".",
"GetPendingCollaborations",
"request",
"=",
"new",
"BoxRequestsShare",
".",
"GetPendingCollaborations",
"(",
"getCollaborationsUrl",
"(",
... | A request to retrieve a list of pending collaborations for the user.
@return request to retrieve pending collaborations. | [
"A",
"request",
"to",
"retrieve",
"a",
"list",
"of",
"pending",
"collaborations",
"for",
"the",
"user",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java#L179-L182 |
58,663 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java | BoxApiCollaboration.getDeleteRequest | public BoxRequestsShare.DeleteCollaboration getDeleteRequest(String collaborationId) {
BoxRequestsShare.DeleteCollaboration collab = new BoxRequestsShare.DeleteCollaboration(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | java | public BoxRequestsShare.DeleteCollaboration getDeleteRequest(String collaborationId) {
BoxRequestsShare.DeleteCollaboration collab = new BoxRequestsShare.DeleteCollaboration(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | [
"public",
"BoxRequestsShare",
".",
"DeleteCollaboration",
"getDeleteRequest",
"(",
"String",
"collaborationId",
")",
"{",
"BoxRequestsShare",
".",
"DeleteCollaboration",
"collab",
"=",
"new",
"BoxRequestsShare",
".",
"DeleteCollaboration",
"(",
"collaborationId",
",",
"ge... | A request to delete a collaboration with given collaboration id.
@param collaborationId id of the collaboration to delete
@return request to delete a collaboration | [
"A",
"request",
"to",
"delete",
"a",
"collaboration",
"with",
"given",
"collaboration",
"id",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java#L190-L193 |
58,664 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java | BoxApiCollaboration.getUpdateOwnerRequest | public BoxRequestsShare.UpdateOwner getUpdateOwnerRequest(String collaborationId) {
BoxRequestsShare.UpdateOwner collab = new BoxRequestsShare.UpdateOwner(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | java | public BoxRequestsShare.UpdateOwner getUpdateOwnerRequest(String collaborationId) {
BoxRequestsShare.UpdateOwner collab = new BoxRequestsShare.UpdateOwner(collaborationId, getCollaborationInfoUrl(collaborationId), mSession);
return collab;
} | [
"public",
"BoxRequestsShare",
".",
"UpdateOwner",
"getUpdateOwnerRequest",
"(",
"String",
"collaborationId",
")",
"{",
"BoxRequestsShare",
".",
"UpdateOwner",
"collab",
"=",
"new",
"BoxRequestsShare",
".",
"UpdateOwner",
"(",
"collaborationId",
",",
"getCollaborationInfoU... | A request to change role to owner given a collaboration id.
@param collaborationId id of the collaboration to update
@return request to update role to owner for a collaboration | [
"A",
"request",
"to",
"change",
"role",
"to",
"owner",
"given",
"a",
"collaboration",
"id",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiCollaboration.java#L214-L217 |
58,665 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/BoxDateFormat.java | BoxDateFormat.format | public static String format(Date date) {
String format = LOCAL_DATE_FORMAT.format(date);
// Java 6 does not have a convenient way of having the colon in the timezone offset
return format.substring(0,22) + ":" + format.substring(22);
} | java | public static String format(Date date) {
String format = LOCAL_DATE_FORMAT.format(date);
// Java 6 does not have a convenient way of having the colon in the timezone offset
return format.substring(0,22) + ":" + format.substring(22);
} | [
"public",
"static",
"String",
"format",
"(",
"Date",
"date",
")",
"{",
"String",
"format",
"=",
"LOCAL_DATE_FORMAT",
".",
"format",
"(",
"date",
")",
";",
"// Java 6 does not have a convenient way of having the colon in the timezone offset",
"return",
"format",
".",
"su... | Formats a date as a string that can be sent to the Box API.
@param date the date to format.
@return a string containing the formatted date. | [
"Formats",
"a",
"date",
"as",
"a",
"string",
"that",
"can",
"be",
"sent",
"to",
"the",
"Box",
"API",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/BoxDateFormat.java#L89-L93 |
58,666 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/utils/BoxDateFormat.java | BoxDateFormat.getTimeRangeString | public static String getTimeRangeString(Date fromDate, Date toDate) {
if (fromDate == null && toDate == null) {
return null;
}
StringBuilder sbr = new StringBuilder();
if (fromDate != null) {
sbr.append(format(fromDate));
}
sbr.append(",");
... | java | public static String getTimeRangeString(Date fromDate, Date toDate) {
if (fromDate == null && toDate == null) {
return null;
}
StringBuilder sbr = new StringBuilder();
if (fromDate != null) {
sbr.append(format(fromDate));
}
sbr.append(",");
... | [
"public",
"static",
"String",
"getTimeRangeString",
"(",
"Date",
"fromDate",
",",
"Date",
"toDate",
")",
"{",
"if",
"(",
"fromDate",
"==",
"null",
"&&",
"toDate",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"StringBuilder",
"sbr",
"=",
"new",
"St... | Get a String to represent a time range.
@param fromDate can use null if don't want to specify this.
@param toDate can use null if don't want to specify this.
@return The string will be time strings separated by a comma.
Trailing "from_date," and leading ",to_date" are also accepted if one of the date is null.
Returns ... | [
"Get",
"a",
"String",
"to",
"represent",
"a",
"time",
"range",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/utils/BoxDateFormat.java#L114-L128 |
58,667 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxException.java | BoxException.getAsBoxError | public BoxError getAsBoxError() {
try {
BoxError error = new BoxError();
error.createFromJson(getResponse());
return error;
} catch (Exception e) {
return null;
}
} | java | public BoxError getAsBoxError() {
try {
BoxError error = new BoxError();
error.createFromJson(getResponse());
return error;
} catch (Exception e) {
return null;
}
} | [
"public",
"BoxError",
"getAsBoxError",
"(",
")",
"{",
"try",
"{",
"BoxError",
"error",
"=",
"new",
"BoxError",
"(",
")",
";",
"error",
".",
"createFromJson",
"(",
"getResponse",
"(",
")",
")",
";",
"return",
"error",
";",
"}",
"catch",
"(",
"Exception",
... | Gets the server response as a BoxError.
@return the response as a BoxError, or null if the response cannot be converted. | [
"Gets",
"the",
"server",
"response",
"as",
"a",
"BoxError",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxException.java#L114-L122 |
58,668 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.getDescription | public String getDescription() {
return mBodyMap.containsKey(BoxItem.FIELD_DESCRIPTION) ?
(String) mBodyMap.get(BoxItem.FIELD_DESCRIPTION) :
null;
} | java | public String getDescription() {
return mBodyMap.containsKey(BoxItem.FIELD_DESCRIPTION) ?
(String) mBodyMap.get(BoxItem.FIELD_DESCRIPTION) :
null;
} | [
"public",
"String",
"getDescription",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_DESCRIPTION",
")",
"?",
"(",
"String",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_DESCRIPTION",
")",
":",
"null",
";",
... | Returns the new description currently set for the item.
@return description for the item, or null if not set. | [
"Returns",
"the",
"new",
"description",
"currently",
"set",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L72-L76 |
58,669 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.setDescription | public R setDescription(String description) {
mBodyMap.put(BoxItem.FIELD_DESCRIPTION, description);
return (R) this;
} | java | public R setDescription(String description) {
mBodyMap.put(BoxItem.FIELD_DESCRIPTION, description);
return (R) this;
} | [
"public",
"R",
"setDescription",
"(",
"String",
"description",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxItem",
".",
"FIELD_DESCRIPTION",
",",
"description",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the new description for the item.
@param description description for the item.
@return request with the updated description. | [
"Sets",
"the",
"new",
"description",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L84-L87 |
58,670 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.getSharedLink | public BoxSharedLink getSharedLink() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)) :
null;
} | java | public BoxSharedLink getSharedLink() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)) :
null;
} | [
"public",
"BoxSharedLink",
"getSharedLink",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
"?",
"(",
"(",
"BoxSharedLink",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
")",... | Returns the shared link currently set for the item.
@return shared link for the item, or null if not set. | [
"Returns",
"the",
"shared",
"link",
"currently",
"set",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L117-L121 |
58,671 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.setSharedLink | public R setSharedLink(BoxSharedLink sharedLink) {
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
} | java | public R setSharedLink(BoxSharedLink sharedLink) {
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
} | [
"public",
"R",
"setSharedLink",
"(",
"BoxSharedLink",
"sharedLink",
")",
"{",
"mBodyMap",
".",
"put",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
",",
"sharedLink",
")",
";",
"return",
"(",
"R",
")",
"this",
";",
"}"
] | Sets the new shared link for the item.
@param sharedLink new shared link for the item.
@return request with the updated shared link. | [
"Sets",
"the",
"new",
"shared",
"link",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L129-L132 |
58,672 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.getTags | public List<String> getTags() {
return mBodyMap.containsKey(BoxItem.FIELD_TAGS) ?
(List<String>) mBodyMap.get(BoxItem.FIELD_TAGS) :
null;
} | java | public List<String> getTags() {
return mBodyMap.containsKey(BoxItem.FIELD_TAGS) ?
(List<String>) mBodyMap.get(BoxItem.FIELD_TAGS) :
null;
} | [
"public",
"List",
"<",
"String",
">",
"getTags",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_TAGS",
")",
"?",
"(",
"List",
"<",
"String",
">",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_TAGS",
")",... | Returns the tags currently set for the item.
@return tags for the item, or null if not set. | [
"Returns",
"the",
"tags",
"currently",
"set",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L162-L166 |
58,673 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java | BoxRequestItemUpdate.setTags | public R setTags(List<String> tags) {
JsonArray jsonArray = new JsonArray();
for (String s : tags) {
jsonArray.add(s);
}
mBodyMap.put(BoxItem.FIELD_TAGS, jsonArray);
return (R) this;
} | java | public R setTags(List<String> tags) {
JsonArray jsonArray = new JsonArray();
for (String s : tags) {
jsonArray.add(s);
}
mBodyMap.put(BoxItem.FIELD_TAGS, jsonArray);
return (R) this;
} | [
"public",
"R",
"setTags",
"(",
"List",
"<",
"String",
">",
"tags",
")",
"{",
"JsonArray",
"jsonArray",
"=",
"new",
"JsonArray",
"(",
")",
";",
"for",
"(",
"String",
"s",
":",
"tags",
")",
"{",
"jsonArray",
".",
"add",
"(",
"s",
")",
";",
"}",
"mB... | Sets the new tags for the item.
@param tags new tags for the item.
@return request with the updated tags. | [
"Sets",
"the",
"new",
"tags",
"for",
"the",
"item",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItemUpdate.java#L174-L181 |
58,674 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java | BoxApiComment.getInfoRequest | public BoxRequestsComment.GetCommentInfo getInfoRequest(String id) {
BoxRequestsComment.GetCommentInfo request = new BoxRequestsComment.GetCommentInfo(id, getCommentInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsComment.GetCommentInfo getInfoRequest(String id) {
BoxRequestsComment.GetCommentInfo request = new BoxRequestsComment.GetCommentInfo(id, getCommentInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsComment",
".",
"GetCommentInfo",
"getInfoRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsComment",
".",
"GetCommentInfo",
"request",
"=",
"new",
"BoxRequestsComment",
".",
"GetCommentInfo",
"(",
"id",
",",
"getCommentInfoUrl",
"(",
"id",
"... | Gets a request that retrieves information on a comment
@param id id of comment to retrieve info on
@return request to get a comment's information | [
"Gets",
"a",
"request",
"that",
"retrieves",
"information",
"on",
"a",
"comment"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java#L32-L35 |
58,675 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java | BoxApiComment.getAddCommentReplyRequest | public BoxRequestsComment.AddReplyComment getAddCommentReplyRequest(String commentId, String message) {
BoxRequestsComment.AddReplyComment request = new BoxRequestsComment.AddReplyComment(commentId, message, getCommentsUrl(), mSession);
return request;
} | java | public BoxRequestsComment.AddReplyComment getAddCommentReplyRequest(String commentId, String message) {
BoxRequestsComment.AddReplyComment request = new BoxRequestsComment.AddReplyComment(commentId, message, getCommentsUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsComment",
".",
"AddReplyComment",
"getAddCommentReplyRequest",
"(",
"String",
"commentId",
",",
"String",
"message",
")",
"{",
"BoxRequestsComment",
".",
"AddReplyComment",
"request",
"=",
"new",
"BoxRequestsComment",
".",
"AddReplyComment",
"(",
"... | Gets a request that adds a reply comment to a comment
@param commentId id of the comment to reply to
@param message message for the comment that will be added
@return request to add a reply comment to a comment | [
"Gets",
"a",
"request",
"that",
"adds",
"a",
"reply",
"comment",
"to",
"a",
"comment"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java#L44-L47 |
58,676 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java | BoxApiComment.getUpdateRequest | public BoxRequestsComment.UpdateComment getUpdateRequest(String id, String newMessage) {
BoxRequestsComment.UpdateComment request = new BoxRequestsComment.UpdateComment(id, newMessage, getCommentInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsComment.UpdateComment getUpdateRequest(String id, String newMessage) {
BoxRequestsComment.UpdateComment request = new BoxRequestsComment.UpdateComment(id, newMessage, getCommentInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsComment",
".",
"UpdateComment",
"getUpdateRequest",
"(",
"String",
"id",
",",
"String",
"newMessage",
")",
"{",
"BoxRequestsComment",
".",
"UpdateComment",
"request",
"=",
"new",
"BoxRequestsComment",
".",
"UpdateComment",
"(",
"id",
",",
"newM... | Gets a request that updates a comment's information
@param id id of comment to update information on
@param newMessage new message for the comment
@return request to update a comment's information | [
"Gets",
"a",
"request",
"that",
"updates",
"a",
"comment",
"s",
"information"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java#L56-L59 |
58,677 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java | BoxApiComment.getDeleteRequest | public BoxRequestsComment.DeleteComment getDeleteRequest(String id) {
BoxRequestsComment.DeleteComment request = new BoxRequestsComment.DeleteComment(id, getCommentInfoUrl(id), mSession);
return request;
} | java | public BoxRequestsComment.DeleteComment getDeleteRequest(String id) {
BoxRequestsComment.DeleteComment request = new BoxRequestsComment.DeleteComment(id, getCommentInfoUrl(id), mSession);
return request;
} | [
"public",
"BoxRequestsComment",
".",
"DeleteComment",
"getDeleteRequest",
"(",
"String",
"id",
")",
"{",
"BoxRequestsComment",
".",
"DeleteComment",
"request",
"=",
"new",
"BoxRequestsComment",
".",
"DeleteComment",
"(",
"id",
",",
"getCommentInfoUrl",
"(",
"id",
")... | Gets a request that deletes a comment
@param id id of comment to delete
@return request to delete a comment | [
"Gets",
"a",
"request",
"that",
"deletes",
"a",
"comment"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiComment.java#L67-L70 |
58,678 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxEntity.java | BoxEntity.getType | public String getType() {
String type = getPropertyAsString(FIELD_TYPE);
if (type == null){
return getPropertyAsString(FIELD_ITEM_TYPE);
}
return type;
} | java | public String getType() {
String type = getPropertyAsString(FIELD_TYPE);
if (type == null){
return getPropertyAsString(FIELD_ITEM_TYPE);
}
return type;
} | [
"public",
"String",
"getType",
"(",
")",
"{",
"String",
"type",
"=",
"getPropertyAsString",
"(",
"FIELD_TYPE",
")",
";",
"if",
"(",
"type",
"==",
"null",
")",
"{",
"return",
"getPropertyAsString",
"(",
"FIELD_ITEM_TYPE",
")",
";",
"}",
"return",
"type",
";... | Gets the type of the entity.
@return the entity type. | [
"Gets",
"the",
"type",
"of",
"the",
"entity",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/models/BoxEntity.java#L136-L142 |
58,679 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/ChooseAuthenticationFragment.java | ChooseAuthenticationFragment.createChooseAuthenticationFragment | public static ChooseAuthenticationFragment createChooseAuthenticationFragment(final Context context, final ArrayList<BoxAuthentication.BoxAuthenticationInfo> listOfAuthInfo){
ChooseAuthenticationFragment fragment = createAuthenticationActivity(context);
Bundle b = fragment.getArguments();
if (b ... | java | public static ChooseAuthenticationFragment createChooseAuthenticationFragment(final Context context, final ArrayList<BoxAuthentication.BoxAuthenticationInfo> listOfAuthInfo){
ChooseAuthenticationFragment fragment = createAuthenticationActivity(context);
Bundle b = fragment.getArguments();
if (b ... | [
"public",
"static",
"ChooseAuthenticationFragment",
"createChooseAuthenticationFragment",
"(",
"final",
"Context",
"context",
",",
"final",
"ArrayList",
"<",
"BoxAuthentication",
".",
"BoxAuthenticationInfo",
">",
"listOfAuthInfo",
")",
"{",
"ChooseAuthenticationFragment",
"f... | Create an instance of this fragment to display the given list of BoxAuthenticationInfos.
@param context current context
@param listOfAuthInfo a list of auth infos in the order to display to the user.
@return a fragment displaying list of authinfos provided above. | [
"Create",
"an",
"instance",
"of",
"this",
"fragment",
"to",
"display",
"the",
"given",
"list",
"of",
"BoxAuthenticationInfos",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/ChooseAuthenticationFragment.java#L103-L119 |
58,680 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxApiAuthentication.java | BoxApiAuthentication.refreshOAuth | BoxRefreshAuthRequest refreshOAuth(String refreshToken, String clientId, String clientSecret) {
BoxRefreshAuthRequest request = new BoxRefreshAuthRequest(mSession, getTokenUrl(), refreshToken, clientId, clientSecret);
return request;
} | java | BoxRefreshAuthRequest refreshOAuth(String refreshToken, String clientId, String clientSecret) {
BoxRefreshAuthRequest request = new BoxRefreshAuthRequest(mSession, getTokenUrl(), refreshToken, clientId, clientSecret);
return request;
} | [
"BoxRefreshAuthRequest",
"refreshOAuth",
"(",
"String",
"refreshToken",
",",
"String",
"clientId",
",",
"String",
"clientSecret",
")",
"{",
"BoxRefreshAuthRequest",
"request",
"=",
"new",
"BoxRefreshAuthRequest",
"(",
"mSession",
",",
"getTokenUrl",
"(",
")",
",",
"... | Refresh OAuth, to be called when OAuth expires. | [
"Refresh",
"OAuth",
"to",
"be",
"called",
"when",
"OAuth",
"expires",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxApiAuthentication.java#L50-L53 |
58,681 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxApiAuthentication.java | BoxApiAuthentication.createOAuth | BoxCreateAuthRequest createOAuth(String code, String clientId, String clientSecret) {
BoxCreateAuthRequest request = new BoxCreateAuthRequest(mSession, getTokenUrl(), code, clientId, clientSecret);
return request;
} | java | BoxCreateAuthRequest createOAuth(String code, String clientId, String clientSecret) {
BoxCreateAuthRequest request = new BoxCreateAuthRequest(mSession, getTokenUrl(), code, clientId, clientSecret);
return request;
} | [
"BoxCreateAuthRequest",
"createOAuth",
"(",
"String",
"code",
",",
"String",
"clientId",
",",
"String",
"clientSecret",
")",
"{",
"BoxCreateAuthRequest",
"request",
"=",
"new",
"BoxCreateAuthRequest",
"(",
"mSession",
",",
"getTokenUrl",
"(",
")",
",",
"code",
","... | Create OAuth, to be called the first time session tries to authenticate. | [
"Create",
"OAuth",
"to",
"be",
"called",
"the",
"first",
"time",
"session",
"tries",
"to",
"authenticate",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/BoxApiAuthentication.java#L58-L61 |
58,682 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiShare.java | BoxApiShare.getSharedLinkRequest | public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink, String password) {
BoxSharedLinkSession session = null;
if (mSession instanceof BoxSharedLinkSession) {
session = (BoxSharedLinkSession)mSession;
} else {
session = new BoxSharedLinkSession(mSes... | java | public BoxRequestsShare.GetSharedLink getSharedLinkRequest(String sharedLink, String password) {
BoxSharedLinkSession session = null;
if (mSession instanceof BoxSharedLinkSession) {
session = (BoxSharedLinkSession)mSession;
} else {
session = new BoxSharedLinkSession(mSes... | [
"public",
"BoxRequestsShare",
".",
"GetSharedLink",
"getSharedLinkRequest",
"(",
"String",
"sharedLink",
",",
"String",
"password",
")",
"{",
"BoxSharedLinkSession",
"session",
"=",
"null",
";",
"if",
"(",
"mSession",
"instanceof",
"BoxSharedLinkSession",
")",
"{",
... | Returns a request to get a BoxItem from a shared link.
@param sharedLink shared link of the item to retrieve.
@param password password for shared link
@return request to get a BoxItem from a shared link. | [
"Returns",
"a",
"request",
"to",
"get",
"a",
"BoxItem",
"from",
"a",
"shared",
"link",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiShare.java#L43-L55 |
58,683 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/views/DefaultAvatarController.java | DefaultAvatarController.cleanOutOldAvatars | protected void cleanOutOldAvatars(File directory, int maxLifeInDays){
if (directory != null){
if (mCleanedDirectories.contains(directory.getAbsolutePath())){
return;
}
long oldestTimeAllowed = System.currentTimeMillis() - maxLifeInDays * TimeUnit.DAYS.toMillis... | java | protected void cleanOutOldAvatars(File directory, int maxLifeInDays){
if (directory != null){
if (mCleanedDirectories.contains(directory.getAbsolutePath())){
return;
}
long oldestTimeAllowed = System.currentTimeMillis() - maxLifeInDays * TimeUnit.DAYS.toMillis... | [
"protected",
"void",
"cleanOutOldAvatars",
"(",
"File",
"directory",
",",
"int",
"maxLifeInDays",
")",
"{",
"if",
"(",
"directory",
"!=",
"null",
")",
"{",
"if",
"(",
"mCleanedDirectories",
".",
"contains",
"(",
"directory",
".",
"getAbsolutePath",
"(",
")",
... | Delete all files for user that is older than maxLifeInDays
@param directory the directory where avatar files are being held.
@param maxLifeInDays the number of days avatar files are allowed to live for. | [
"Delete",
"all",
"files",
"for",
"user",
"that",
"is",
"older",
"than",
"maxLifeInDays"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/views/DefaultAvatarController.java#L88-L103 |
58,684 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.getAccess | public BoxSharedLink.Access getAccess() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getAccess() :
null;
} | java | public BoxSharedLink.Access getAccess() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getAccess() :
null;
} | [
"public",
"BoxSharedLink",
".",
"Access",
"getAccess",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
"?",
"(",
"(",
"BoxSharedLink",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK"... | Gets the shared link access currently set for the item in the request.
@return shared link access for the item, or null if not set. | [
"Gets",
"the",
"shared",
"link",
"access",
"currently",
"set",
"for",
"the",
"item",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L37-L41 |
58,685 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.setAccess | public R setAccess(BoxSharedLink.Access access) {
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_ACCESS, SdkUtils.getAsStringSafely(access));
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLin... | java | public R setAccess(BoxSharedLink.Access access) {
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_ACCESS, SdkUtils.getAsStringSafely(access));
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLin... | [
"public",
"R",
"setAccess",
"(",
"BoxSharedLink",
".",
"Access",
"access",
")",
"{",
"JsonObject",
"jsonObject",
"=",
"getSharedLinkJsonObject",
"(",
")",
";",
"jsonObject",
".",
"add",
"(",
"BoxSharedLink",
".",
"FIELD_ACCESS",
",",
"SdkUtils",
".",
"getAsStrin... | Sets the shared link access for the item in the request.
@param access new shared link access for the item.
@return request with the updated shared link access. | [
"Sets",
"the",
"shared",
"link",
"access",
"for",
"the",
"item",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L49-L55 |
58,686 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.getUnsharedAt | public Date getUnsharedAt() {
if(mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK)) {
return ((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getUnsharedDate();
}
return null;
} | java | public Date getUnsharedAt() {
if(mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK)) {
return ((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getUnsharedDate();
}
return null;
} | [
"public",
"Date",
"getUnsharedAt",
"(",
")",
"{",
"if",
"(",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
")",
"{",
"return",
"(",
"(",
"BoxSharedLink",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
... | Returns the date the link will be disabled at currently set in the request.
@return date the shared link will be disabled at, or null if not set. | [
"Returns",
"the",
"date",
"the",
"link",
"will",
"be",
"disabled",
"at",
"currently",
"set",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L62-L67 |
58,687 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.getPassword | public String getPassword(){
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPassword() :
null;
} | java | public String getPassword(){
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPassword() :
null;
} | [
"public",
"String",
"getPassword",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
"?",
"(",
"(",
"BoxSharedLink",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
")",
".",
... | Returns the shared link password currently set in the request.
@return the password for the item's shared link, or null if not set. | [
"Returns",
"the",
"shared",
"link",
"password",
"currently",
"set",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L105-L109 |
58,688 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.setPassword | public R setPassword(final String password){
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_PASSWORD, password);
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
... | java | public R setPassword(final String password){
JsonObject jsonObject = getSharedLinkJsonObject();
jsonObject.add(BoxSharedLink.FIELD_PASSWORD, password);
BoxSharedLink sharedLink = new BoxSharedLink(jsonObject);
mBodyMap.put(BoxItem.FIELD_SHARED_LINK, sharedLink);
return (R) this;
... | [
"public",
"R",
"setPassword",
"(",
"final",
"String",
"password",
")",
"{",
"JsonObject",
"jsonObject",
"=",
"getSharedLinkJsonObject",
"(",
")",
";",
"jsonObject",
".",
"add",
"(",
"BoxSharedLink",
".",
"FIELD_PASSWORD",
",",
"password",
")",
";",
"BoxSharedLin... | Sets the shared link password in the request.
@param password new password for the shared link, or null to remove the password.
@return request with the updated shared link password. | [
"Sets",
"the",
"shared",
"link",
"password",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L117-L123 |
58,689 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.getCanDownload | protected Boolean getCanDownload() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPermissions().getCanDownload() :
null;
} | java | protected Boolean getCanDownload() {
return mBodyMap.containsKey(BoxItem.FIELD_SHARED_LINK) ?
((BoxSharedLink) mBodyMap.get(BoxItem.FIELD_SHARED_LINK)).getPermissions().getCanDownload() :
null;
} | [
"protected",
"Boolean",
"getCanDownload",
"(",
")",
"{",
"return",
"mBodyMap",
".",
"containsKey",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
"?",
"(",
"(",
"BoxSharedLink",
")",
"mBodyMap",
".",
"get",
"(",
"BoxItem",
".",
"FIELD_SHARED_LINK",
")",
")",
... | Returns the value for whether the shared link allows downloads currently set in the request.
@return Boolean for whether the shared link allows downloads, or null if not set. | [
"Returns",
"the",
"value",
"for",
"whether",
"the",
"shared",
"link",
"allows",
"downloads",
"currently",
"set",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L130-L134 |
58,690 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java | BoxRequestUpdateSharedItem.setCanDownload | protected R setCanDownload(boolean canDownload) {
JsonObject jsonPermissionsObject = getPermissionsJsonObject();
jsonPermissionsObject.add(BoxSharedLink.Permissions.FIELD_CAN_DOWNLOAD, canDownload);
BoxSharedLink.Permissions permissions = new BoxSharedLink.Permissions(jsonPermissionsObject);
... | java | protected R setCanDownload(boolean canDownload) {
JsonObject jsonPermissionsObject = getPermissionsJsonObject();
jsonPermissionsObject.add(BoxSharedLink.Permissions.FIELD_CAN_DOWNLOAD, canDownload);
BoxSharedLink.Permissions permissions = new BoxSharedLink.Permissions(jsonPermissionsObject);
... | [
"protected",
"R",
"setCanDownload",
"(",
"boolean",
"canDownload",
")",
"{",
"JsonObject",
"jsonPermissionsObject",
"=",
"getPermissionsJsonObject",
"(",
")",
";",
"jsonPermissionsObject",
".",
"add",
"(",
"BoxSharedLink",
".",
"Permissions",
".",
"FIELD_CAN_DOWNLOAD",
... | Sets whether the shared link allows downloads in the request.
@param canDownload new value for whether the shared link allows downloads.
@return request with the updated value for whether the shared link allows downloads. | [
"Sets",
"whether",
"the",
"shared",
"link",
"allows",
"downloads",
"in",
"the",
"request",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestUpdateSharedItem.java#L142-L152 |
58,691 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItem.java | BoxRequestItem.setFields | public R setFields(String... fields) {
if (fields.length == 1 && fields[0] == null){
mQueryMap.remove(QUERY_FIELDS);
return (R) this;
}
if (fields.length > 0) {
StringBuilder sb = new StringBuilder();
sb.append(fields[0]);
for (int i = ... | java | public R setFields(String... fields) {
if (fields.length == 1 && fields[0] == null){
mQueryMap.remove(QUERY_FIELDS);
return (R) this;
}
if (fields.length > 0) {
StringBuilder sb = new StringBuilder();
sb.append(fields[0]);
for (int i = ... | [
"public",
"R",
"setFields",
"(",
"String",
"...",
"fields",
")",
"{",
"if",
"(",
"fields",
".",
"length",
"==",
"1",
"&&",
"fields",
"[",
"0",
"]",
"==",
"null",
")",
"{",
"mQueryMap",
".",
"remove",
"(",
"QUERY_FIELDS",
")",
";",
"return",
"(",
"R... | Sets the fields to return in the response.
@param fields fields to return in the response.
@return request with the updated fields. | [
"Sets",
"the",
"fields",
"to",
"return",
"in",
"the",
"response",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItem.java#L50-L65 |
58,692 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItem.java | BoxRequestItem.addRepresentationHintGroup | public R addRepresentationHintGroup(String... hints) {
if(hints != null) {
mHintHeader.append("[");
mHintHeader.append(TextUtils.join(",", hints));
mHintHeader.append("]");
}
return (R) this;
} | java | public R addRepresentationHintGroup(String... hints) {
if(hints != null) {
mHintHeader.append("[");
mHintHeader.append(TextUtils.join(",", hints));
mHintHeader.append("]");
}
return (R) this;
} | [
"public",
"R",
"addRepresentationHintGroup",
"(",
"String",
"...",
"hints",
")",
"{",
"if",
"(",
"hints",
"!=",
"null",
")",
"{",
"mHintHeader",
".",
"append",
"(",
"\"[\"",
")",
";",
"mHintHeader",
".",
"append",
"(",
"TextUtils",
".",
"join",
"(",
"\",... | Include a representation hint group into this request.
Please refer to representation documentation for more details
@param hints string list with all the representation hints
@return request with updated hint group | [
"Include",
"a",
"representation",
"hint",
"group",
"into",
"this",
"request",
".",
"Please",
"refer",
"to",
"representation",
"documentation",
"for",
"more",
"details"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestItem.java#L73-L80 |
58,693 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.onReceivedAuthCode | public void onReceivedAuthCode(String code, String baseDomain) {
if (authType == AUTH_TYPE_WEBVIEW) {
oauthView.setVisibility(View.INVISIBLE);
}
startMakingOAuthAPICall(code, baseDomain);
} | java | public void onReceivedAuthCode(String code, String baseDomain) {
if (authType == AUTH_TYPE_WEBVIEW) {
oauthView.setVisibility(View.INVISIBLE);
}
startMakingOAuthAPICall(code, baseDomain);
} | [
"public",
"void",
"onReceivedAuthCode",
"(",
"String",
"code",
",",
"String",
"baseDomain",
")",
"{",
"if",
"(",
"authType",
"==",
"AUTH_TYPE_WEBVIEW",
")",
"{",
"oauthView",
".",
"setVisibility",
"(",
"View",
".",
"INVISIBLE",
")",
";",
"}",
"startMakingOAuth... | Callback method to be called when authentication code is received along with a base domain. The code will then be used to make an API call to create OAuth tokens. | [
"Callback",
"method",
"to",
"be",
"called",
"when",
"authentication",
"code",
"is",
"received",
"along",
"with",
"a",
"base",
"domain",
".",
"The",
"code",
"will",
"then",
"be",
"used",
"to",
"make",
"an",
"API",
"call",
"to",
"create",
"OAuth",
"tokens",
... | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L172-L177 |
58,694 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.onAuthFailure | public boolean onAuthFailure(AuthFailure failure) {
if (failure.type == OAuthWebView.AuthFailure.TYPE_WEB_ERROR){
if (failure.mWebException.getErrorCode() == WebViewClient.ERROR_CONNECT || failure.mWebException.getErrorCode() == WebViewClient.ERROR_HOST_LOOKUP || failure.mWebException.getErrorCode()... | java | public boolean onAuthFailure(AuthFailure failure) {
if (failure.type == OAuthWebView.AuthFailure.TYPE_WEB_ERROR){
if (failure.mWebException.getErrorCode() == WebViewClient.ERROR_CONNECT || failure.mWebException.getErrorCode() == WebViewClient.ERROR_HOST_LOOKUP || failure.mWebException.getErrorCode()... | [
"public",
"boolean",
"onAuthFailure",
"(",
"AuthFailure",
"failure",
")",
"{",
"if",
"(",
"failure",
".",
"type",
"==",
"OAuthWebView",
".",
"AuthFailure",
".",
"TYPE_WEB_ERROR",
")",
"{",
"if",
"(",
"failure",
".",
"mWebException",
".",
"getErrorCode",
"(",
... | Callback method to be called when authentication failed. | [
"Callback",
"method",
"to",
"be",
"called",
"when",
"authentication",
"failed",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L196-L237 |
58,695 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.startMakingOAuthAPICall | protected void startMakingOAuthAPICall(final String code, final String baseDomain) {
if (apiCallStarted.getAndSet(true)) {
return;
}
showSpinner();
if (baseDomain != null) {
mSession.getAuthInfo().setBaseDomain(baseDomain);
BoxLogUtils.nonFatalE("setti... | java | protected void startMakingOAuthAPICall(final String code, final String baseDomain) {
if (apiCallStarted.getAndSet(true)) {
return;
}
showSpinner();
if (baseDomain != null) {
mSession.getAuthInfo().setBaseDomain(baseDomain);
BoxLogUtils.nonFatalE("setti... | [
"protected",
"void",
"startMakingOAuthAPICall",
"(",
"final",
"String",
"code",
",",
"final",
"String",
"baseDomain",
")",
"{",
"if",
"(",
"apiCallStarted",
".",
"getAndSet",
"(",
"true",
")",
")",
"{",
"return",
";",
"}",
"showSpinner",
"(",
")",
";",
"if... | Start to create OAuth after getting the code.
@param code
OAuth 2 authorization code
@param baseDomain
base domain used for changing host if applicable. | [
"Start",
"to",
"create",
"OAuth",
"after",
"getting",
"the",
"code",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L376-L404 |
58,696 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.showDialogWhileWaitingForAuthenticationAPICall | protected Dialog showDialogWhileWaitingForAuthenticationAPICall() {
return ProgressDialog.show(this, getText(R.string.boxsdk_Authenticating), getText(R.string.boxsdk_Please_wait));
} | java | protected Dialog showDialogWhileWaitingForAuthenticationAPICall() {
return ProgressDialog.show(this, getText(R.string.boxsdk_Authenticating), getText(R.string.boxsdk_Please_wait));
} | [
"protected",
"Dialog",
"showDialogWhileWaitingForAuthenticationAPICall",
"(",
")",
"{",
"return",
"ProgressDialog",
".",
"show",
"(",
"this",
",",
"getText",
"(",
"R",
".",
"string",
".",
"boxsdk_Authenticating",
")",
",",
"getText",
"(",
"R",
".",
"string",
"."... | If you don't need the dialog, just return null.
@return A dialog showing ui showing authentication is in progress | [
"If",
"you",
"don",
"t",
"need",
"the",
"dialog",
"just",
"return",
"null",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L458-L460 |
58,697 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.createOAuthActivityIntent | public static Intent createOAuthActivityIntent(final Context context, BoxSession session, boolean loginViaBoxApp){
Intent intent = createOAuthActivityIntent(context, session.getClientId(), session.getClientSecret(), session.getRedirectUrl(), loginViaBoxApp);
intent.putExtra(EXTRA_SESSION, session);
... | java | public static Intent createOAuthActivityIntent(final Context context, BoxSession session, boolean loginViaBoxApp){
Intent intent = createOAuthActivityIntent(context, session.getClientId(), session.getClientSecret(), session.getRedirectUrl(), loginViaBoxApp);
intent.putExtra(EXTRA_SESSION, session);
... | [
"public",
"static",
"Intent",
"createOAuthActivityIntent",
"(",
"final",
"Context",
"context",
",",
"BoxSession",
"session",
",",
"boolean",
"loginViaBoxApp",
")",
"{",
"Intent",
"intent",
"=",
"createOAuthActivityIntent",
"(",
"context",
",",
"session",
".",
"getCl... | Create intent to launch OAuthActivity using information from the given session.
@param context
context
@param session the BoxSession to use to get parameters required to authenticate via this activity.
@param loginViaBoxApp Whether login should be handled by the installed box android app. Set this to true only when you... | [
"Create",
"intent",
"to",
"launch",
"OAuthActivity",
"using",
"information",
"from",
"the",
"given",
"session",
"."
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L539-L546 |
58,698 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java | OAuthActivity.getAuthFailure | private OAuthWebView.AuthFailure getAuthFailure(Exception e) {
String error = getString(R.string.boxsdk_Authentication_fail);
if (e != null) {
// Get the proper exception
Throwable ex = e instanceof ExecutionException ?
((ExecutionException) e).getCause() :
... | java | private OAuthWebView.AuthFailure getAuthFailure(Exception e) {
String error = getString(R.string.boxsdk_Authentication_fail);
if (e != null) {
// Get the proper exception
Throwable ex = e instanceof ExecutionException ?
((ExecutionException) e).getCause() :
... | [
"private",
"OAuthWebView",
".",
"AuthFailure",
"getAuthFailure",
"(",
"Exception",
"e",
")",
"{",
"String",
"error",
"=",
"getString",
"(",
"R",
".",
"string",
".",
"boxsdk_Authentication_fail",
")",
";",
"if",
"(",
"e",
"!=",
"null",
")",
"{",
"// Get the p... | Takes an auth exception and converts it to an AuthFailure so it can be properly handled
@param e The auth exception
@return The typed AuthFailure | [
"Takes",
"an",
"auth",
"exception",
"and",
"converts",
"it",
"to",
"an",
"AuthFailure",
"so",
"it",
"can",
"be",
"properly",
"handled"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/auth/OAuthActivity.java#L554-L576 |
58,699 | box/box-android-sdk | box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiSearch.java | BoxApiSearch.getSearchRequest | public BoxRequestsSearch.Search getSearchRequest(String query) {
BoxRequestsSearch.Search request = new BoxRequestsSearch.Search(query, getSearchUrl(), mSession);
return request;
} | java | public BoxRequestsSearch.Search getSearchRequest(String query) {
BoxRequestsSearch.Search request = new BoxRequestsSearch.Search(query, getSearchUrl(), mSession);
return request;
} | [
"public",
"BoxRequestsSearch",
".",
"Search",
"getSearchRequest",
"(",
"String",
"query",
")",
"{",
"BoxRequestsSearch",
".",
"Search",
"request",
"=",
"new",
"BoxRequestsSearch",
".",
"Search",
"(",
"query",
",",
"getSearchUrl",
"(",
")",
",",
"mSession",
")",
... | Gets a request to search
@param query query to use for search
@return request to search | [
"Gets",
"a",
"request",
"to",
"search"
] | a621ad5ddebf23067fec27529130d72718fc0e88 | https://github.com/box/box-android-sdk/blob/a621ad5ddebf23067fec27529130d72718fc0e88/box-content-sdk/src/main/java/com/box/androidsdk/content/BoxApiSearch.java#L22-L25 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.