<?php

namespace App\Events;

/**
 * 收到新的IM消息
 * Class ImSendMsg
 * @package App\Events
 */
class ImSendMsg
{

    public $senderIMAccount;
    public $receiverIMAccount;
    public $contentArray;
    public $timestamp;

    /**
     * Create a new event instance.
     *
     * @param string $senderIMAccount 发送者
     * @param string $receiverIMAccount 接收者
     * @param integer $timestamp 发送时间戳
     * @param array $contentArray 消息体
     */
    public function __construct($senderIMAccount, $receiverIMAccount, $timestamp, $contentArray)
    {
        $this->senderIMAccount = $senderIMAccount;
        $this->receiverIMAccount = $receiverIMAccount;
        $this->timestamp = $timestamp;
        $this->contentArray = $contentArray;
    }
}
