FileDocCategorySizeDatePackage
MarketplaceListing.javaAPI DocGoogle Facebook API v1.45150Thu Nov 01 18:31:06 GMT 2007com.facebook.api

MarketplaceListing

public class MarketplaceListing extends MarketListing
Facebook foolishly decided to copy this project's idea of having a utility class for creating marketplace listings, without bothering to implemenent a solution that was compatible with the pre-existing version. The open-source project got here first, and Facebook should have respected that, but they didn't. Hence we have a useless extra class so that people who are using the official API can still easily migrate to this project.

This class is only provided to preserve drop-in compatibility with the latest "official" version of the Facebook API, and generally should not be used in other cases. It is important to avoid use of this class, as that will help to discourage Facebook from repeating their actions in the future.

deprecated
provided for legacy support only. Please use MarketListing instead.

Fields Summary
Constructors Summary
public MarketplaceListing(String category, String subCategory, String title, String description)
Constructor.

param
category
param
subCategory
param
title
param
description
deprecated
provided for legacy support only. Please use MarketListing instead.

      super(title, description, null, null);
      this.setAttribute("category", category);
      this.setAttribute("subcategory", subCategory);
  
public MarketplaceListing(String category, String subCategory, String title, String description, Map extraAttributes)
Constructor.

param
category
param
subCategory
param
title
param
description
param
extraAttributes
deprecated
provided for legacy support only. Please use MarketListing instead.

      this(category, subCategory, title, description);
      if (null != extraAttributes) {
          for (CharSequence key : extraAttributes.keySet()) {
              super.setAttribute(key.toString(), extraAttributes.get(key).toString());
          }
      }
  
Methods Summary
public org.json.JSONObjectjsonify()
Return a JSON representation of this object

return
JSONObject
deprecated
provided for legacy support only. Please use MarketListing instead.

    return super.attribs;
  
public voidputAttribute(java.lang.CharSequence attr, java.lang.CharSequence value)
Does the same thing as 'setAttribute'.

param
attr
param
value
deprecated
provided for legacy support only. Please use MarketListing instead.

      super.setAttribute(attr.toString(), value.toString());