Example #1
0
/** @author Yaniv Inbar */
public class AlbumEntry extends Entry {

  @Key("gphoto:access")
  public String access;

  @Key public Category category = Category.newKind("album");

  @Key("gphoto:numphotos")
  public int numPhotos;

  @Override
  public AlbumEntry clone() {
    return (AlbumEntry) super.clone();
  }
}
Example #2
0
/** @author Yaniv Inbar */
public class AlbumEntry extends Entry {

  @Key("gphoto:access")
  public String access;

  @Key public Category category = Category.newKind("album");

  @Override
  public AlbumEntry clone() {
    return (AlbumEntry) super.clone();
  }

  public AlbumEntry executePatchRelativeToOriginal(HttpTransport transport, AlbumEntry original)
      throws IOException {
    return (AlbumEntry) super.executePatchRelativeToOriginal(transport, original);
  }

  public static AlbumEntry executeInsert(HttpTransport transport, AlbumEntry entry, String postLink)
      throws IOException {
    return (AlbumEntry) Entry.executeInsert(transport, entry, postLink);
  }
}