// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. package operations import ( "net/http" ) type Context struct { LibrarySectionID *string `json:"librarySectionID,omitempty"` } func (c *Context) GetLibrarySectionID() *string { if c == nil { return nil } return c.LibrarySectionID } type Activity struct { UUID *string `json:"uuid,omitempty"` Type *string `json:"type,omitempty"` Cancellable *bool `json:"cancellable,omitempty"` UserID *float64 `json:"userID,omitempty"` Title *string `json:"title,omitempty"` Subtitle *string `json:"subtitle,omitempty"` Progress *float64 `json:"progress,omitempty"` Context *Context `json:"Context,omitempty"` } func (a *Activity) GetUUID() *string { if a == nil { return nil } return a.UUID } func (a *Activity) GetType() *string { if a == nil { return nil } return a.Type } func (a *Activity) GetCancellable() *bool { if a == nil { return nil } return a.Cancellable } func (a *Activity) GetUserID() *float64 { if a == nil { return nil } return a.UserID } func (a *Activity) GetTitle() *string { if a == nil { return nil } return a.Title } func (a *Activity) GetSubtitle() *string { if a == nil { return nil } return a.Subtitle } func (a *Activity) GetProgress() *float64 { if a == nil { return nil } return a.Progress } func (a *Activity) GetContext() *Context { if a == nil { return nil } return a.Context } type GetServerActivitiesMediaContainer struct { Size *float64 `json:"size,omitempty"` Activity []Activity `json:"Activity,omitempty"` } func (g *GetServerActivitiesMediaContainer) GetSize() *float64 { if g == nil { return nil } return g.Size } func (g *GetServerActivitiesMediaContainer) GetActivity() []Activity { if g == nil { return nil } return g.Activity } // GetServerActivitiesResponseBody - The Server Activities type GetServerActivitiesResponseBody struct { MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"` } func (g *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer { if g == nil { return nil } return g.MediaContainer } type GetServerActivitiesResponse 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 // The Server Activities Object *GetServerActivitiesResponseBody } func (g *GetServerActivitiesResponse) GetContentType() string { if g == nil { return "" } return g.ContentType } func (g *GetServerActivitiesResponse) GetStatusCode() int { if g == nil { return 0 } return g.StatusCode } func (g *GetServerActivitiesResponse) GetRawResponse() *http.Response { if g == nil { return nil } return g.RawResponse } func (g *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody { if g == nil { return nil } return g.Object }