C# Class Channel9Downloader.DataAccess.CategoryRepository

Inheritance: ICategoryRepository
Show file Open project: MadCowDevelopment/Channel9Downloader

Public Methods

Method Description
GetCategories ( ) : Categories

Gets a list of all categories.

SaveCategories ( ) : void

Saves the categories.

UpdateCategories ( ) : void

Updates the available categories.

Private Methods

Method Description
CategoryRepository ( ICategoryScraper categoryScraper, IFolderUtils folderUtils, ICategoriesDataAccess categoriesDataAccess ) : System.Collections.Generic
CreateFilenameForCategory ( ) : string

Creates the filename for the category file.

RetrieveCategories ( ) : void

Retrieves the categories from the channel 9 site.

SetIsEnabled ( IEnumerable categories, IEnumerable existingCategories ) : void

Sets the categories enabled depending on whether they have been enabled before.

Method Details

GetCategories() public method

Gets a list of all categories.
public GetCategories ( ) : Categories
return Channel9Downloader.Entities.Categories

SaveCategories() public method

Saves the categories.
public SaveCategories ( ) : void
return void

UpdateCategories() public method

Updates the available categories.
public UpdateCategories ( ) : void
return void