2017-11-02 21:41:52 -07:00
|
|
|
package model
|
2017-10-26 14:36:52 -07:00
|
|
|
|
2017-11-03 15:41:26 -07:00
|
|
|
import (
|
|
|
|
"github.com/mxpv/podsync/pkg/api"
|
|
|
|
"time"
|
|
|
|
)
|
2017-10-26 14:36:52 -07:00
|
|
|
|
|
|
|
type Pledge struct {
|
|
|
|
PledgeID int64 `sql:",pk"`
|
|
|
|
PatronID int64
|
|
|
|
CreatedAt time.Time
|
|
|
|
DeclinedSince time.Time
|
|
|
|
AmountCents int
|
|
|
|
TotalHistoricalAmountCents int
|
|
|
|
OutstandingPaymentAmountCents int
|
|
|
|
IsPaused bool
|
|
|
|
}
|
2017-11-03 15:41:26 -07:00
|
|
|
|
|
|
|
type Feed struct {
|
|
|
|
FeedID int64 `sql:",pk"`
|
|
|
|
HashID string // Short human readable feed id for users
|
|
|
|
UserID string // Patreon user id
|
|
|
|
ItemID string
|
|
|
|
LinkType api.LinkType // Either group, channel or user
|
|
|
|
Provider api.Provider // Youtube or Vimeo
|
|
|
|
PageSize int // The number of episodes to return
|
|
|
|
Format api.Format
|
|
|
|
Quality api.Quality
|
|
|
|
FeatureLevel int
|
2017-11-03 19:16:15 -07:00
|
|
|
CreatedAt time.Time
|
2017-11-03 15:41:26 -07:00
|
|
|
LastAccess time.Time // Available features
|
|
|
|
}
|