mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-07-03 04:53:12 +00:00
20 lines
408 B
Vala
20 lines
408 B
Vala
|
using Gtk;
|
||
|
|
||
|
public class Tootle.FavoritesView : Tootle.HomeView {
|
||
|
|
||
|
public FavoritesView () {
|
||
|
base ("favorites");
|
||
|
request ();
|
||
|
}
|
||
|
|
||
|
public override string get_url (){
|
||
|
var url = "%s/api/v1/favourites?limit=25".printf (Tootle.settings.instance_url);
|
||
|
|
||
|
if (max_id > 0)
|
||
|
url += "&max_id=" + max_id.to_string ();
|
||
|
|
||
|
return url;
|
||
|
}
|
||
|
|
||
|
}
|