PivotalTrackerAPI/Domain/Model/PivotalProject.cs
/// <summary>
/// Fetches current stories from Pivotal and optionally reloads the cache and uses the cache
/// </summary>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="options">Options for caching</param>
/// <returns>stories for the project</returns>
Fetches current stories from Pivotal and optionally reloads the cache and uses the cache
Fetches current stories from Pivotal and optionally reloads the cache and uses the cache
public IList<PivotalStory> FetchStories(PivotalUser user, PivotalFetchOptions options)
    {
      if (options.RefreshCache)
        _storyCache = (List<PivotalStory>)PivotalStory.FetchStories(user, Id.GetValueOrDefault());
      if (options.UseCachedItems)
        return _storyCache;
      return PivotalStory.FetchStories(user, Id.GetValueOrDefault());
    }
public IList < PivotalStory > FetchStories ( PivotalUser user , PivotalFetchOptions options ) { if ( options . RefreshCache ) _storyCache = ( List < PivotalStory > ) PivotalStory . FetchStories ( user , Id . GetValueOrDefault ( ) ) ; if ( options . UseCachedItems ) return _storyCache ; return PivotalStory . FetchStories ( user , Id . GetValueOrDefault ( ) ) ; }
Fetches current stories from Pivotal and optionally reloads the cache and uses the cache
Fetches current stories from Pivotal and optionally reloads the cache and uses the cache
stories for the project
stories for the project
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
options
PivotalFetchOptions
Options for caching
Options for caching