Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #29 from iterate-ch/bugfix/part-response-nextpartn…
Browse files Browse the repository at this point in the history
…umber

Fix reading next part number from field nextPartNumber.
  • Loading branch information
synapticloop authored Jul 29, 2016
2 parents 3c943b0 + 3eb8355 commit 21ba881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class B2ListPartsResponse extends BaseB2Response {
public B2ListPartsResponse(String json) throws B2ApiException {
super(json);

this.nextPartNumber = this.readInt(B2ResponseProperties.KEY_NEXT_FILE_ID);
this.nextPartNumber = this.readInt(B2ResponseProperties.KEY_NEXT_PART_NUMBER);

JSONArray filesArray = this.readObjects(B2ResponseProperties.KEY_PARTS);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ public final class B2ResponseProperties {
public static final String KEY_BUCKETS = "buckets";
public static final String KEY_PARTS = "parts";
public static final String KEY_PART_NUMBER = "partNumber";
public static final String KEY_NEXT_PART_NUMBER = "nextPartNumber";
public static final String KEY_MINIMUM_PART_SIZE = "minimumPartSize";
}

0 comments on commit 21ba881

Please sign in to comment.