facebook4j.api.FavoriteMethods Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of facebook4j-core Show documentation
Show all versions of facebook4j-core Show documentation
A Java library for the Facebook Graph API
/*
* Copyright 2012 Ryuji Yamashita
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package facebook4j.api;
import facebook4j.Book;
import facebook4j.FacebookException;
import facebook4j.Game;
import facebook4j.Interest;
import facebook4j.Movie;
import facebook4j.Music;
import facebook4j.Reading;
import facebook4j.ResponseList;
import facebook4j.Television;
public interface FavoriteMethods {
/**
* Returns the books listed on the current user's profile.
* @return books
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - books
*/
ResponseList getBooks() throws FacebookException;
/**
* Returns the books listed on the current user's profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return books
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - books
*/
ResponseList getBooks(Reading reading) throws FacebookException;
/**
* Returns the books listed on a user's profile.
* @param userId the ID of a user
* @return books
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - books
*/
ResponseList getBooks(String userId) throws FacebookException;
/**
* Returns the books listed on a user's profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return books
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - books
*/
ResponseList getBooks(String userId, Reading reading) throws FacebookException;
/**
* Returns the games the current user has added to the Arts and Entertainment section of their profile.
* @return games
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - games
*/
ResponseList getGames() throws FacebookException;
/**
* Returns the games the current user has added to the Arts and Entertainment section of their profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return games
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - games
*/
ResponseList getGames(Reading reading) throws FacebookException;
/**
* Returns the games a user has added to the Arts and Entertainment section of their profile.
* @param userId the ID of a user
* @return games
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - games
*/
ResponseList getGames(String userId) throws FacebookException;
/**
* Returns the games a user has added to the Arts and Entertainment section of their profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return games
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - games
*/
ResponseList getGames(String userId, Reading reading) throws FacebookException;
/**
* Returns the movies listed on the current user's profile.
* @return movies
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - movies
*/
ResponseList getMovies() throws FacebookException;
/**
* Returns the movies listed on the current user's profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return movies
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - movies
*/
ResponseList getMovies(Reading reading) throws FacebookException;
/**
* Returns the movies listed on a user's profile.
* @param userId the ID of a user
* @return movies
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - movies
*/
ResponseList getMovies(String userId) throws FacebookException;
/**
* Returns the movies listed on a user's profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return movies
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - movies
*/
ResponseList getMovies(String userId, Reading reading) throws FacebookException;
/**
* Returns the music listed on the current user's profile.
* @return music
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - music
*/
ResponseList getMusic() throws FacebookException;
/**
* Returns the music listed on the current user's profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return music
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - music
*/
ResponseList getMusic(Reading reading) throws FacebookException;
/**
* Returns the music listed on a user's profile.
* @param userId the ID of a user
* @return music
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - music
*/
ResponseList getMusic(String userId) throws FacebookException;
/**
* Returns the music listed on a user's profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return music
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - music
*/
ResponseList getMusic(String userId, Reading reading) throws FacebookException;
/**
* Returns the television listed on the current user's profile.
* @return television
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - television
*/
ResponseList getTelevision() throws FacebookException;
/**
* Returns the television listed on the current user's profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return television
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - television
*/
ResponseList getTelevision(Reading reading) throws FacebookException;
/**
* Returns the television listed on a user's profile.
* @param userId the ID of a user
* @return television
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - television
*/
ResponseList getTelevision(String userId) throws FacebookException;
/**
* Returns the television listed on a user's profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return television
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - television
*/
ResponseList getTelevision(String userId, Reading reading) throws FacebookException;
/**
* Returns the interests listed on the current user's profile.
* @return interests
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - interests
*/
ResponseList getInterests() throws FacebookException;
/**
* Returns the interests listed on the current user's profile.
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return interests
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - interests
*/
ResponseList getInterests(Reading reading) throws FacebookException;
/**
* Returns the interests listed on a user's profile.
* @param userId the ID of a user
* @return interests
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - interests
*/
ResponseList getInterests(String userId) throws FacebookException;
/**
* Returns the interests listed on a user's profile.
* @param userId the ID of a user
* @param reading optional reading parameters. see Graph API#reading - Facebook Developers
* @return interests
* @throws FacebookException when Facebook service or network is unavailable
* @see User - Facebook Developers - Connections - interests
*/
ResponseList getInterests(String userId, Reading reading) throws FacebookException;
}