Ejemplo n.º 1
0
 public BundleInfo(File ipaFile) {
   this.ipaFile = ipaFile;
   this.playlistName = "[" + NameComposer.parseName(ipaFile.getName()) + "]";
   this.type = "" + NameComposer.getType(ipaFile.getName());
   this.bundleVersion = NULL_VALUE;
   this.itemId = NULL_VALUE;
   this.appleId = NULL_VALUE;
   this.purchaseDate = NULL_VALUE;
   this.price = "-00.00";
   this.lastBundleVersion = NULL_VALUE;
 }
Ejemplo n.º 2
0
  public BundleInfo(File ipaFile, NSDictionary dict) {
    this.ipaFile = ipaFile;
    this.playlistName = _readValue(dict, "playlistName");
    this.type = "" + NameComposer.getType(ipaFile.getName());
    this.bundleVersion = _readValue(dict, "bundleVersion");
    this.itemId = _readValue(dict, "itemId");
    this.appleId = _readValue(dict, "appleId");
    this.purchaseDate = _readValue(dict, "purchaseDate");
    this.price = _readFloatValue(dict, "price");
    this.lastBundleVersion = NULL_VALUE;

    if (this.playlistName == NULL_VALUE) {
      this.playlistName = "[" + NameComposer.parseName(ipaFile.getName()) + "]";
    }
    if (this.appleId == NULL_VALUE) {
      this.appleId = _readValue(dict, "com.apple.iTunesStore.downloadInfo/accountInfo/AppleID");
    }
    if (this.purchaseDate == NULL_VALUE) {
      this.purchaseDate = _readValue(dict, "com.apple.iTunesStore.downloadInfo/purchaseDate");
    }
  }