mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2025-01-31 17:04:59 +01:00
api refactoring
This commit is contained in:
parent
1c54004385
commit
702a31f741
@ -1,6 +1,4 @@
|
||||
include ':twidere'
|
||||
include ':twidere.component.twitter4j'
|
||||
//include ':twidere.component.twitter4j.streaming'
|
||||
include ':twidere.component.common'
|
||||
include ':twidere.library.extension'
|
||||
include ':twidere.component.querybuilder'
|
||||
@ -8,7 +6,6 @@ include ':twidere.wear'
|
||||
include ':twidere.donate.nyanwp'
|
||||
include ':twidere.donate.nyanwp.wear'
|
||||
include ':twidere.component.nyan'
|
||||
//include ':twidere.extension.streaming'
|
||||
include ':twidere.extension.twitlonger'
|
||||
include ':twidere.extension.push.xiaomi'
|
||||
include ':twidere.extension.launcher.compose'
|
@ -42,6 +42,5 @@ dependencies {
|
||||
compile 'com.bluelinelabs:logansquare:1.0.6'
|
||||
compile 'org.apache.commons:commons-lang3:3.4'
|
||||
compile project(':twidere.component.querybuilder')
|
||||
compile project(':twidere.component.twitter4j')
|
||||
compile fileTree(dir: 'libs', include: ['*.jar'])
|
||||
}
|
||||
|
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* Copyright 2007 Yusuke Yamamoto
|
||||
*
|
||||
* 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 org.mariotaku.twidere.api.twitter;
|
||||
|
||||
import org.mariotaku.twidere.api.twitter.api.DirectMessagesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.FavoritesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.FriendsFollowersResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.HelpResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.ListsResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PlacesGeoResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PrivateActivityResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PrivateDirectMessagesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PrivateFriendsFollowersResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PrivateTimelinesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.PrivateTweetResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.SavedSearchesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.SearchResource;
|
||||
import org.mariotaku.twidere.api.twitter.api.SpamReportingResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.TimelinesResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.TrendsResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.TweetResources;
|
||||
import org.mariotaku.twidere.api.twitter.api.UsersResources;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
||||
* @since Twitter4J 2.2.0
|
||||
*/
|
||||
public interface Twitter extends SearchResource, TimelinesResources,
|
||||
TweetResources, UsersResources, ListsResources, DirectMessagesResources, FriendsFollowersResources,
|
||||
FavoritesResources, SpamReportingResources, SavedSearchesResources, TrendsResources, PlacesGeoResources,
|
||||
HelpResources, PrivateActivityResources, PrivateTweetResources, PrivateTimelinesResources,
|
||||
PrivateFriendsFollowersResources, PrivateDirectMessagesResources {
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter;
|
||||
|
||||
public interface TwitterConstants {
|
||||
|
@ -17,19 +17,22 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter;
|
||||
|
||||
import com.bluelinelabs.logansquare.annotation.JsonField;
|
||||
import com.bluelinelabs.logansquare.annotation.JsonObject;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.RestRequest;
|
||||
import org.mariotaku.simplerestapi.http.RestResponse;
|
||||
import org.mariotaku.twidere.api.twitter.model.ErrorInfo;
|
||||
import org.mariotaku.twidere.api.twitter.model.RateLimitStatus;
|
||||
import org.mariotaku.twidere.api.twitter.model.TwitterResponse;
|
||||
import org.mariotaku.twidere.api.twitter.model.impl.RateLimitStatusJSONImpl;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import twitter4j.http.HttpResponseCode;
|
||||
import twitter4j.internal.util.InternalParseUtil;
|
||||
import org.mariotaku.twidere.api.twitter.http.HttpResponseCode;
|
||||
import org.mariotaku.twidere.api.twitter.util.InternalParseUtil;
|
||||
|
||||
/**
|
||||
* An exception class that will be thrown when TwitterAPI calls are failed.<br>
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter;
|
||||
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
@ -23,10 +23,10 @@ import org.mariotaku.simplerestapi.param.Body;
|
||||
import org.mariotaku.simplerestapi.param.Form;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.DirectMessage;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.DirectMessage;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
@ -26,10 +26,10 @@ import org.mariotaku.simplerestapi.param.Body;
|
||||
import org.mariotaku.simplerestapi.param.Form;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,19 +17,19 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.Friendship;
|
||||
import twitter4j.IDs;
|
||||
import twitter4j.PageableResponseList;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.Relationship;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.TwitterException;
|
||||
import twitter4j.User;
|
||||
import org.mariotaku.twidere.api.twitter.model.Friendship;
|
||||
import org.mariotaku.twidere.api.twitter.model.IDs;
|
||||
import org.mariotaku.twidere.api.twitter.model.PageableResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.Relationship;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.User;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,14 +17,15 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import twitter4j.RateLimitStatus;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.TwitterAPIConfiguration;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.RateLimitStatus;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.TwitterAPIConfiguration;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
||||
@ -37,7 +38,7 @@ public interface HelpResources {
|
||||
* they are loaded, but no more than once a day.
|
||||
*
|
||||
* @return configuration
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a
|
||||
* href="https://dev.twitter.com/docs/api/1.1/get/help/configuration">GET
|
||||
@ -52,7 +53,7 @@ public interface HelpResources {
|
||||
* include lang with any of your requests.
|
||||
*
|
||||
* @return list of languages supported by Twitter
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a
|
||||
* href="https://dev.twitter.com/docs/api/1.1/get/help/languages">GET
|
||||
@ -66,7 +67,7 @@ public interface HelpResources {
|
||||
* This method calls http://api.twitter.com/1.1/legal/privacy.json
|
||||
*
|
||||
* @return privacy policy
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a href="https://dev.twitter.com/docs/api/1.1/get/legal/privacy">GET
|
||||
* legal/privacy | Twitter Developers</a>
|
||||
@ -148,7 +149,7 @@ public interface HelpResources {
|
||||
* This method calls http://api.twitter.com/1.1/legal/tos.json
|
||||
*
|
||||
* @return Terms of Service
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a href="https://dev.twitter.com/docs/api/1.1/get/legal/tos">GET
|
||||
* legal/tos | Twitter Developers</a>
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
@ -26,14 +26,14 @@ import org.mariotaku.simplerestapi.param.Body;
|
||||
import org.mariotaku.simplerestapi.param.Form;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.PageableResponseList;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.TwitterException;
|
||||
import twitter4j.User;
|
||||
import twitter4j.UserList;
|
||||
import twitter4j.UserListUpdate;
|
||||
import org.mariotaku.twidere.api.twitter.model.PageableResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.User;
|
||||
import org.mariotaku.twidere.api.twitter.model.UserList;
|
||||
import org.mariotaku.twidere.api.twitter.model.UserListUpdate;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,14 +17,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.GeoLocation;
|
||||
import twitter4j.GeoQuery;
|
||||
import twitter4j.Place;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.SimilarPlaces;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.GeoLocation;
|
||||
import org.mariotaku.twidere.api.twitter.model.GeoQuery;
|
||||
import org.mariotaku.twidere.api.twitter.model.Place;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.SimilarPlaces;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
||||
@ -58,7 +58,7 @@ public interface PlacesGeoResources {
|
||||
|
||||
/**
|
||||
* Find out more details of a place that was returned from the
|
||||
* {@link PlacesGeoResources#reverseGeoCode(twitter4j.GeoQuery)}
|
||||
* {@link PlacesGeoResources#reverseGeoCode(GeoQuery)}
|
||||
* method. <br>
|
||||
* This method calls http://api.twitter.com/1.1/geo/id/:id.json
|
||||
*
|
@ -1,9 +1,9 @@
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.Activity;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.Activity;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface PrivateActivityResources extends PrivateResources {
|
||||
public ResponseList<Activity> getActivitiesAboutMe() throws TwitterException;
|
@ -17,9 +17,9 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* Created by mariotaku on 15/1/6.
|
@ -1,7 +1,7 @@
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.TwitterException;
|
||||
import twitter4j.User;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.User;
|
||||
|
||||
public interface PrivateFriendsFollowersResources extends PrivateResources {
|
||||
|
@ -0,0 +1,5 @@
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
public interface PrivateResources {
|
||||
|
||||
}
|
@ -1,12 +1,12 @@
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface PrivateTimelinesResources extends PrivateResources {
|
||||
|
@ -1,14 +1,14 @@
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.StatusActivitySummary;
|
||||
import twitter4j.TranslationResult;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.model.StatusActivitySummary;
|
||||
import org.mariotaku.twidere.api.twitter.model.TranslationResult;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface PrivateTweetResources extends PrivateResources {
|
||||
|
@ -17,13 +17,13 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.SavedSearch;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.SavedSearch;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface SavedSearchesResources {
|
||||
SavedSearch createSavedSearch(String query) throws TwitterException;
|
@ -17,14 +17,14 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.QueryResult;
|
||||
import twitter4j.SearchQuery;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.QueryResult;
|
||||
import org.mariotaku.twidere.api.twitter.model.SearchQuery;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface SearchResource {
|
||||
@GET("/search/tweets.json")
|
@ -14,10 +14,10 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.TwitterException;
|
||||
import twitter4j.User;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.User;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,15 +17,15 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -14,13 +14,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import twitter4j.GeoLocation;
|
||||
import twitter4j.Location;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Trends;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.GeoLocation;
|
||||
import org.mariotaku.twidere.api.twitter.model.Location;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Trends;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
||||
@ -36,7 +36,7 @@ public interface TrendsResources {
|
||||
* This method calls http://api.twitter.com/1.1/trends/available.json
|
||||
*
|
||||
* @return the locations
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a
|
||||
* href="https://dev.twitter.com/docs/api/1.1/get/trends/available">GET
|
||||
@ -58,7 +58,7 @@ public interface TrendsResources {
|
||||
* to the lat and long passed in. The sort is nearest to
|
||||
* furthest.
|
||||
* @return the locations
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a
|
||||
* href="https://dev.twitter.com/docs/api/1.1/get/trends/available">GET
|
||||
@ -81,7 +81,7 @@ public interface TrendsResources {
|
||||
* to the lat and long passed in. The sort is nearest to
|
||||
* furthest.
|
||||
* @return the locations
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a
|
||||
* href="https://dev.twitter.com/docs/api/1.1/get/trends/closest">GET
|
||||
@ -103,7 +103,7 @@ public interface TrendsResources {
|
||||
*
|
||||
* @param woeid The WOEID of the location to be querying for
|
||||
* @return trends
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a href="https://dev.twitter.com/docs/api/1.1/get/trends/:woeid">GET
|
||||
* trends/:woeid | Twitter Developers</a>
|
||||
@ -129,7 +129,7 @@ public interface TrendsResources {
|
||||
* trending information for. Global information is available by
|
||||
* using 1 as the WOEID.
|
||||
* @return trends
|
||||
* @throws twitter4j.TwitterException when Twitter service or network is
|
||||
* @throws TwitterException when Twitter service or network is
|
||||
* unavailable
|
||||
* @see <a href="https://dev.twitter.com/docs/api/1.1/get/trends/place">GET
|
||||
* trends/place | Twitter Developers</a>
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
@ -27,12 +27,12 @@ import org.mariotaku.simplerestapi.param.Form;
|
||||
import org.mariotaku.simplerestapi.param.Path;
|
||||
import org.mariotaku.simplerestapi.param.Query;
|
||||
|
||||
import twitter4j.IDs;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.Status;
|
||||
import twitter4j.StatusUpdate;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.IDs;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Status;
|
||||
import org.mariotaku.twidere.api.twitter.model.StatusUpdate;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
/**
|
||||
* @author Joern Huxhorn - jhuxhorn at googlemail.com
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.http.mime.FileTypedData;
|
||||
@ -27,8 +27,8 @@ import org.mariotaku.simplerestapi.param.Part;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import twitter4j.MediaUploadResponse;
|
||||
import twitter4j.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.MediaUploadResponse;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
|
||||
public interface TwitterUpload {
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.api;
|
||||
package org.mariotaku.twidere.api.twitter.api;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.BodyType;
|
||||
import org.mariotaku.simplerestapi.method.GET;
|
||||
@ -29,16 +29,16 @@ import org.mariotaku.simplerestapi.param.Query;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
|
||||
import twitter4j.AccountSettings;
|
||||
import twitter4j.Category;
|
||||
import twitter4j.IDs;
|
||||
import twitter4j.PageableResponseList;
|
||||
import twitter4j.Paging;
|
||||
import twitter4j.ProfileUpdate;
|
||||
import twitter4j.ResponseList;
|
||||
import twitter4j.SettingsUpdate;
|
||||
import twitter4j.TwitterException;
|
||||
import twitter4j.User;
|
||||
import org.mariotaku.twidere.api.twitter.model.AccountSettings;
|
||||
import org.mariotaku.twidere.api.twitter.model.Category;
|
||||
import org.mariotaku.twidere.api.twitter.model.IDs;
|
||||
import org.mariotaku.twidere.api.twitter.model.PageableResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.Paging;
|
||||
import org.mariotaku.twidere.api.twitter.model.ProfileUpdate;
|
||||
import org.mariotaku.twidere.api.twitter.model.ResponseList;
|
||||
import org.mariotaku.twidere.api.twitter.model.SettingsUpdate;
|
||||
import org.mariotaku.twidere.api.twitter.TwitterException;
|
||||
import org.mariotaku.twidere.api.twitter.model.User;
|
||||
|
||||
public interface UsersResources {
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j.auth;
|
||||
package org.mariotaku.twidere.api.twitter.auth;
|
||||
|
||||
/**
|
||||
* A static factory class for Authorization.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j.http;
|
||||
package org.mariotaku.twidere.api.twitter.http;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -14,9 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
|
||||
import java.io.Serializable;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.util.Map;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -14,9 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
|
||||
import java.io.Serializable;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import com.bluelinelabs.logansquare.annotation.JsonField;
|
||||
import com.bluelinelabs.logansquare.annotation.JsonObject;
|
@ -17,7 +17,10 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j.lib;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
public interface ExtendedEntitySupport extends EntitySupport {
|
||||
|
||||
MediaEntity[] getExtendedMediaEntities();
|
||||
|
||||
public class MyClass {
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import com.bluelinelabs.logansquare.LoganSquare;
|
||||
import com.bluelinelabs.logansquare.typeconverters.TypeConverter;
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.ValueMap;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* A data interface representing array of numeric IDs.
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -1,8 +1,7 @@
|
||||
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
public interface MediaUploadResponse extends TwitterResponse {
|
||||
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* ResponseList with cursor support.
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.ValueMap;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* @author Yusuke Yamamoto - yusuke at mac.com
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.SimpleValueMap;
|
||||
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* A data interface representing search API response
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
/**
|
||||
* A data interface representing Twitter REST API's rate limit status
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
public interface Relationship extends TwitterResponse {
|
||||
boolean canSourceDMTarget();
|
@ -1,4 +1,4 @@
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
public enum ReportAs {
|
||||
ABUSE("abuse"), COMPROMISED("compromised"), SPAM("spam");
|
@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -14,11 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import com.bluelinelabs.logansquare.annotation.JsonObject;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
@ -17,7 +17,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package twitter4j;
|
||||
package org.mariotaku.twidere.api.twitter.model;
|
||||
|
||||
import org.mariotaku.simplerestapi.http.ValueMap;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user