Here are the examples of the java api class com.akdeniz.googleplaycrawler.GooglePlay.BulkDetailsEntry taken from open source projects.
1. SearchWorker#doUpdateSearch()
Project: Raccoon
File: SearchWorker.java
File: SearchWorker.java
private Vector<BulkDetailsEntry> doUpdateSearch() throws Exception { GooglePlayAPI service = App.createConnection(archive); BulkDetailsResponse response = service.bulkDetails(archive.list()); Vector<BulkDetailsEntry> ret = new Vector<BulkDetailsEntry>(); for (BulkDetailsEntry bulkDetailsEntry : response.getEntryList()) { DocV2 doc = bulkDetailsEntry.getDoc(); String pn = doc.getBackendDocid(); int vc = doc.getDetails().getAppDetails().getVersionCode(); if (!archive.fileUnder(pn, vc).exists()) { ret.add(bulkDetailsEntry); } if (fetchIcons) { fetchIcon(doc); } } return ret; }
2. googleplay#permissionsCommand()
Project: google-play-crawler
File: googleplay.java
File: googleplay.java
private void permissionsCommand() throws Exception { login(); List<String> packages = namespace.getList("package"); BulkDetailsResponse bulkDetails = service.bulkDetails(packages); for (BulkDetailsEntry bulkDetailsEntry : bulkDetails.getEntryList()) { DocV2 doc = bulkDetailsEntry.getDoc(); AppDetails appDetails = doc.getDetails().getAppDetails(); System.out.println(doc.getDocid()); for (String permission : appDetails.getPermissionList()) { System.out.println("\t" + permission); } } }
3. SearchWorker#done()
Project: Raccoon
File: SearchWorker.java
File: SearchWorker.java
@Override protected void done() { Vector<BulkDetailsEntry> response = new Vector<BulkDetailsEntry>(); try { response = get(); } catch (CancellationException e) { searchView.doMessage(Messages.getString("SearchWorker.4")); SwingUtilities.invokeLater(searchView); return; } catch (InterruptedException e) { searchView.doMessage(Messages.getString("SearchWorker.5")); SwingUtilities.invokeLater(searchView); return; } catch (ExecutionException e) { Throwable wrapped = e.getCause(); if (wrapped instanceof GooglePlayException) { searchView.doMessage(Messages.getString("SearchWorker.1")); e.printStackTrace(); } else { searchView.doMessage(e.getMessage()); } SwingUtilities.invokeLater(searchView); return; } ListView listing = new ListView(); for (BulkDetailsEntry bulkDetailsEntry : response) { DocV2 doc = bulkDetailsEntry.getDoc(); try { listing.add(ResultView.create(searchView, doc)); } catch (Exception e) { } } if (listing.getComponentCount() > 0) { HypertextPane hp = new HypertextPane(Messages.getString("SearchWorker.6")); hp.addHyperlinkListener(new BrowseUtil()); listing.add(hp); hp.setBorder(null); searchView.doResultList(listing); } else { if (search == null) { //$NON-NLS-1$ searchView.doMessage(//$NON-NLS-1$ Messages.getString("SearchWorker.2")); } else { //$NON-NLS-1$ searchView.doMessage(//$NON-NLS-1$ Messages.getString("SearchWorker.3")); } } SwingUtilities.invokeLater(searchView); }
4. CliService#doUpdate()
Project: Raccoon
File: CliService.java
File: CliService.java
private void doUpdate() { BulkDetailsResponse response = null; GooglePlayAPI service = null; try { service = App.createConnection(destination); response = service.bulkDetails(destination.list()); } catch (Exception e) { e.printStackTrace(); return; } for (BulkDetailsEntry bulkDetailsEntry : response.getEntryList()) { DocV2 doc = bulkDetailsEntry.getDoc(); String pn = doc.getBackendDocid(); int vc = -1; int ot = -1; boolean paid = false; try { vc = doc.getDetails().getAppDetails().getVersionCode(); ot = doc.getOffer(0).getOfferType(); paid = doc.getOffer(0).getCheckoutFlowRequired(); } catch (Exception e) { continue; } File target = destination.fileUnder(pn, vc); if (!target.exists()) { FetchService fs = new FetchService(destination, pn, vc, ot, paid, this); fs.run(); } } }