C# 클래스 BlogEngine.Core.Packaging.PackageRepository

Package repository
파일 보기 프로젝트 열기: rasmuskl/ReSharperCourse

Private Properties

프로퍼티 타입 설명
LoadPackages List
Trace void

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
LoadPackages ( ) : List
Trace ( string msg, List packages ) : void

메소드 상세

FromGallery() 공개 정적인 메소드

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
리턴 List

GetPackage() 공개 정적인 메소드

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

LocalPackages() 공개 정적인 메소드

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
리턴 List