本文整理汇总了Java中com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData类的典型用法代码示例。如果您正苦于以下问题:Java AndroidAppDeliveryData类的具体用法?Java AndroidAppDeliveryData怎么用?Java AndroidAppDeliveryData使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AndroidAppDeliveryData类属于com.akdeniz.googleplaycrawler.GooglePlay包,在下文中一共展示了AndroidAppDeliveryData类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: delivery
import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData delivery(String packageName, int versionCode, int offerType)
throws IOException {
ResponseWrapper responseWrapper = executeGETRequest(DELIVERY_URL, new String[][] {
{ "ot", String.valueOf(offerType) },
{ "doc", packageName },
{ "vc", String.valueOf(versionCode) }, });
AndroidAppDeliveryData appDeliveryData = responseWrapper.getPayload().getDeliveryResponse()
.getAppDeliveryData();
return new DownloadData(this, appDeliveryData);
}
示例2: purchaseAndDeliver
import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData purchaseAndDeliver(String packageName, int versionCode, int offerType) throws IOException {
BuyResponse buyResponse = purchase(packageName, versionCode, offerType);
AndroidAppDeliveryData ada = buyResponse.getPurchaseStatusResponse().getAppDeliveryData();
if (ada.hasDownloadUrl() && ada.getDownloadAuthCookieCount()>0) {
// This is for backwards compatibility.
return new DownloadData(this, ada);
}
return delivery(packageName, versionCode, offerType);
}
示例3: DownloadData
import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData(GooglePlayAPI api, AndroidAppDeliveryData appDeliveryData) {
this.appDeliveryData = appDeliveryData;
this.api = api;
this.downloadUrl = appDeliveryData.getDownloadUrl();
this.downloadAuthCookie = appDeliveryData.getDownloadAuthCookie(0);
this.totalSize = appDeliveryData.getDownloadSize();
for (int i = 0; i < appDeliveryData.getAdditionalFileCount(); i++) {
totalSize += appDeliveryData.getAdditionalFile(i).getSize();
}
}
示例4: DownloadData
import com.akdeniz.googleplaycrawler.GooglePlay.AndroidAppDeliveryData; //导入依赖的package包/类
public DownloadData(GooglePlayAPI api, AndroidAppDeliveryData appDeliveryData) {
this.appDeliveryData = appDeliveryData;
this.api = api;
this.downloadUrl = appDeliveryData.getDownloadUrl();
this.downloadAuthCookie = appDeliveryData.getDownloadAuthCookie(0);
}