add the callbacks

master
Théophile Choutri 2017-04-15 16:32:39 +02:00
parent 99c993bbec
commit b36e55901f
1 changed files with 21 additions and 0 deletions

View File

@ -295,6 +295,17 @@ defmodule Hunter.Api do
"""
@callback unreblog(conn :: Hunter.Client.t, id :: non_neg_integer) :: Hunter.Status.t
@doc """
Fetch the list of users who reblogged the status.
## Parameters
* `conn` - connection credentials
* `id` - status identifier
"""
@callback reblogged_by(conn :: Hunter.Client.t, id :: non_neg_integer) :: [Hunter.Account.t]
@doc """
Favorite a status
@ -327,6 +338,16 @@ defmodule Hunter.Api do
"""
@callback favourites(conn :: Hunter.Client.t) :: [Hunter.Status.t]
@doc """
Fetch the list of users who favourited the status.
## Parameters
* `conn` - connection credentials
* `id` - status identifier
"""
@callback favourited_by(conn :: Hunter.Client.t, id :: non_neg_integer) :: [Hunter.Account.t]
@doc """
Get a list of statuses by a user