C# Class Blog.Services.Helpers.Wcf.MediaResource

Inheritance: IMediaResource
Mostrar archivo Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
Add ( Media media, int userId ) : Media
AddAsContent ( User user, string albumName, string filename, string path, string contentType ) : Media
Delete ( int mediaId ) : bool
Get ( int mediaId ) : Media
GetByGroup ( int albumId ) : List
GetByName ( string customName ) : Media
GetByUser ( int userId ) : List
GetHeartBeat ( ) : bool

Method Details

Add() public method

public Add ( Media media, int userId ) : Media
media Blog.Common.Contracts.Media
userId int
return Blog.Common.Contracts.Media

AddAsContent() public method

public AddAsContent ( User user, string albumName, string filename, string path, string contentType ) : Media
user Blog.Common.Contracts.User
albumName string
filename string
path string
contentType string
return Blog.Common.Contracts.Media

Delete() public method

public Delete ( int mediaId ) : bool
mediaId int
return bool

Get() public method

public Get ( int mediaId ) : Media
mediaId int
return Blog.Common.Contracts.Media

GetByGroup() public method

public GetByGroup ( int albumId ) : List
albumId int
return List

GetByName() public method

public GetByName ( string customName ) : Media
customName string
return Blog.Common.Contracts.Media

GetByUser() public method

public GetByUser ( int userId ) : List
userId int
return List

GetHeartBeat() public method

public GetHeartBeat ( ) : bool
return bool