Beispiel #1
0
        public void GetFeedPageAsync(Action <FeedModel <StreetTeamFeedItemModel> > success, Action <HealthGraphException> failure, 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);
            _tokenManager.ExecuteAsync <FeedModel <StreetTeamFeedItemModel> >(request, success, failure);
        }
        public void GetProfileAsync(Action <ProfileModel> success, Action <HealthGraphException> failure)
        {
            var request = new RestRequest(Method.GET);

            request.Resource = _user.Profile;
            _tokenManager.ExecuteAsync <ProfileModel>(request, success, failure);
        }
Beispiel #3
0
        public void GetCommentThreadAsync(Action <CommentThreadsModel> success, Action <HealthGraphException> failure, string uri)
        {
            var request = new RestRequest(Method.GET);

            request.Resource = uri;
            _tokenManager.ExecuteAsync <CommentThreadsModel>(request, success, failure);
        }
Beispiel #4
0
        public void GetRecordsFeedAsync(Action <List <RecordsFeedItemModel> > success, Action <HealthGraphException> failure)
        {
            var request = new RestRequest(Method.GET);

            request.Resource = _user.Records;
            _tokenManager.ExecuteAsync <List <RecordsFeedItemModel> >(request, success, failure);
        }
        public void GetUserAsync(Action <UsersModel> success, Action <HealthGraphException> failure)
        {
            var request = new RestRequest(Method.GET);

            request.Resource = UriResource;
            _tokenManager.ExecuteAsync <UsersModel>(request, success, failure);
        }