Skip to content

Commit

Permalink
Merge branch 'paulo-raca-getSize'
Browse files Browse the repository at this point in the history
Added getSize()
  • Loading branch information
onyxbits committed Sep 25, 2019
2 parents 94ab6c7 + c9f30e6 commit f153eac
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/com/akdeniz/googleplaycrawler/DownloadData.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ public InputStream openApp() throws IOException, NoSuchAlgorithmException,
return ret;
}
}

public long getAppSize() {
return appDeliveryData.getDownloadSize();
}

/**
* Query the total downloadsize
Expand Down Expand Up @@ -233,4 +237,11 @@ public String getSplitId(int n) {
return null;
}

public long getSplitSize(int n) {
if (getSplitCount() > 0) {
return appDeliveryData.getSplitDeliveryData(n).getDownloadSize();
}
return -1;
}

}

0 comments on commit f153eac

Please sign in to comment.