mirror of
https://github.com/LukeHagar/plexgo.git
synced 2025-12-06 12:37:46 +00:00
156 lines
3.0 KiB
Go
156 lines
3.0 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package operations
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
type Context struct {
|
|
LibrarySectionID *string `json:"librarySectionID,omitempty"`
|
|
}
|
|
|
|
func (o *Context) GetLibrarySectionID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.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 (o *Activity) GetUUID() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.UUID
|
|
}
|
|
|
|
func (o *Activity) GetType() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
func (o *Activity) GetCancellable() *bool {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Cancellable
|
|
}
|
|
|
|
func (o *Activity) GetUserID() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.UserID
|
|
}
|
|
|
|
func (o *Activity) GetTitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Title
|
|
}
|
|
|
|
func (o *Activity) GetSubtitle() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Subtitle
|
|
}
|
|
|
|
func (o *Activity) GetProgress() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Progress
|
|
}
|
|
|
|
func (o *Activity) GetContext() *Context {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Context
|
|
}
|
|
|
|
type GetServerActivitiesMediaContainer struct {
|
|
Size *float64 `json:"size,omitempty"`
|
|
Activity []Activity `json:"Activity,omitempty"`
|
|
}
|
|
|
|
func (o *GetServerActivitiesMediaContainer) GetSize() *float64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Size
|
|
}
|
|
|
|
func (o *GetServerActivitiesMediaContainer) GetActivity() []Activity {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Activity
|
|
}
|
|
|
|
// GetServerActivitiesResponseBody - The Server Activities
|
|
type GetServerActivitiesResponseBody struct {
|
|
MediaContainer *GetServerActivitiesMediaContainer `json:"MediaContainer,omitempty"`
|
|
}
|
|
|
|
func (o *GetServerActivitiesResponseBody) GetMediaContainer() *GetServerActivitiesMediaContainer {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.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 (o *GetServerActivitiesResponse) GetContentType() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ContentType
|
|
}
|
|
|
|
func (o *GetServerActivitiesResponse) GetStatusCode() int {
|
|
if o == nil {
|
|
return 0
|
|
}
|
|
return o.StatusCode
|
|
}
|
|
|
|
func (o *GetServerActivitiesResponse) GetRawResponse() *http.Response {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.RawResponse
|
|
}
|
|
|
|
func (o *GetServerActivitiesResponse) GetObject() *GetServerActivitiesResponseBody {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Object
|
|
}
|