Browse Source

Add direct linking bandwidth

master
Wim Brand 3 years ago
parent
commit
805624bc23
  1. 1
      pixelapi/admin.go
  2. 15
      pixelapi/subscription.go

1
pixelapi/admin.go

@ -53,6 +53,7 @@ type AdminIPBan struct {
BanTime time.Time `json:"ban_time"`
ExpireTime time.Time `json:"expire_time"`
Reason string `json:"reason"`
Offences int `json:"offences"`
}
// AdminGetGlobals returns the global API settings

15
pixelapi/subscription.go

@ -23,13 +23,14 @@ type Subscription struct {
// active subscription itself, only the properties of the subscription. Like the
// perks and cost
type SubscriptionType struct {
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
DisableAdDisplay bool `json:"disable_ad_display"`
DisableAdsOnFiles bool `json:"disable_ads_on_files"`
FileSizeLimit int64 `json:"file_size_limit"`
FileExpiryDays int `json:"file_expiry_days"`
ID string `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
DisableAdDisplay bool `json:"disable_ad_display"`
DisableAdsOnFiles bool `json:"disable_ads_on_files"`
FileSizeLimit int64 `json:"file_size_limit"`
FileExpiryDays int `json:"file_expiry_days"`
DirectLinkingBandwidth int64 `json:"direct_linking_bandwidth"`
}
// GetSubscriptionID returns the subscription object identified by the given ID

Loading…
Cancel
Save