PHP Класс OCA\OcSms\Controller\SmsController

Наследование: extends OCP\AppFramework\Controller
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( string $appName, OCP\IRequest $request, $userId, SmsMapper $mapper, ConversationStateMapper $cmapper, ConfigMapper $cfgMapper, OCP\Contacts\IManager $contactsManager, OCP\IURLGenerator $urlGenerator ) SmsController constructor.
checkNewMessages ( $lastDate ) : OCP\AppFramework\Http\JSONResponse
deleteConversation ( $contact ) : OCP\AppFramework\Http\JSONResponse
deleteMessage ( $messageId, $phoneNumber ) : OCP\AppFramework\Http\JSONResponse
getConversation ( $phoneNumber, integer $lastDate ) : OCP\AppFramework\Http\JSONResponse
index ( )
retrieveAllPeers ( )

Описание методов

__construct() публичный Метод

SmsController constructor.
public __construct ( string $appName, OCP\IRequest $request, $userId, SmsMapper $mapper, ConversationStateMapper $cmapper, ConfigMapper $cfgMapper, OCP\Contacts\IManager $contactsManager, OCP\IURLGenerator $urlGenerator )
$appName string
$request OCP\IRequest
$userId
$mapper OCA\OcSms\Db\SmsMapper
$cmapper OCA\OcSms\Db\ConversationStateMapper
$cfgMapper OCA\OcSms\Db\ConfigMapper
$contactsManager OCP\Contacts\IManager
$urlGenerator OCP\IURLGenerator

checkNewMessages() публичный Метод

public checkNewMessages ( $lastDate ) : OCP\AppFramework\Http\JSONResponse
$lastDate
Результат OCP\AppFramework\Http\JSONResponse

deleteConversation() публичный Метод

public deleteConversation ( $contact ) : OCP\AppFramework\Http\JSONResponse
$contact
Результат OCP\AppFramework\Http\JSONResponse

deleteMessage() публичный Метод

public deleteMessage ( $messageId, $phoneNumber ) : OCP\AppFramework\Http\JSONResponse
$messageId
$phoneNumber
Результат OCP\AppFramework\Http\JSONResponse

getConversation() публичный Метод

public getConversation ( $phoneNumber, integer $lastDate ) : OCP\AppFramework\Http\JSONResponse
$phoneNumber
$lastDate integer
Результат OCP\AppFramework\Http\JSONResponse

index() публичный Метод

public index ( )

retrieveAllPeers() публичный Метод

public retrieveAllPeers ( )