com.google.code.facebookapi
Class MarketplaceListing

java.lang.Object
  extended by com.google.code.facebookapi.MarketListing
      extended by com.google.code.facebookapi.MarketplaceListing

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

@Deprecated
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.


Field Summary
 
Fields inherited from class com.google.code.facebookapi.MarketListing
attribs, CATEGORY_ATTRIB, CONDITION_ANY, CONDITION_NEW, CONDITION_USED, DESCRIPTION_ATTRIB, log, SUBCATEGORY_ATTRIB, TITLE_ATTRIB
 
Constructor Summary
MarketplaceListing(java.lang.String category, java.lang.String subCategory, java.lang.String title, java.lang.String description)
          Deprecated. provided for legacy support only. Please use MarketListing instead.
MarketplaceListing(java.lang.String category, java.lang.String subCategory, java.lang.String title, java.lang.String description, java.util.Map<java.lang.CharSequence,java.lang.CharSequence> extraAttributes)
          Deprecated. provided for legacy support only. Please use MarketListing instead.
 
Method Summary
 org.json.JSONObject jsonify()
          Deprecated. provided for legacy support only. Please use MarketListing instead.
 void putAttribute(java.lang.CharSequence attr, java.lang.CharSequence value)
          Deprecated. provided for legacy support only. Please use MarketListing instead.
 
Methods inherited from class com.google.code.facebookapi.MarketListing
getAttribute, getCategory, getDescription, getSubCategory, getTitle, removeAttribute, setAttribute, setCategory, setDescription, setSubCategory, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarketplaceListing

@Deprecated
public MarketplaceListing(java.lang.String category,
                                     java.lang.String subCategory,
                                     java.lang.String title,
                                     java.lang.String description)
Deprecated. provided for legacy support only. Please use MarketListing instead.

Constructor.

Parameters:
category -
subCategory -
title -
description -

MarketplaceListing

@Deprecated
public MarketplaceListing(java.lang.String category,
                                     java.lang.String subCategory,
                                     java.lang.String title,
                                     java.lang.String description,
                                     java.util.Map<java.lang.CharSequence,java.lang.CharSequence> extraAttributes)
Deprecated. provided for legacy support only. Please use MarketListing instead.

Constructor.

Parameters:
category -
subCategory -
title -
description -
extraAttributes -
Method Detail

putAttribute

@Deprecated
public void putAttribute(java.lang.CharSequence attr,
                                    java.lang.CharSequence value)
Deprecated. provided for legacy support only. Please use MarketListing instead.

Does the same thing as 'setAttribute'.

Parameters:
attr -
value -

jsonify

@Deprecated
public org.json.JSONObject jsonify()
Deprecated. provided for legacy support only. Please use MarketListing instead.

Return a JSON representation of this object

Returns:
JSONObject


Copyright © 2010. All Rights Reserved.