as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

Program

Program

一个类对象,表示Program对象,使用ProgramBuilder构建。

实现

构造函数

new Program()

new Program(identifier, channelDescriptor, title, startTimeMs, endTimeMs, subtitle, description, thumbnailUrl, posterArtUrl, ratings, genres, attributes, seriesInfo?): Program

一个构造函数,用来初始化Program

参数

identifier

string

channelDescriptor

IChannelDescriptor

title

string

startTimeMs

number

endTimeMs

number

subtitle

string = ''

description

string = ''

thumbnailUrl

string = ''

posterArtUrl

string = ''

ratings

string[] = []

genres

string[] = []

attributes

string[] = []

seriesInfo?

ISeriesInfo

返回值

Program

访问器

attributes

获取签名

get attributes(): string[]

获取Program的属性。

返回值

string[]

节目属性。

实现

IProgram.attributes


channelDescriptor

获取签名

get channelDescriptor(): IChannelDescriptor

获取ProgramChannelDescriptor

返回值

IChannelDescriptor

ProgramChannelDescriptor

实现

IProgram.channelDescriptor


description

获取签名

get description(): string

获取Program的描述。

返回值

string

节目描述。

实现

IProgram.description


endTimeMs

获取签名

get endTimeMs(): number

获取Program的结束时间。

返回值

number

节目的结束时间,从纪元开始以毫秒为单位。

实现

IProgram.endTimeMs


genres

获取签名

get genres(): string[]

获取与Program相关的类型。

返回值

string[]

节目的类型。

实现

IProgram.genres


identifier

获取签名

get identifier(): string

获取Program的标识符。

返回值

string

节目标识符。

实现

IProgram.identifier


posterArtUrl

获取签名

get posterArtUrl(): string

获取Program的海报图URL。

返回值

string

节目的海报图URL。

实现

IProgram.posterArtUrl


ratings

获取签名

get ratings(): string[]

获取Program的家长指导评级。

返回值

string[]

节目的家长指导评级。

实现

IProgram.ratings


seriesInfo

获取签名

get seriesInfo(): undefined | ISeriesInfo

获取Program的系列信息。

返回值

undefined | ISeriesInfo

节目的系列信息。

实现

IProgram.seriesInfo


startTimeMs

获取签名

get startTimeMs(): number

获取Program的开始时间。

返回值

number

节目的开始时间,从纪元开始以毫秒为单位。

实现

IProgram.startTimeMs


subtitle

获取签名

get subtitle(): string

获取Program的子标题。

返回值

string

节目子标题。

实现

IProgram.subtitle


thumbnailUrl

获取签名

get thumbnailUrl(): string

获取Program的缩略图URL。

返回值

string

节目的缩略图URL。

实现

IProgram.thumbnailUrl


title

获取签名

get title(): string

获取节目的标题。

返回值

string

节目标题。

实现

IProgram.title


Last updated: 2025年9月30日