PHP Class OCA\OcSms\Controller\SmsController

Inheritance: extends OCP\AppFramework\Controller
Afficher le fichier Open project: nerzhul/ocsms

Méthodes publiques

Méthode 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 méthode

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 méthode

public checkNewMessages ( $lastDate ) : OCP\AppFramework\Http\JSONResponse
$lastDate
Résultat OCP\AppFramework\Http\JSONResponse

deleteConversation() public méthode

public deleteConversation ( $contact ) : OCP\AppFramework\Http\JSONResponse
$contact
Résultat OCP\AppFramework\Http\JSONResponse

deleteMessage() public méthode

public deleteMessage ( $messageId, $phoneNumber ) : OCP\AppFramework\Http\JSONResponse
$messageId
$phoneNumber
Résultat OCP\AppFramework\Http\JSONResponse

getConversation() public méthode

public getConversation ( $phoneNumber, integer $lastDate ) : OCP\AppFramework\Http\JSONResponse
$phoneNumber
$lastDate integer
Résultat OCP\AppFramework\Http\JSONResponse

index() public méthode

public index ( )

retrieveAllPeers() public méthode

public retrieveAllPeers ( )