Permalink
Browse files

added images to bookmarks

  • Loading branch information...
1 parent dfd0427 commit 7adaf4bdcd6cf749473fe10e22ff28bdcce7c6ca @Gwindow committed Jun 6, 2012
Showing with 41 additions and 42 deletions.
  1. +6 −5 src/api/bookmarks/Bookmarks.java
  2. +25 −27 src/api/bookmarks/Torrent.java
  3. +10 −10 src/api/bookmarks/Torrents.java
@@ -1,4 +1,3 @@
-
package api.bookmarks;
/**
@@ -29,11 +28,11 @@
private String status;
/**
- * loads the torrent bookmarks.
+ * Inits the torrent bookmarks.
*
* @return the bookmarks
*/
- public static Bookmarks loadTorrentBookmarks() {
+ public static Bookmarks initTorrentBookmarks() {
String authkey = MySoup.getAuthKey();
String url = "ajax.php?action=bookmarks&type=torrents&auth=" + authkey;
Bookmarks bookmarks = (Bookmarks) MySon.toObject(url, Bookmarks.class);
@@ -135,9 +134,11 @@ private void downloadTorrent(String url, String path, String name) throws IOExce
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
*
- * @see java.lang.Object#toString() */
+ * @see java.lang.Object#toString()
+ */
@Override
public String toString() {
return "Bookmarks [getResponse=" + getResponse() + ", getStatus=" + getStatus() + "]";
@@ -1,7 +1,3 @@
-
-
-
-
package api.bookmarks;
import java.io.FileOutputStream;
@@ -18,70 +14,70 @@
* @author Gwindow
*/
public class Torrent {
-
+
/** The encoding. */
private String encoding;
-
+
/** The file count. */
private Number fileCount;
-
+
/** The format. */
private String format;
-
+
/** The free torrent. */
private boolean freeTorrent;
-
+
/** The group id. */
private Number groupId;
-
+
/** The has cue. */
private boolean hasCue;
-
+
/** The has file. */
private Number hasFile;
-
+
/** The has log. */
private boolean hasLog;
-
+
/** The id. */
private Number id;
-
+
/** The leechers. */
private Number leechers;
-
+
/** The log score. */
private Number logScore;
-
+
/** The media. */
private String media;
-
+
/** The remaster catalogue number. */
private String remasterCatalogueNumber;
-
+
/** The remaster record label. */
private String remasterRecordLabel;
-
+
/** The remaster title. */
private String remasterTitle;
-
+
/** The remaster year. */
private String remasterYear;
-
+
/** The remastered. */
private boolean remastered;
-
+
/** The scene. */
private boolean scene;
-
+
/** The seeders. */
private Number seeders;
-
+
/** The size. */
private Number size;
-
+
/** The snatched. */
private Number snatched;
-
+
/** The time. */
private String time;
@@ -328,7 +324,9 @@ public void downloadFile(String url, String path) throws IOException {
}
- /* (non-Javadoc)
+ /*
+ * (non-Javadoc)
+ *
* @see java.lang.Object#toString()
*/
@Override
@@ -1,4 +1,3 @@
-
package api.bookmarks;
import java.util.List;
@@ -37,6 +36,8 @@
/** The year. */
private Number year;
+ private String image;
+
/**
* Gets the catalogue number.
*
@@ -118,16 +119,15 @@ public Number getYear() {
return this.year;
}
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
+ public String getImage() {
+ return this.image;
+ }
+
@Override
public String toString() {
- return "BookmarksList [getCatalogueNumber=" + getCatalogueNumber() + ", getId=" + getId() + ", getName=" + getName()
- + ", getRecordLabel=" + getRecordLabel() + ", getReleaseType=" + getReleaseType() + ", getTagList="
- + getTagList() + ", getTorrents=" + getTorrents() + ", isVanityHouse=" + isVanityHouse() + ", getYear="
- + getYear() + "]";
+ return "Torrents [getCatalogueNumber()=" + getCatalogueNumber() + ", getId()=" + getId() + ", getName()=" + getName()
+ + ", getRecordLabel()=" + getRecordLabel() + ", getReleaseType()=" + getReleaseType() + ", getTagList()="
+ + getTagList() + ", getTorrents()=" + getTorrents() + ", isVanityHouse()=" + isVanityHouse() + ", getYear()="
+ + getYear() + ", getImage()=" + getImage() + "]";
}
}

0 comments on commit 7adaf4b

Please sign in to comment.