Vonage RCS Custom Message (RCS/RcsCustom.php)

vonage-php-sdk-core · src/Messages/Channel/RCS/RcsCustom.php · php · Apache-2.0
email, chat, voice, lang:php, tag:vonage, tag:rcs

Represents a custom RCS message payload for the Vonage PHP SDK. Use when sending customized rich communication services messages.

// Source: https://github.com/Vonage/vonage-php-sdk-core | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Vonage\Messages\Channel\RCS;

use Vonage\Messages\Channel\BaseMessage;

class RcsCustom extends RcsBase
{
    protected string $subType = BaseMessage::MESSAGES_SUBTYPE_CUSTOM;
    protected array $custom;

    public function __construct(
        string $to,
        string $from,
        array $custom
    ) {
        $this->to = $to;
        $this->from = $from;
        $this->custom = $custom;
    }

    public function getCustom(): array
    {
        return $this->custom;
    }

    public function setCustom(array $custom): RcsCustom
    {
        $this->cus

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key