C# Class Visual.AlbumService

Inheritance: IAlbumService
显示文件 Open project: 23/23-api-dotnet

Public Methods

Method Description
AlbumService ( IApiProvider provider ) : System
Create ( string title, string description = "", bool hide = false, int userId = null ) : int?
Delete ( int albumId ) : bool

Delete an album given an id

Get ( int albumId ) : Album

Returns a single album not depending on whether it's hidden or not

GetList ( ) : List

Returns a list of albums by default parameters

GetList ( AlbumListParameters requestParameters ) : List

Returns a list of albums by specific parameters

Update ( int albumId, string title, string description = "", bool hide = false ) : bool

Method Details

AlbumService() public method

public AlbumService ( IApiProvider provider ) : System
provider IApiProvider
return System

Create() public method

public Create ( string title, string description = "", bool hide = false, int userId = null ) : int?
title string
description string
hide bool
userId int
return int?

Delete() public method

Delete an album given an id
public Delete ( int albumId ) : bool
albumId int
return bool

Get() public method

Returns a single album not depending on whether it's hidden or not
public Get ( int albumId ) : Album
albumId int
return Visual.Domain.Album

GetList() public method

Returns a list of albums by default parameters
public GetList ( ) : List
return List

GetList() public method

Returns a list of albums by specific parameters
public GetList ( AlbumListParameters requestParameters ) : List
requestParameters AlbumListParameters
return List

Update() public method

public Update ( int albumId, string title, string description = "", bool hide = false ) : bool
albumId int
title string
description string
hide bool
return bool