PHP Class Larabros\Elogram\Repositories\LikesRepository

Inheritance: extends AbstractRepository
Mostra file Open project: larabros/elogram

Public Methods

Method Description
get ( integer $mediaId ) : Response Get a list of likes on a media object.
like ( integer $mediaId ) : Response Set a like on a media object by the currently authenticated user.
unlike ( integer $mediaId ) : Response Remove a like on a media object by the currently authenticated user.

Method Details

get() public method

Get a list of likes on a media object.
public get ( integer $mediaId ) : Response
$mediaId integer The ID of the media object
return Larabros\Elogram\Http\Response

like() public method

Set a like on a media object by the currently authenticated user.
public like ( integer $mediaId ) : Response
$mediaId integer The ID of the media object
return Larabros\Elogram\Http\Response

unlike() public method

Remove a like on a media object by the currently authenticated user.
public unlike ( integer $mediaId ) : Response
$mediaId integer The ID of the media object
return Larabros\Elogram\Http\Response