1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

31 lines
626 B
Go
Raw Normal View History

2017-08-10 15:23:07 -07:00
package api
2017-07-22 22:08:38 -07:00
2017-07-31 21:51:21 -07:00
import "time"
2017-07-22 22:08:38 -07:00
type Quality string
type Format string
const (
HighQuality = Quality("high")
LowQuality = Quality("low")
AudioFormat = Format("audio")
VideoFormat = Format("video")
)
2017-08-11 12:49:56 -07:00
const (
DefaultPageSize = 50
DefaultFormat = VideoFormat
DefaultQuality = HighQuality
)
2017-07-22 22:08:38 -07:00
type Feed struct {
2017-08-11 12:49:56 -07:00
Id int64 `json:"id"`
HashId string `json:"hash_id"`
UserId string `json:"user_id"`
URL string `json:"url"`
PageSize int `json:"page_size"`
Quality Quality `json:"quality"`
Format Format `json:"format"`
LastAccess time.Time `json:"last_access"`
2017-07-22 22:08:38 -07:00
}