interface FossabotChannel implements FossabotDataModel (View source)

Fossabot channel context data model. Contains informationa bout the channel in which the custom API was invoked in.

Methods

string
__toString()

String representation of the object.

string
toString()

String representation of the object. For complex objects, this would normally be a JSON string.

string
toJson(int $options = 0)

Convert the object to its JSON representation.

from  Jsonable
toArray()

No description

createFromBody(array $body)

Creates a new Fossabot data model instance from a parsed array of API data.

string
id()

Channel ID.

string
login()

Channel log in name. This is the lowercase version of the broadcaster's username.

string
displayName()

The uppercased or internationalized version of the boradcaster's username.

string
avatarUrl()

URL to the user's profile avatar.

string
slug()

The fossabot channel URL of the broadcaster.

string
broadcasterType()

Broadcaster type (i.e. affiliate, partner, etc.).

string
provider()

Broadcaster provider (i.e. twitch, etc.).

string
providerId()

Provider ID.

createdAt()

Time the request was created at.

streamTimestamp()

Stream timestamp.

bool
isLive()

Whether channel is live or not currently.

Details

string __toString()

String representation of the object.

Return Value

string

String representation of the object

string toString()

String representation of the object. For complex objects, this would normally be a JSON string.

Return Value

string

String representation of the object

string toJson(int $options = 0)

Convert the object to its JSON representation.

Parameters

int $options

JSON encode options

Return Value

string

JSON string

toArray()

No description

static FossabotDataModel createFromBody(array $body)

Creates a new Fossabot data model instance from a parsed array of API data.

Parameters

array $body

Parsed API body

Return Value

FossabotDataModel

string id()

Channel ID.

Return Value

string

string login()

Channel log in name. This is the lowercase version of the broadcaster's username.

Return Value

string

string displayName()

The uppercased or internationalized version of the boradcaster's username.

Return Value

string

string avatarUrl()

URL to the user's profile avatar.

Return Value

string

string slug()

The fossabot channel URL of the broadcaster.

Return Value

string

string broadcasterType()

Broadcaster type (i.e. affiliate, partner, etc.).

Return Value

string

string provider()

Broadcaster provider (i.e. twitch, etc.).

Return Value

string

string providerId()

Provider ID.

Return Value

string

DateTimeImmutable createdAt()

Time the request was created at.

Return Value

DateTimeImmutable

DateTimeImmutable streamTimestamp()

Stream timestamp.

Return Value

DateTimeImmutable

bool isLive()

Whether channel is live or not currently.

Return Value

bool