public class Tootle.Views.List : Views.Timeline {

	public API.List list { get; set; }

    public List (API.List l) {
        Object (
        	url: @"/api/v1/timelines/list/$(l.id)",
        	label: l.title,
        	icon: "view-list-symbolic",
        	list: l
        );
        reconnect_stream ();
    }

    public override string? get_stream_url () {
        if (list == null)
            return null;
        return account != null ? @"$(account.instance)/api/v1/streaming/?stream=list&list=$(list.id)&access_token=$(account.access_token)" : null;
    }

}
