Package ca.intelliware.studygroup.rest.model

Examples of ca.intelliware.studygroup.rest.model.FlickrItem


    JSONArray items = extractItemsFromStream(is);
   
    int numberOfResults = items.length() <= MAX_NUMBER_OF_ITEMS_TO_RETURN ? items.length() : MAX_NUMBER_OF_ITEMS_TO_RETURN;
    for (int i = 0; i<numberOfResults; i++) {
      JSONObject result = items.getJSONObject(i);
      FlickrItem flickrItem = new FlickrItem();
      flickrItem.setTitle(result.getString("title"));
      flickrItem.setAuthorId(result.getString("author_id"));
      flickrItem.setFlickrUrl(result.getString("link"));
      flickrItem.setImgUrl(result.getJSONObject("media").getString("m"));
      flickrItems.add(flickrItem);
    }
    return flickrItems;
  }
View Full Code Here

TOP

Related Classes of ca.intelliware.studygroup.rest.model.FlickrItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.