1// Copyright 2017 Frédéric Guillot. All rights reserved.
2// Use of this source code is governed by the Apache 2.0
3// license that can be found in the LICENSE file.
4
5package subscription // import "miniflux.app/reader/subscription"
6
7import "fmt"
8
9// Subscription represents a feed subscription.
10type Subscription struct {
11	Title string `json:"title"`
12	URL   string `json:"url"`
13	Type  string `json:"type"`
14}
15
16func (s Subscription) String() string {
17	return fmt.Sprintf(`Title="%s", URL="%s", Type="%s"`, s.Title, s.URL, s.Type)
18}
19
20// Subscriptions represents a list of subscription.
21type Subscriptions []*Subscription
22