示例#1
0
        public FeedModel <StreetTeamFeedItemModel> GetFeedPage(int?pageIndex = null, int?pageSize = null, DateTime?noEarlierThan = null, DateTime?noLaterThan = null, DateTime?modifiedNoEarlierThan = null, DateTime?modifiedNoLaterThan = null)
        {
            var request = new RestRequest();

            request.PrepareFeedPageRequest(_user.Team, pageIndex, pageSize, noEarlierThan, noLaterThan, modifiedNoEarlierThan, modifiedNoLaterThan);
            return(_tokenManager.Execute <FeedModel <StreetTeamFeedItemModel> >(request));
        }
        public ProfileModel GetProfile()
        {
            var request = new RestRequest(Method.GET);

            request.Resource = _user.Profile;
            return(_tokenManager.Execute <ProfileModel>(request));
        }
        public SettingsModel GetSettings()
        {
            var request = new RestRequest(Method.GET);

            request.Resource = _user.Settings;
            return(_tokenManager.Execute <SettingsModel>(request));
        }
示例#4
0
        public CommentThreadsModel GetCommentThread(string uri)
        {
            var request = new RestRequest(Method.GET);

            request.Resource = uri;
            return(_tokenManager.Execute <CommentThreadsModel>(request));
        }
示例#5
0
        public List <RecordsFeedItemModel> GetRecordsFeed()
        {
            var request = new RestRequest(Method.GET);

            request.Resource = _user.Records;
            return(_tokenManager.Execute <List <RecordsFeedItemModel> >(request));
        }
        public UsersModel GetUser()
        {
            var request = new RestRequest(Method.GET);

            request.Resource = UriResource;
            return(_tokenManager.Execute <UsersModel>(request));
        }