Example #1
0
        private UserStories getUserStoriesByUriOptions(URIOptions uriOptions)
        {
            uriOptions.EntityType = "userstories";
            Uri uri = uriOptions.BuildUri();

            return(ObjectsConverter.GetObjects <UserStories>(this.TPWebServiceClient.GetResponse(uri)));
        }
Example #2
0
        private Bugs getBugsByUriOptions(URIOptions uriOptions)
        {
            uriOptions.EntityType = "bugs";
            Uri uri = uriOptions.BuildUri();

            return(ObjectsConverter.GetObjects <Bugs>(this.TPWebServiceClient.GetResponse(uri)));
        }
Example #3
0
        public Bugs GetBugs(int userID)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.WhereStatement = "(Owner.Id eq " + userID.ToString() + ")";

            return(getBugsByUriOptions(uriOptions));
        }
Example #4
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID, string statusName, DateTime startDate, DateTime endDate)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ") and (Date gte '" + startDate.ToString("yyyy-MM-dd") + "') and (Date lte '" + endDate.ToString("yyyy-MM-dd") + "') and (EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Example #5
0
        public UserStoryHistiories GetUserStoryHistories(DateTime startDate, DateTime endDate)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(Date gte '" + startDate.ToString("yyyy-MM-dd") + "') and (Date lte '" + endDate.ToString("yyyy-MM-dd") + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Example #6
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID, string statusName)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ") and (EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Example #7
0
        public UserStoryHistiories GetUserStoryHistories(string statusName)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(EntityState.Name eq '" + statusName + "')";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Example #8
0
        public UserStoryHistiories GetUserStoryHistories(int userStoryID)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType     = "UserStoryHistories";
            uriOptions.WhereStatement = "(UserStory.Id eq " + userStoryID.ToString() + ")";

            return(getUserStoryHistoriesByUriOptions(uriOptions));
        }
Example #9
0
        public Users GetUsers(bool includeInActive = false)
        {
            URIOptions uriOptions = new URIOptions();

            uriOptions.EntityType = "users";
            if (!includeInActive)
            {
                uriOptions.WhereStatement = "(IsActive eq 'true')";
            }
            return(getUsersByUriOption(uriOptions.BuildUri()));
        }