Files
yuyin-php/extend/RongCloud/Lib/Message/Message.php

81 lines
1.4 KiB
PHP

<?php
/**
* 消息模块
*/
namespace RongCloud\Lib\Message;
use RongCloud\Lib\Message\Chatroom\Chatroom;
use RongCloud\Lib\Message\Discussion\Discussion;
use RongCloud\Lib\Message\Group\Group;
use RongCloud\Lib\Message\History\History;
use RongCloud\Lib\Message\Person\Person;
use RongCloud\Lib\Message\System\System;
use RongCloud\Lib\Message\Broadcast\Broadcast;
class Message
{
/**
* 创建聊天室对象
*
* @return Chatroom
*/
public function Chatroom(){
return new Chatroom();
}
/**
* 创建聊天室对象
*
* @return Discussion
*/
public function Discussion(){
return new Discussion();
}
/**
* 创建聊天室对象
*
* @return Group
*/
public function Group(){
return new Group();
}
/**
* 创建聊天室对象
*
* @return History
*/
public function History(){
return new History();
}
/**
* 创建聊天室对象
*
* @return Person
*/
public function Person(){
return new Person();
}
/**
* 创建聊天室对象
*
* @return System
*/
public function System(){
return new System();
}
/**
* 创建广播消息对象
*
* @return Broadcast
*/
public function Broadcast(){
return new Broadcast();
}
}