Larabros\Elogram\Repositories\LikesRepository

class LikesRepository

LikesRepository class.

property client

protected AdapterInterface

get($mediaId)

Get a list of likes on a media object.

Parameters:
  • $mediaId (int) – The ID of the media object
Returns:

Response

like($mediaId)

Set a like on a media object by the currently authenticated user.

Parameters:
  • $mediaId (int) – The ID of the media object
Returns:

Response

unlike($mediaId)

Remove a like on a media object by the currently authenticated user.

Parameters:
  • $mediaId (int) – The ID of the media object
Returns:

Response

__construct(AdapterInterface $client)

Creates a new instance of AbstractRepository.

Parameters: