C# Class Rock.Store.PackageService

Service class for the store package model.
Inheritance: StoreServiceBase
Mostra file Open project: NewSpring/Rock Class Usage Examples

Public Methods

Method Description
GetAllPackages ( int categoryId ) : IEnumerable

Gets all packages.

GetAllPackages ( int categoryId, string &errorResponse ) : IEnumerable

Gets all packages.

GetPackage ( int packageId ) : Package

Gets a package from the store.

GetPackage ( int packageId, string &errorResponse ) : Package

Gets the package.

GetPurchasedPackages ( ) : List

Gets a package from the store.

GetPurchasedPackages ( string &errorResponse ) : List

Gets the purchased packages.

PackageService ( ) : System

Initializes a new instance of the PackageService class.

Method Details

GetAllPackages() public method

Gets all packages.
public GetAllPackages ( int categoryId ) : IEnumerable
categoryId int The category identifier.
return IEnumerable

GetAllPackages() public method

Gets all packages.
public GetAllPackages ( int categoryId, string &errorResponse ) : IEnumerable
categoryId int The category identifier.
errorResponse string The error response.
return IEnumerable

GetPackage() public method

Gets a package from the store.
public GetPackage ( int packageId ) : Package
packageId int
return Package

GetPackage() public method

Gets the package.
public GetPackage ( int packageId, string &errorResponse ) : Package
packageId int The package identifier.
errorResponse string The error response.
return Package

GetPurchasedPackages() public method

Gets a package from the store.
public GetPurchasedPackages ( ) : List
return List

GetPurchasedPackages() public method

Gets the purchased packages.
public GetPurchasedPackages ( string &errorResponse ) : List
errorResponse string The error response.
return List

PackageService() public method

Initializes a new instance of the PackageService class.
public PackageService ( ) : System
return System