added card entities for fav/unfav

This commit is contained in:
Mariotaku Lee 2015-04-19 01:17:06 +08:00
parent 6cf363f7e2
commit e50127ad8a
1 changed files with 4 additions and 4 deletions

View File

@ -136,7 +136,7 @@ final class TwitterImpl extends TwitterBaseImpl implements Twitter {
final String url = conf.getRestBaseURL() + ENDPOINT_FAVORITES_CREATE; final String url = conf.getRestBaseURL() + ENDPOINT_FAVORITES_CREATE;
final String signUrl = conf.getSigningRestBaseURL() + ENDPOINT_FAVORITES_CREATE; final String signUrl = conf.getSigningRestBaseURL() + ENDPOINT_FAVORITES_CREATE;
return factory.createStatus(post(url, signUrl, new HttpParameter("id", id), INCLUDE_ENTITIES, return factory.createStatus(post(url, signUrl, new HttpParameter("id", id), INCLUDE_ENTITIES,
INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT)); INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT, INCLUDE_CARDS, CARDS_PLATFORM));
} }
@Override @Override
@ -315,7 +315,7 @@ final class TwitterImpl extends TwitterBaseImpl implements Twitter {
ensureAuthorizationEnabled(); ensureAuthorizationEnabled();
return factory.createStatus(post(conf.getRestBaseURL() + ENDPOINT_FAVORITES_DESTROY, return factory.createStatus(post(conf.getRestBaseURL() + ENDPOINT_FAVORITES_DESTROY,
conf.getSigningRestBaseURL() + ENDPOINT_FAVORITES_DESTROY, new HttpParameter("id", id), conf.getSigningRestBaseURL() + ENDPOINT_FAVORITES_DESTROY, new HttpParameter("id", id),
INCLUDE_ENTITIES, INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT)); INCLUDE_ENTITIES, INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT, INCLUDE_CARDS, CARDS_PLATFORM));
} }
@Override @Override
@ -361,7 +361,7 @@ final class TwitterImpl extends TwitterBaseImpl implements Twitter {
ensureAuthorizationEnabled(); ensureAuthorizationEnabled();
return factory.createStatus(post(conf.getRestBaseURL() + "statuses/destroy/" + statusId + ".json", return factory.createStatus(post(conf.getRestBaseURL() + "statuses/destroy/" + statusId + ".json",
conf.getSigningRestBaseURL() + "statuses/destroy/" + statusId + ".json", INCLUDE_ENTITIES, conf.getSigningRestBaseURL() + "statuses/destroy/" + statusId + ".json", INCLUDE_ENTITIES,
INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT)); INCLUDE_REPLY_COUNT, INCLUDE_DESCENDENT_REPLY_COUNT, INCLUDE_CARDS, CARDS_PLATFORM));
} }
@Override @Override
@ -1313,7 +1313,7 @@ final class TwitterImpl extends TwitterBaseImpl implements Twitter {
final String url = conf.getRestBaseURL() + "statuses/retweet/" + statusId + ".json"; final String url = conf.getRestBaseURL() + "statuses/retweet/" + statusId + ".json";
final String signUrl = conf.getSigningRestBaseURL() + "statuses/retweet/" + statusId + ".json"; final String signUrl = conf.getSigningRestBaseURL() + "statuses/retweet/" + statusId + ".json";
return factory.createStatus(post(url, signUrl, INCLUDE_ENTITIES, INCLUDE_REPLY_COUNT, return factory.createStatus(post(url, signUrl, INCLUDE_ENTITIES, INCLUDE_REPLY_COUNT,
INCLUDE_DESCENDENT_REPLY_COUNT)); INCLUDE_DESCENDENT_REPLY_COUNT, INCLUDE_CARDS, CARDS_PLATFORM));
} }
@Override @Override