254 lines
6.9 KiB
TypeScript
254 lines
6.9 KiB
TypeScript
/**
|
|
* Jellyfin API
|
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
*
|
|
* The version of the OpenAPI document: 10.8.9
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
import { RequestFile } from './models';
|
|
import { BaseItemDto } from './baseItemDto';
|
|
import { ClientCapabilities } from './clientCapabilities';
|
|
import { GeneralCommandType } from './generalCommandType';
|
|
import { PlayerStateInfo } from './playerStateInfo';
|
|
import { QueueItem } from './queueItem';
|
|
import { SessionInfoFullNowPlayingItem } from './sessionInfoFullNowPlayingItem';
|
|
import { SessionInfoNowPlayingItem } from './sessionInfoNowPlayingItem';
|
|
import { SessionUserInfo } from './sessionUserInfo';
|
|
import { TranscodingInfo } from './transcodingInfo';
|
|
|
|
/**
|
|
* Class SessionInfo.
|
|
*/
|
|
export class SessionInfo {
|
|
'playState'?: PlayerStateInfo | null;
|
|
'additionalUsers'?: Array<SessionUserInfo> | null;
|
|
'capabilities'?: ClientCapabilities | null;
|
|
/**
|
|
* Gets or sets the remote end point.
|
|
*/
|
|
'remoteEndPoint'?: string | null;
|
|
/**
|
|
* Gets the playable media types.
|
|
*/
|
|
'playableMediaTypes'?: Array<string> | null;
|
|
/**
|
|
* Gets or sets the id.
|
|
*/
|
|
'id'?: string | null;
|
|
/**
|
|
* Gets or sets the user id.
|
|
*/
|
|
'userId'?: string;
|
|
/**
|
|
* Gets or sets the username.
|
|
*/
|
|
'userName'?: string | null;
|
|
/**
|
|
* Gets or sets the type of the client.
|
|
*/
|
|
'client'?: string | null;
|
|
/**
|
|
* Gets or sets the last activity date.
|
|
*/
|
|
'lastActivityDate'?: Date;
|
|
/**
|
|
* Gets or sets the last playback check in.
|
|
*/
|
|
'lastPlaybackCheckIn'?: Date;
|
|
/**
|
|
* Gets or sets the name of the device.
|
|
*/
|
|
'deviceName'?: string | null;
|
|
/**
|
|
* Gets or sets the type of the device.
|
|
*/
|
|
'deviceType'?: string | null;
|
|
'nowPlayingItem'?: SessionInfoNowPlayingItem | null;
|
|
'fullNowPlayingItem'?: SessionInfoFullNowPlayingItem | null;
|
|
'nowViewingItem'?: SessionInfoNowPlayingItem | null;
|
|
/**
|
|
* Gets or sets the device id.
|
|
*/
|
|
'deviceId'?: string | null;
|
|
/**
|
|
* Gets or sets the application version.
|
|
*/
|
|
'applicationVersion'?: string | null;
|
|
'transcodingInfo'?: TranscodingInfo | null;
|
|
/**
|
|
* Gets a value indicating whether this instance is active.
|
|
*/
|
|
'isActive'?: boolean;
|
|
'supportsMediaControl'?: boolean;
|
|
'supportsRemoteControl'?: boolean;
|
|
'nowPlayingQueue'?: Array<QueueItem> | null;
|
|
'nowPlayingQueueFullItems'?: Array<BaseItemDto> | null;
|
|
'hasCustomDeviceName'?: boolean;
|
|
'playlistItemId'?: string | null;
|
|
'serverId'?: string | null;
|
|
'userPrimaryImageTag'?: string | null;
|
|
/**
|
|
* Gets the supported commands.
|
|
*/
|
|
'supportedCommands'?: Array<GeneralCommandType> | null;
|
|
|
|
static discriminator: string | undefined = undefined;
|
|
|
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
{
|
|
"name": "playState",
|
|
"baseName": "PlayState",
|
|
"type": "PlayerStateInfo"
|
|
},
|
|
{
|
|
"name": "additionalUsers",
|
|
"baseName": "AdditionalUsers",
|
|
"type": "Array<SessionUserInfo>"
|
|
},
|
|
{
|
|
"name": "capabilities",
|
|
"baseName": "Capabilities",
|
|
"type": "ClientCapabilities"
|
|
},
|
|
{
|
|
"name": "remoteEndPoint",
|
|
"baseName": "RemoteEndPoint",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "playableMediaTypes",
|
|
"baseName": "PlayableMediaTypes",
|
|
"type": "Array<string>"
|
|
},
|
|
{
|
|
"name": "id",
|
|
"baseName": "Id",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "userId",
|
|
"baseName": "UserId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "userName",
|
|
"baseName": "UserName",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "client",
|
|
"baseName": "Client",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "lastActivityDate",
|
|
"baseName": "LastActivityDate",
|
|
"type": "Date"
|
|
},
|
|
{
|
|
"name": "lastPlaybackCheckIn",
|
|
"baseName": "LastPlaybackCheckIn",
|
|
"type": "Date"
|
|
},
|
|
{
|
|
"name": "deviceName",
|
|
"baseName": "DeviceName",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "deviceType",
|
|
"baseName": "DeviceType",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "nowPlayingItem",
|
|
"baseName": "NowPlayingItem",
|
|
"type": "SessionInfoNowPlayingItem"
|
|
},
|
|
{
|
|
"name": "fullNowPlayingItem",
|
|
"baseName": "FullNowPlayingItem",
|
|
"type": "SessionInfoFullNowPlayingItem"
|
|
},
|
|
{
|
|
"name": "nowViewingItem",
|
|
"baseName": "NowViewingItem",
|
|
"type": "SessionInfoNowPlayingItem"
|
|
},
|
|
{
|
|
"name": "deviceId",
|
|
"baseName": "DeviceId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "applicationVersion",
|
|
"baseName": "ApplicationVersion",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "transcodingInfo",
|
|
"baseName": "TranscodingInfo",
|
|
"type": "TranscodingInfo"
|
|
},
|
|
{
|
|
"name": "isActive",
|
|
"baseName": "IsActive",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "supportsMediaControl",
|
|
"baseName": "SupportsMediaControl",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "supportsRemoteControl",
|
|
"baseName": "SupportsRemoteControl",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "nowPlayingQueue",
|
|
"baseName": "NowPlayingQueue",
|
|
"type": "Array<QueueItem>"
|
|
},
|
|
{
|
|
"name": "nowPlayingQueueFullItems",
|
|
"baseName": "NowPlayingQueueFullItems",
|
|
"type": "Array<BaseItemDto>"
|
|
},
|
|
{
|
|
"name": "hasCustomDeviceName",
|
|
"baseName": "HasCustomDeviceName",
|
|
"type": "boolean"
|
|
},
|
|
{
|
|
"name": "playlistItemId",
|
|
"baseName": "PlaylistItemId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "serverId",
|
|
"baseName": "ServerId",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "userPrimaryImageTag",
|
|
"baseName": "UserPrimaryImageTag",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "supportedCommands",
|
|
"baseName": "SupportedCommands",
|
|
"type": "Array<GeneralCommandType>"
|
|
} ];
|
|
|
|
static getAttributeTypeMap() {
|
|
return SessionInfo.attributeTypeMap;
|
|
}
|
|
}
|
|
|