twitter4j.ObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twitter4j-core Show documentation
Show all versions of twitter4j-core Show documentation
A Java library for the Twitter API
/*
* Copyright (C) 2007 Yusuke Yamamoto
* Copyright (C) 2011 Twitter, Inc.
*
* 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 twitter4j;
import twitter4j.api.HelpResources;
import java.util.Map;
/**
* @author Yusuke Yamamoto - yusuke at mac.com
* @since Twitter4J 2.2.4
*/
interface ObjectFactory extends java.io.Serializable {
Status createStatus(JSONObject json) throws TwitterException;
User createUser(JSONObject json) throws TwitterException;
UserList createAUserList(JSONObject json) throws TwitterException;
Map createRateLimitStatuses(HttpResponse res) throws TwitterException;
Status createStatus(HttpResponse res) throws TwitterException;
ResponseList createStatusList(HttpResponse res) throws TwitterException;
Trends createTrends(HttpResponse res) throws TwitterException;
User createUser(HttpResponse res) throws TwitterException;
ResponseList createUserList(HttpResponse res) throws TwitterException;
ResponseList createUserListFromJSONArray(HttpResponse res) throws TwitterException;
ResponseList createUserListFromJSONArray_Users(HttpResponse res) throws TwitterException;
QueryResult createQueryResult(HttpResponse res, Query query) throws TwitterException;
IDs createIDs(HttpResponse res) throws TwitterException;
PagableResponseList createPagableUserList(HttpResponse res) throws TwitterException;
UserList createAUserList(HttpResponse res) throws TwitterException;
PagableResponseList createPagableUserListList(HttpResponse res) throws TwitterException;
ResponseList createUserListList(HttpResponse res) throws TwitterException;
ResponseList createCategoryList(HttpResponse res) throws TwitterException;
DirectMessage createDirectMessage(HttpResponse res) throws TwitterException;
ResponseList createDirectMessageList(HttpResponse res) throws TwitterException;
Relationship createRelationship(HttpResponse res) throws TwitterException;
ResponseList createFriendshipList(HttpResponse res) throws TwitterException;
AccountTotals createAccountTotals(HttpResponse res) throws TwitterException;
AccountSettings createAccountSettings(HttpResponse res) throws TwitterException;
SavedSearch createSavedSearch(HttpResponse res) throws TwitterException;
ResponseList createSavedSearchList(HttpResponse res) throws TwitterException;
ResponseList createLocationList(HttpResponse res) throws TwitterException;
Place createPlace(HttpResponse res) throws TwitterException;
ResponseList createPlaceList(HttpResponse res) throws TwitterException;
TwitterAPIConfiguration createTwitterAPIConfiguration(HttpResponse res) throws TwitterException;
ResponseList createLanguageList(HttpResponse res) throws TwitterException;
ResponseList createEmptyResponseList();
OEmbed createOEmbed(HttpResponse res) throws TwitterException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy