Add direct linking bandwidth

This commit is contained in:
Wim Brand 2021-08-10 19:16:05 +02:00
parent 0c17329ada
commit 805624bc23
2 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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