# HG changeset patch # User Mikael Berthe # Date 1536145914 -7200 # Node ID e37050f8a4bf297642c4549d1f167cea492b603e # Parent b5fb9a1b68c44da77d8909b74559c9bec035232b Move GetFavourites() to status.go diff -r b5fb9a1b68c4 -r e37050f8a4bf favourites.go --- a/favourites.go Wed Sep 05 10:52:58 2018 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -/* -Copyright 2017-2018 Mikael Berthe - -Licensed under the MIT license. Please see the LICENSE file is this directory. -*/ - -package madon - -// GetFavourites returns the list of the user's favourites -// If lopt.All is true, several requests will be made until the API server -// has nothing to return. -// If lopt.Limit is set (and not All), several queries can be made until the -// limit is reached. -func (mc *Client) GetFavourites(lopt *LimitParams) ([]Status, error) { - return mc.getMultipleStatuses("favourites", nil, lopt) -} diff -r b5fb9a1b68c4 -r e37050f8a4bf status.go --- a/status.go Wed Sep 05 10:52:58 2018 +0200 +++ b/status.go Wed Sep 05 13:11:54 2018 +0200 @@ -298,3 +298,12 @@ err := mc.updateStatusData("unmute", o, &status) return &status, err } + +// GetFavourites returns the list of the user's favourites +// If lopt.All is true, several requests will be made until the API server +// has nothing to return. +// If lopt.Limit is set (and not All), several queries can be made until the +// limit is reached. +func (mc *Client) GetFavourites(lopt *LimitParams) ([]Status, error) { + return mc.getMultipleStatuses("favourites", nil, lopt) +}