/// <summary> /// Assembles a GetAnonymizedStoryResponse object from a story string and a story ID /// </summary> /// <param name="storyText"></param> /// <param name="id"></param> /// <returns></returns> public static GetAnonymizedStoryResponse Assemble(string storyText, int id) { GetAnonymizedStoryResponse getAnonymizedStoryResponse = new GetAnonymizedStoryResponse(); getAnonymizedStoryResponse.Story = StoryAssembler.Assemble(storyText, id); return(getAnonymizedStoryResponse); }
/// <summary> /// Assembles a GetStoriesResponse object from a list of stories /// </summary> /// <param name="stories"></param> /// <returns></returns> public static GetStoriesResponse Assemble(List <string> stories) { GetStoriesResponse getStoriesResponse = new GetStoriesResponse { Stories = new List <Story>() }; int storyId = 1; foreach (string story in stories) { getStoriesResponse.Stories.Add(StoryAssembler.Assemble(story, storyId)); storyId++; } return(getStoriesResponse); }