// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type GetStatisticsRequest struct { // The timespan to retrieve statistics for // the exact meaning of this parameter is not known // Timespan *int64 `queryParam:"style=form,explode=true,name=timespan"` } func (g *GetStatisticsRequest) GetTimespan() *int64 { if g == nil { return nil } return g.Timespan } type GetStatisticsDevice struct { ID *int `json:"id,omitempty"` Name *string `json:"name,omitempty"` Platform *string `json:"platform,omitempty"` ClientIdentifier *string `json:"clientIdentifier,omitempty"` CreatedAt *int `json:"createdAt,omitempty"` } func (g *GetStatisticsDevice) GetID() *int { if g == nil { return nil } return g.ID } func (g *GetStatisticsDevice) GetName() *string { if g == nil { return nil } return g.Name } func (g *GetStatisticsDevice) GetPlatform() *string { if g == nil { return nil } return g.Platform } func (g *GetStatisticsDevice) GetClientIdentifier() *string { if g == nil { return nil } return g.ClientIdentifier } func (g *GetStatisticsDevice) GetCreatedAt() *int { if g == nil { return nil } return g.CreatedAt } type Account struct { ID *int `json:"id,omitempty"` Key *string `json:"key,omitempty"` Name *string `json:"name,omitempty"` DefaultAudioLanguage *string `json:"defaultAudioLanguage,omitempty"` AutoSelectAudio *bool `json:"autoSelectAudio,omitempty"` DefaultSubtitleLanguage *string `json:"defaultSubtitleLanguage,omitempty"` SubtitleMode *int `json:"subtitleMode,omitempty"` Thumb *string `json:"thumb,omitempty"` } func (a *Account) GetID() *int { if a == nil { return nil } return a.ID } func (a *Account) GetKey() *string { if a == nil { return nil } return a.Key } func (a *Account) GetName() *string { if a == nil { return nil } return a.Name } func (a *Account) GetDefaultAudioLanguage() *string { if a == nil { return nil } return a.DefaultAudioLanguage } func (a *Account) GetAutoSelectAudio() *bool { if a == nil { return nil } return a.AutoSelectAudio } func (a *Account) GetDefaultSubtitleLanguage() *string { if a == nil { return nil } return a.DefaultSubtitleLanguage } func (a *Account) GetSubtitleMode() *int { if a == nil { return nil } return a.SubtitleMode } func (a *Account) GetThumb() *string { if a == nil { return nil } return a.Thumb } type StatisticsMedia struct { AccountID *int `json:"accountID,omitempty"` DeviceID *int `json:"deviceID,omitempty"` Timespan *int `json:"timespan,omitempty"` At *int `json:"at,omitempty"` MetadataType *int `json:"metadataType,omitempty"` Count *int `json:"count,omitempty"` Duration *int `json:"duration,omitempty"` } func (s *StatisticsMedia) GetAccountID() *int { if s == nil { return nil } return s.AccountID } func (s *StatisticsMedia) GetDeviceID() *int { if s == nil { return nil } return s.DeviceID } func (s *StatisticsMedia) GetTimespan() *int { if s == nil { return nil } return s.Timespan } func (s *StatisticsMedia) GetAt() *int { if s == nil { return nil } return s.At } func (s *StatisticsMedia) GetMetadataType() *int { if s == nil { return nil } return s.MetadataType } func (s *StatisticsMedia) GetCount() *int { if s == nil { return nil } return s.Count } func (s *StatisticsMedia) GetDuration() *int { if s == nil { return nil } return s.Duration } type GetStatisticsMediaContainer struct { Size *int `json:"size,omitempty"` Device []GetStatisticsDevice `json:"Device,omitempty"` Account []Account `json:"Account,omitempty"` StatisticsMedia []StatisticsMedia `json:"StatisticsMedia,omitempty"` } func (g *GetStatisticsMediaContainer) GetSize() *int { if g == nil { return nil } return g.Size } func (g *GetStatisticsMediaContainer) GetDevice() []GetStatisticsDevice { if g == nil { return nil } return g.Device } func (g *GetStatisticsMediaContainer) GetAccount() []Account { if g == nil { return nil } return g.Account } func (g *GetStatisticsMediaContainer) GetStatisticsMedia() []StatisticsMedia { if g == nil { return nil } return g.StatisticsMedia } // GetStatisticsResponseBody - Media Statistics type GetStatisticsResponseBody struct { MediaContainer *GetStatisticsMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetStatisticsResponseBody) GetMediaContainer() *GetStatisticsMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetStatisticsResponse struct { // HTTP response content type for this operation ContentType string // HTTP response status code for this operation StatusCode int // Raw HTTP response; suitable for custom response parsing RawResponse *http.Response // Media Statistics Object *GetStatisticsResponseBody } func (g *GetStatisticsResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetStatisticsResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetStatisticsResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetStatisticsResponse) GetObject() *GetStatisticsResponseBody { if g == nil { return nil } return g.Object }