PHP 클래스 Bitrix24\Im\Chat

상속: extends Bitrix24\Bitrix24Entity
파일 보기 프로젝트 열기: mesilov/bitrix24-php-sdk 1 사용 예제들

공개 메소드들

메소드 설명
add ( string $title, string $description = '', string $color = '', string $message = '', array $users = [], string $avatarImgInBase64 = null, boolean $isOpen = false ) : array create new chat
delete ( integer $chatId ) : array delete chat
sendTyping ( integer $chatId ) : array send typing
setOwner ( $chatId, $userId ) : array set chat owner
updateAvatar ( integer $chatId, string $avatarImgInBase64 ) : array update avatar
updateColor ( integer $chatId, string $newColor ) : array update color
updateTitle ( integer $chatId, string $newTitle ) : array update title
userAdd ( $chatId, array $arNewUsers = [] ) : array
userDelete ( $chatId, $userId ) : array delete user from chat
userList ( $chatId ) : array get user list in chat

메소드 상세

add() 공개 메소드

create new chat
public add ( string $title, string $description = '', string $color = '', string $message = '', array $users = [], string $avatarImgInBase64 = null, boolean $isOpen = false ) : array
$title string
$description string
$color string chat color in Bitrix24\Presets\Im\iChatColor for mobile
$message string
$users array
$avatarImgInBase64 string
$isOpen boolean
리턴 array

delete() 공개 메소드

delete chat
public delete ( integer $chatId ) : array
$chatId integer
리턴 array

sendTyping() 공개 메소드

send typing
public sendTyping ( integer $chatId ) : array
$chatId integer
리턴 array

setOwner() 공개 메소드

set chat owner
public setOwner ( $chatId, $userId ) : array
$chatId
$userId
리턴 array

updateAvatar() 공개 메소드

update avatar
public updateAvatar ( integer $chatId, string $avatarImgInBase64 ) : array
$chatId integer
$avatarImgInBase64 string
리턴 array

updateColor() 공개 메소드

update color
public updateColor ( integer $chatId, string $newColor ) : array
$chatId integer
$newColor string
리턴 array

updateTitle() 공개 메소드

update title
public updateTitle ( integer $chatId, string $newTitle ) : array
$chatId integer
$newTitle string
리턴 array

userAdd() 공개 메소드

public userAdd ( $chatId, array $arNewUsers = [] ) : array
$chatId
$arNewUsers array
리턴 array

userDelete() 공개 메소드

delete user from chat
public userDelete ( $chatId, $userId ) : array
$chatId
$userId
리턴 array

userList() 공개 메소드

get user list in chat
public userList ( $chatId ) : array
$chatId
리턴 array