Bitrix API

Message implements JsonSerializable

Data-class represents push-notification from backend to mobile app.

Table of Contents

Interfaces

JsonSerializable

Methods

__construct()  : mixed
createWithPayload()  : Message
Static constructor for silent push-messages with payload only.
getBody()  : string
getId()  : string
getPayload()  : array<string|int, mixed>
getTitle()  : string
getType()  : string
jsonSerialize()  : array<string|int, mixed>

Methods

__construct()

public __construct(string $type[, string $title = '' ][, string $body = '' ][, array<string|int, mixed> $payload = [] ]) : mixed
Parameters
$type : string
$title : string = ''
$body : string = ''
$payload : array<string|int, mixed> = []

createWithPayload()

Static constructor for silent push-messages with payload only.

public static createWithPayload(string $type, array<string|int, mixed> $payload) : Message
Parameters
$type : string
$payload : array<string|int, mixed>
Return values
Message

getBody()

public getBody() : string
Return values
string

getId()

public getId() : string
Return values
string

getPayload()

public getPayload() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTitle()

public getTitle() : string
Return values
string

getType()

public getType() : string
Return values
string

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results