PHP Class OCA\OcSms\Controller\SmsController

Inheritance: extends OCP\AppFramework\Controller
ファイルを表示 Open project: nerzhul/ocsms

Public Methods

Method Description
__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 ( )

Method Details

__construct() public method

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 method

public checkNewMessages ( $lastDate ) : OCP\AppFramework\Http\JSONResponse
$lastDate
return OCP\AppFramework\Http\JSONResponse

deleteConversation() public method

public deleteConversation ( $contact ) : OCP\AppFramework\Http\JSONResponse
$contact
return OCP\AppFramework\Http\JSONResponse

deleteMessage() public method

public deleteMessage ( $messageId, $phoneNumber ) : OCP\AppFramework\Http\JSONResponse
$messageId
$phoneNumber
return OCP\AppFramework\Http\JSONResponse

getConversation() public method

public getConversation ( $phoneNumber, integer $lastDate ) : OCP\AppFramework\Http\JSONResponse
$phoneNumber
$lastDate integer
return OCP\AppFramework\Http\JSONResponse

index() public method

public index ( )

retrieveAllPeers() public method

public retrieveAllPeers ( )