Android Open Source - MyFlickrSearch Flickr Img Container






From Project

Back to project page MyFlickrSearch.

License

The source code is released under:

MIT License

If you think the Android project MyFlickrSearch listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.devng.flickrsearch.model;
/* ww w  .  j  av  a  2  s  . c  om*/
import java.io.Serializable;
import java.util.List;

public class FlickrImgContainer implements Serializable {

  private static final long serialVersionUID = 1L;

  private int page;

  private int pages;

  private int perpage;

  private int total;

  private List<FlickrImgRef> photo;

  public int getPage() {
    return page;
  }

  public void setPage(int page) {
    this.page = page;
  }

  public int getPages() {
    return pages;
  }

  public void setPages(int pages) {
    this.pages = pages;
  }

  public int getPerpage() {
    return perpage;
  }

  public void setPerpage(int perpage) {
    this.perpage = perpage;
  }

  public int getTotal() {
    return total;
  }

  public void setTotal(int total) {
    this.total = total;
  }

  public List<FlickrImgRef> getPhoto() {
    return photo;
  }

  public void setPhoto(List<FlickrImgRef> photo) {
    this.photo = photo;
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + page;
    result = prime * result + pages;
    result = prime * result + perpage;
    result = prime * result + ((photo == null) ? 0 : photo.hashCode());
    result = prime * result + total;
    return result;
  }

  @Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    FlickrImgContainer other = (FlickrImgContainer) obj;
    if (page != other.page)
      return false;
    if (pages != other.pages)
      return false;
    if (perpage != other.perpage)
      return false;
    if (photo == null) {
      if (other.photo != null)
        return false;
    } else if (!photo.equals(other.photo))
      return false;
    if (total != other.total)
      return false;
    return true;
  }

  @Override
  public String toString() {
    return "FlickrImgContainer [page=" + page + ", pages=" + pages
        + ", perpage=" + perpage + ", total=" + total + ", photo="
        + photo + "]";
  }


}




Java Source Code List

com.devng.flickrsearch.AbstractBackButtonActivity.java
com.devng.flickrsearch.ImageViewerActivity.java
com.devng.flickrsearch.MainActivity.java
com.devng.flickrsearch.MainModule.java
com.devng.flickrsearch.SearchResultsActivity.java
com.devng.flickrsearch.SearchResultsListAdapter.java
com.devng.flickrsearch.common.Config.java
com.devng.flickrsearch.common.Enums.java
com.devng.flickrsearch.common.Helpers.java
com.devng.flickrsearch.model.FlickrImgContainer.java
com.devng.flickrsearch.model.FlickrImgRef.java
com.devng.flickrsearch.model.FlickrImgRoot.java
com.devng.flickrsearch.task.DownloadFlickrImagesHandler.java
com.devng.flickrsearch.task.DownloadFlickrImagesTask.java
com.devng.flickrsearch.task.SearchFlickrResultHadler.java
com.devng.flickrsearch.task.SearchFlickrTask.java