PHP Класс Larabros\Elogram\Repositories\LikesRepository

Автор: Hassan Khan ([email protected])
Наследование: extends AbstractRepository
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

get() публичный Метод

Get a list of likes on a media object.
public get ( integer $mediaId ) : Response
$mediaId integer The ID of the media object
Результат Larabros\Elogram\Http\Response

like() публичный Метод

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
Результат Larabros\Elogram\Http\Response

unlike() публичный Метод

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
Результат Larabros\Elogram\Http\Response