C# Class BlogEngine.Core.Packaging.PackageRepository

Package repository
Show file Open project: rasmuskl/ReSharperCourse

Private Properties

Property Type Description
LoadPackages List
Trace void

Public Methods

Method Description
FromGallery ( string pkgType, int page, Gallery sortOrder = Gallery.OrderType.Newest, string searchVal = "" ) : List

Returns list of packages from online gallery for a single page

GetPackage ( string pkgId ) : JsonPackage

Package by ID

LocalPackages ( string pkgType ) : List

Returns list of local packages from repository For reference: G - package exists only in the online gallery I - installed from gallery, exists both in gallery and locally L - local, only exists locally

Private Methods

Method Description
LoadPackages ( ) : List
Trace ( string msg, List packages ) : void

Method Details

FromGallery() public static method

Returns list of packages from online gallery for a single page
public static FromGallery ( string pkgType, int page, Gallery sortOrder = Gallery.OrderType.Newest, string searchVal = "" ) : List
pkgType string Theme, Widget or Extension
page int Current page
sortOrder Gallery Order - newest, most downloaded etc.
searchVal string Search term if it is search request
return List

GetPackage() public static method

Package by ID
public static GetPackage ( string pkgId ) : JsonPackage
pkgId string Package ID
return BlogEngine.Core.Json.JsonPackage

LocalPackages() public static method

Returns list of local packages from repository For reference: G - package exists only in the online gallery I - installed from gallery, exists both in gallery and locally L - local, only exists locally
public static LocalPackages ( string pkgType ) : List
pkgType string Package type
return List