create

open fun <T> create(adsOffset: Long, input: T, mapper: Function2<T, Long, AdBreak>): AdBreak

Creates an AdBreak from a T type object.

Return

an AdBreak mapped from input with mapper.

Parameters

adsOffset

Initial offset of the AdBreak.

input

object to map from.

mapper

Function implementation to map.

<T>

Type of the input.


open fun create(startPosition: Long, endPosition: Long, ads: Collection<Ad>): AdBreak

Creates an AdBreak with startPosition, endPosition and ads.

Return

the instantiated AdBreak.

Parameters

startPosition

startPosition of the AdBreak

endPosition

endPosition of the AdBreak.

ads

Collection of Ad.


open fun create(id: String, startPosition: Long, endPosition: Long, ads: Collection<Ad>): AdBreak

Creates an AdBreak with an Id, startPosition, endPosition and ads.

Return

the instantiated AdBreak.

Parameters

id

the AdBreak id

startPosition

startPosition of the AdBreak

endPosition

endPosition of the AdBreak.

ads

Collection of Ad.