From dee5eb9531fe3302b2d22f3a74929541968f7653 Mon Sep 17 00:00:00 2001 From: Ken Smith Date: Thu, 5 Apr 2018 10:53:46 -0700 Subject: [PATCH] Update the IStoryService interface to actually match what the StoryService actually does --- PivotalTrackerDotNet/IStoryService.cs | 53 ++++++++++++--------------- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/PivotalTrackerDotNet/IStoryService.cs b/PivotalTrackerDotNet/IStoryService.cs index 281e504..8a778cf 100644 --- a/PivotalTrackerDotNet/IStoryService.cs +++ b/PivotalTrackerDotNet/IStoryService.cs @@ -6,48 +6,43 @@ namespace PivotalTrackerDotNet { public interface IStoryService { + void AddComment(int projectId, int storyId, string comment); + Story AddNewStory(int projectId, Story toBeSaved); + Task AddNewTask(Task task); + Story FinishStory(int projectId, int storyId); List GetAllIterations(int projectId); - List GetAllIterations(int projectId, StoryIncludeFields fields); PagedResult GetAllIterations(int projectId, int limit, int offset); - List GetLastIterations(long projectId, int number); - List GetCurrentIterations(int projectId); - List GetDoneIterations(int projectId); - List GetBacklogIterations(int projectId); - - List GetCurrentStories(int projectId); - List GetDoneStories(int projectId); - List GetIceboxStories(int projectId); - List GetBacklogStories(int projectId); + List GetAllIterations(int projectId, StoryIncludeFields fields); List GetAllStories(int projectId); - List GetAllStories(int projectId, StoryIncludeFields fields); PagedResult GetAllStories(int projectId, int limit, int offset); - List GetAllStoriesMatchingFilter(int projectId, string filter); - List GetAllStoriesMatchingFilter(int projectId, string filter, StoryIncludeFields fields); + List GetAllStories(int projectId, StoryIncludeFields fields); List GetAllStoriesMatchingFilter(int projectId, FilteringCriteria filter); + PagedResult GetAllStoriesMatchingFilter(int projectId, FilteringCriteria filter, int limit, int offset); List GetAllStoriesMatchingFilter(int projectId, FilteringCriteria filter, StoryIncludeFields fields); + List GetAllStoriesMatchingFilter(int projectId, string filter); PagedResult GetAllStoriesMatchingFilter(int projectId, string filter, int limit, int offset); - PagedResult GetAllStoriesMatchingFilter(int projectId, FilteringCriteria filter, int limit, int offset); - - Story AddNewStory(int projectId, Story toBeSaved); - Story FinishStory(int projectId, int storyId); - Story StartStory(int projectId, int storyId); + List GetAllStoriesMatchingFilter(int projectId, string filter, StoryIncludeFields fields); + List GetBacklogIterations(int projectId); + List GetBacklogStories(int projectId); + List GetCurrentIterations(int projectId); + List GetCurrentStories(int projectId); + List GetDoneIterations(int projectId); + List GetDoneStories(int projectId); + List GetIceboxStories(int projectId); + List GetLastIterations(long projectId, int number); Story GetStory(int projectId, int storyId); Story GetStory(int projectId, int storyId, StoryIncludeFields fields); - void RemoveStory(int projectId, int storyId); - Story UpdateStory(int projectId, Story story); - - Task AddNewTask(Task task); + List GetStoryActivity(int projectId, int storyId); + PagedResult GetStoryActivity(int projectId, int storyId, int offset, int limit); + List GetStoryComments(int projectId, int storyId); Task GetTask(int projectId, int storyId, int taskId); List GetTasksForStory(int projectId, int storyId); List GetTasksForStory(int projectId, Story story); - + void RemoveStory(int projectId, int storyId); bool RemoveTask(int projectId, int storyId, int taskId); - Task SaveTask(Task task); void ReorderTasks(int projectId, int storyId, List tasks); - - void AddComment(int projectId, int storyId, string comment); - - List GetStoryActivity(int projectId, int storyId); - PagedResult GetStoryActivity(int projectId, int storyId, int offset, int limit); + Task SaveTask(Task task); + Story StartStory(int projectId, int storyId); + Story UpdateStory(int projectId, Story story); } } \ No newline at end of file