ImSendMsg.php 784 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace App\Events;
  3. /**
  4. * 收到新的IM消息
  5. * Class ImSendMsg
  6. * @package App\Events
  7. */
  8. class ImSendMsg
  9. {
  10. public $senderIMAccount;
  11. public $receiverIMAccount;
  12. public $contentArray;
  13. public $timestamp;
  14. /**
  15. * Create a new event instance.
  16. *
  17. * @param string $senderIMAccount 发送者
  18. * @param string $receiverIMAccount 接收者
  19. * @param integer $timestamp 发送时间戳
  20. * @param array $contentArray 消息体
  21. */
  22. public function __construct($senderIMAccount, $receiverIMAccount, $timestamp, $contentArray)
  23. {
  24. $this->senderIMAccount = $senderIMAccount;
  25. $this->receiverIMAccount = $receiverIMAccount;
  26. $this->timestamp = $timestamp;
  27. $this->contentArray = $contentArray;
  28. }
  29. }