⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flickrphotos.java

📁 RESIN 3.2 最新源码
💻 JAVA
字号:
package example.data;import java.util.*;import javax.xml.bind.annotation.*;@XmlRootElement(name="photos")public class FlickrPhotos implements FlickrPayload {  @XmlAttribute public int page;  @XmlAttribute public int pages;  @XmlAttribute public int perpage;  @XmlAttribute public int total;  @XmlElement(name="photo") public List<Photo> photos = new ArrayList<Photo>();  public static class Photo {    @XmlAttribute public String id;    @XmlAttribute public String owner;    @XmlAttribute public String secret;    @XmlAttribute public int server;    @XmlAttribute public String title;    @XmlAttribute public int ispublic;    @XmlAttribute public int isfriend;    @XmlAttribute public int isfamily;    public String toString()    {      return "Photo[id=" + id + ", " +                   "owner=" + owner + ", " +                   "secret=" + secret + ", " +                   "server=" + server + ", " +                   "title=" + title + ", " +                   "ispublic=" + ispublic + ", " +                   "isfriend =" + isfriend + ", " +                   "isfamily=" + isfamily + "]";    }  }  public String toString()  {    StringBuilder sb = new StringBuilder();    sb.append("FlickrPhotos[page=" + page + ", ");    sb.append(             "pages=" + pages + ", ");    sb.append(             "perpage=" + perpage + ", ");    sb.append(             "total=" + total + ", ");    sb.append(             "photos=(");    for (Photo photo : photos) {      sb.append(photo.toString());      sb.append(' ');    }    sb.append(")]");    return sb.toString();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -