package net.dev123.mblog.fanfou;
import net.dev123.mblog.conf.ApiConfigurationBase;
/**
* @author Weiping Ye
* @version 创建时间:2011-7-28 下午1:53:00
**/
public class FanfouApiConfiguration extends ApiConfigurationBase {
public FanfouApiConfiguration() {
this.setRestBaseURL("http://api.fanfou.com/");
initRestURL();
}
private void initRestURL() {
this.setPublicTimelineURL(this.getRestBaseURL() + "statuses/public_timeline.json");
this.setHomeTimelineURL(this.getRestBaseURL() + "statuses/home_timeline.json");
this.setFriendTimelineURL(this.getRestBaseURL() + "statuses/friends_timeline.json");
this.setUserTimelineURL(this.getRestBaseURL() + "statuses/user_timeline.json");
this.setMetionsTimelineURL(this.getRestBaseURL() + "statuses/mentions.json");
//this.setRetweetsTimelineURL(this.getRetweetsTimelineURL() + "statuses/retweets_of_me.json");
this.setShowOfStatusURL(this.getRestBaseURL() + "statuses/show/%1$s.json");
this.setUpdateStatusURL(this.getRestBaseURL() + "statuses/update.json");
this.setUploadStatusURL(this.getRestBaseURL() + "photos/upload.json");
this.setDestroyStatusURL(this.getRestBaseURL() + "statuses/destroy.json");
this.setRetweetStatusURL(this.getUpdateStatusURL());
this.setCountsOfCommentAndRetweetURL(this.getRestBaseURL() + "statuses/counts/%1$s.json");
this.setUnreadCountURL(this.getRestBaseURL() + "reminds/message/latest.json");
this.setShowOfUserURL(this.getRestBaseURL() + "users/show.json");
this.setFriendsURL(this.getRestBaseURL() + "users/friends.json");
this.setFollowsURL(this.getRestBaseURL() + "statuses/followers.json");
this.setInboxTimelineURL(this.getRestBaseURL() + "direct_messages.json");
this.setOutboxTimelineURL(this.getRestBaseURL() + "direct_messages/sent.json");
this.setSendDirectMessageURL(this.getRestBaseURL() + "direct_messages/new.json");
this.setDestroyDirectMessageURL(this.getRestBaseURL() + "direct_messages/destroy.json");
this.setCreateFriendshipURL(this.getRestBaseURL() + "friendships/create.json");
this.setDestroyFriendshipURL(this.getRestBaseURL() + "friendships/destroy.json");
this.setExistFriendshipURL(this.getRestBaseURL() + "friendships/exists.json");
// this.setShowOfFriendshipURL(this.getRestBaseURL() + "friendships/show.json");
this.setFriendsIDsURL(this.getRestBaseURL() + "friends/ids.json");
this.setFollowersIDsURL(this.getRestBaseURL() + "followers/ids.json");
this.setVerifyCredentialsURL(this.getRestBaseURL() + "account/verify_credentials.json");
this.setRateLimitStatusURL(this.getRestBaseURL() + "account/rate_limit_status.json");
this.setUpdateProfileURL(this.getRestBaseURL() + "account/update_profile.json");
this.setUpdateProfileImageURL(this.getRestBaseURL() + "account/update_profile_image.json");
this.setFavoritesTimelineURL(this.getRestBaseURL() + "favorites.json");
this.setFavoritesOfUserURL(this.getRestBaseURL() + "favorites.json");
this.setCreateFavoriteURL(this.getRestBaseURL() + "favorites/create/%1$s.json");
this.setDestroyFavoriteURL(this.getRestBaseURL() + "favorites/destroy/%1$s.json");
//this.setCommentsTimelineURL(this.getRestBaseURL() + "statuses/comments_timeline.json");
this.setCommentsOfStatusURL(this.getRestBaseURL() + "statuses/comments/%1$s.json");
this.setCommentStatusURL(this.getRestBaseURL() + "statuses/reply.json");
//this.setDestroyCommentURL(this.getRestBaseURL() + "statuses/comment_destroy/%1$d.json");
this.setCommentsByMeURL(this.getRestBaseURL() + "statuses/comments_by_me.json");
this.setCommentsToMeURL(this.getRestBaseURL() + "statuses/comments_to_me.json");
this.setSearchUserURL(this.getRestBaseURL() + "users/search.json");
this.setSearchStatusURL(this.getRestBaseURL() + "search/public_timeline.json");
this.setCurrentTrendsURL(this.getRestBaseURL() + "trends.json");
this.setDailyTrendsURL(this.getRestBaseURL() + "trends.json");
this.setWeeklyTrendsURL(this.getRestBaseURL() + "trends.json");
this.setCreateBlockURL(this.getRestBaseURL() + "blocks/create.json");
this.setDestroyBlockURL(this.getRestBaseURL() + "blocks/destroy.json");
this.setBlockingUsersURL(this.getRestBaseURL() + "blocks/blocking.json");
this.setBlockingUsersIdsURL(this.getRestBaseURL() + "blocks/blocking/ids.json");
this.setExistsBlockURL(this.getRestBaseURL() + "blocks/exists.json");
this.setDailyHotRetweetsURL(this.getRestBaseURL() + "statuses/topRetweets/oneDay.json");
this.setWeeklyHotRetweetsURL(this.getRestBaseURL() + "statuses/topRetweets/oneWeek.json");
}
}