Move GetFavourites() to status.go
authorMikael Berthe <mikael@lilotux.net>
Wed, 05 Sep 2018 13:11:54 +0200
changeset 234 e37050f8a4bf
parent 233 b5fb9a1b68c4
child 235 263da7f71f03
Move GetFavourites() to status.go
favourites.go
status.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)
-}
--- 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)
+}