MarketplaceListingpublic 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.
|
Constructors Summary |
---|
public MarketplaceListing(String category, String subCategory, String title, String description)Constructor.
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.
this(category, subCategory, title, description);
if (null != extraAttributes) {
for (CharSequence key : extraAttributes.keySet()) {
super.setAttribute(key.toString(), extraAttributes.get(key).toString());
}
}
|
|