Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Commit 009a429

Browse files
committed
add javadoc
1 parent 6bc6d85 commit 009a429

20 files changed

+256
-92
lines changed

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseCopyRequest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,17 @@ public BaseCopyRequest(final String requestUrl, final IOneDriveClient client, fi
5555
addHeader("Prefer", "respond-async");
5656
}
5757

58-
@Deprecated
59-
public void create(final ICallback<AsyncMonitor<Item>> callback) {
58+
/**
59+
* @deprecated As of release 1.1.3, replaced by {@link #post(ICallback)}
60+
*/
61+
@Deprecated public void create(final ICallback<AsyncMonitor<Item>> callback) {
6062
this.post(callback);
6163
}
6264

63-
@Deprecated
64-
public AsyncMonitor<Item> create() throws ClientException {
65+
/**
66+
* @deprecated As of release 1.1.3, replaced by {@link #post()}
67+
*/
68+
@Deprecated public AsyncMonitor<Item> create() throws ClientException {
6569
return this.post();
6670
}
6771

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseCreateLinkRequest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ public BaseCreateLinkRequest(final String requestUrl, final IOneDriveClient clie
5353
mBody.type = type;
5454
}
5555

56-
public void create(final ICallback<Permission> callback) {
56+
/**
57+
* @deprecated As of release 1.1.3, replaced by {@link #post(ICallback)}
58+
*/
59+
@Deprecated public void create(final ICallback<Permission> callback) {
5760
this.post(callback);
5861
}
5962

60-
public Permission create() throws ClientException {
63+
/**
64+
* @deprecated As of release 1.1.3, replaced by {@link #post()}
65+
*/
66+
@Deprecated public Permission create() throws ClientException {
6167
return this.post();
6268
}
6369

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseCreateSessionRequest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,17 @@ public BaseCreateSessionRequest(final String requestUrl, final IOneDriveClient c
5353
mBody.item = item;
5454
}
5555

56-
public void create(final ICallback<UploadSession> callback) {
56+
/**
57+
* @deprecated As of release 1.1.3, replaced by {@link #post(ICallback)}
58+
*/
59+
@Deprecated public void create(final ICallback<UploadSession> callback) {
5760
this.post(callback);
5861
}
5962

60-
public UploadSession create() throws ClientException {
63+
/**
64+
* @deprecated As of release 1.1.3, replaced by {@link #post()}
65+
*/
66+
@Deprecated public UploadSession create() throws ClientException {
6167
return this.post();
6268
}
6369

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseDriveRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public Drive get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final Drive sourceDrive, final ICallback<Drive> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Drive, ICallback)}
63+
*/
64+
@Deprecated public void update(final Drive sourceDrive, final ICallback<Drive> callback) {
6365
this.patch(sourceDrive, callback);
6466
}
6567

66-
@Deprecated
67-
public Drive update(final Drive sourceDrive) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Drive)}
70+
*/
71+
@Deprecated public Drive update(final Drive sourceDrive) throws ClientException {
6872
return this.patch(sourceDrive);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final Drive newDrive, final ICallback<Drive> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(Drive, ICallback)}
93+
*/
94+
@Deprecated public void create(final Drive newDrive, final ICallback<Drive> callback) {
8995
this.post(newDrive, callback);
9096
}
9197

92-
@Deprecated
93-
public Drive create(final Drive newDrive) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(Drive)}
100+
*/
101+
@Deprecated public Drive create(final Drive newDrive) throws ClientException {
94102
return this.post(newDrive);
95103
}
96104

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseItemCollectionRequest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,17 @@ public IItemCollectionPage get() throws ClientException {
7070
return buildFromResponse(response);
7171
}
7272

73-
@Deprecated
74-
public void create(final Item newItem, final ICallback<Item> callback) {
73+
/**
74+
* @deprecated As of release 1.1.3, replaced by {@link #post(Item, ICallback)}
75+
*/
76+
@Deprecated public void create(final Item newItem, final ICallback<Item> callback) {
7577
this.post(newItem, callback);
7678
}
7779

78-
@Deprecated
79-
public Item create(final Item newItem) throws ClientException {
80+
/**
81+
* @deprecated As of release 1.1.3, replaced by {@link #post(Item)}
82+
*/
83+
@Deprecated public Item create(final Item newItem) throws ClientException {
8084
return this.post(newItem);
8185
}
8286

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseItemRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public Item get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final Item sourceItem, final ICallback<Item> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Item, ICallback)}
63+
*/
64+
@Deprecated public void update(final Item sourceItem, final ICallback<Item> callback) {
6365
this.patch(sourceItem, callback);
6466
}
6567

66-
@Deprecated
67-
public Item update(final Item sourceItem) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Item)}
70+
*/
71+
@Deprecated public Item update(final Item sourceItem) throws ClientException {
6872
return this.patch(sourceItem);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final Item newItem, final ICallback<Item> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(Item, ICallback)}
93+
*/
94+
@Deprecated public void create(final Item newItem, final ICallback<Item> callback) {
8995
this.post(newItem, callback);
9096
}
9197

92-
@Deprecated
93-
public Item create(final Item newItem) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(Item)}
100+
*/
101+
@Deprecated public Item create(final Item newItem) throws ClientException {
94102
return this.post(newItem);
95103
}
96104

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BasePermissionRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public Permission get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final Permission sourcePermission, final ICallback<Permission> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Permission, ICallback)}
63+
*/
64+
@Deprecated public void update(final Permission sourcePermission, final ICallback<Permission> callback) {
6365
this.patch(sourcePermission, callback);
6466
}
6567

66-
@Deprecated
67-
public Permission update(final Permission sourcePermission) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Permission)}
70+
*/
71+
@Deprecated public Permission update(final Permission sourcePermission) throws ClientException {
6872
return this.patch(sourcePermission);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final Permission newPermission, final ICallback<Permission> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(Permission, ICallback)}
93+
*/
94+
@Deprecated public void create(final Permission newPermission, final ICallback<Permission> callback) {
8995
this.post(newPermission, callback);
9096
}
9197

92-
@Deprecated
93-
public Permission create(final Permission newPermission) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(Permission)}
100+
*/
101+
@Deprecated public Permission create(final Permission newPermission) throws ClientException {
94102
return this.post(newPermission);
95103
}
96104

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseShareRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public Share get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final Share sourceShare, final ICallback<Share> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Share, ICallback)}
63+
*/
64+
@Deprecated public void update(final Share sourceShare, final ICallback<Share> callback) {
6365
this.patch(sourceShare, callback);
6466
}
6567

66-
@Deprecated
67-
public Share update(final Share sourceShare) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Share)}
70+
*/
71+
@Deprecated public Share update(final Share sourceShare) throws ClientException {
6872
return this.patch(sourceShare);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final Share newShare, final ICallback<Share> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(Share, ICallback)}
93+
*/
94+
@Deprecated public void create(final Share newShare, final ICallback<Share> callback) {
8995
this.post(newShare, callback);
9096
}
9197

92-
@Deprecated
93-
public Share create(final Share newShare) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(Share)}
100+
*/
101+
@Deprecated public Share create(final Share newShare) throws ClientException {
94102
return this.post(newShare);
95103
}
96104

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseThumbnailRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public Thumbnail get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final Thumbnail sourceThumbnail, final ICallback<Thumbnail> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Thumbnail, ICallback)}
63+
*/
64+
@Deprecated public void update(final Thumbnail sourceThumbnail, final ICallback<Thumbnail> callback) {
6365
this.patch(sourceThumbnail, callback);
6466
}
6567

66-
@Deprecated
67-
public Thumbnail update(final Thumbnail sourceThumbnail) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(Thumbnail)}
70+
*/
71+
@Deprecated public Thumbnail update(final Thumbnail sourceThumbnail) throws ClientException {
6872
return this.patch(sourceThumbnail);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final Thumbnail newThumbnail, final ICallback<Thumbnail> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(Thumbnail, ICallback)}
93+
*/
94+
@Deprecated public void create(final Thumbnail newThumbnail, final ICallback<Thumbnail> callback) {
8995
this.post(newThumbnail, callback);
9096
}
9197

92-
@Deprecated
93-
public Thumbnail create(final Thumbnail newThumbnail) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(Thumbnail)}
100+
*/
101+
@Deprecated public Thumbnail create(final Thumbnail newThumbnail) throws ClientException {
94102
return this.post(newThumbnail);
95103
}
96104

onedrivesdk/src/main/java/com/onedrive/sdk/generated/BaseThumbnailSetRequest.java

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,17 @@ public ThumbnailSet get() throws ClientException {
5858
return send(HttpMethod.GET, null);
5959
}
6060

61-
@Deprecated
62-
public void update(final ThumbnailSet sourceThumbnailSet, final ICallback<ThumbnailSet> callback) {
61+
/**
62+
* @deprecated As of release 1.1.3, replaced by {@link #patch(ThumbnailSet, ICallback)}
63+
*/
64+
@Deprecated public void update(final ThumbnailSet sourceThumbnailSet, final ICallback<ThumbnailSet> callback) {
6365
this.patch(sourceThumbnailSet, callback);
6466
}
6567

66-
@Deprecated
67-
public ThumbnailSet update(final ThumbnailSet sourceThumbnailSet) throws ClientException {
68+
/**
69+
* @deprecated As of release 1.1.3, replaced by {@link #patch(ThumbnailSet)}
70+
*/
71+
@Deprecated public ThumbnailSet update(final ThumbnailSet sourceThumbnailSet) throws ClientException {
6872
return this.patch(sourceThumbnailSet);
6973
}
7074

@@ -84,13 +88,17 @@ public void delete() throws ClientException {
8488
send(HttpMethod.DELETE, null);
8589
}
8690

87-
@Deprecated
88-
public void create(final ThumbnailSet newThumbnailSet, final ICallback<ThumbnailSet> callback) {
91+
/**
92+
* @deprecated As of release 1.1.3, replaced by {@link #post(ThumbnailSet, ICallback)}
93+
*/
94+
@Deprecated public void create(final ThumbnailSet newThumbnailSet, final ICallback<ThumbnailSet> callback) {
8995
this.post(newThumbnailSet, callback);
9096
}
9197

92-
@Deprecated
93-
public ThumbnailSet create(final ThumbnailSet newThumbnailSet) throws ClientException {
98+
/**
99+
* @deprecated As of release 1.1.3, replaced by {@link #post(ThumbnailSet)}
100+
*/
101+
@Deprecated public ThumbnailSet create(final ThumbnailSet newThumbnailSet) throws ClientException {
94102
return this.post(newThumbnailSet);
95103
}
96104

0 commit comments

Comments
 (0)