interface MobilePushService

移动推送

Methods

bool
register(RegisterDevice $device)

注册阿里推送

bool
unbind(string $uid, array $pushIds)

取消ali推送的绑定

notification(From $from, Team $team, Message $message)

通知信息

bool
push(Packer $notificationPacker, Team $team, array $targetUid)

发送推送

Details

at line 24
bool register(RegisterDevice $device)

注册阿里推送

Parameters

RegisterDevice $device

Return Value

bool

at line 32
bool unbind(string $uid, array $pushIds)

取消ali推送的绑定

Parameters

string $uid
array $pushIds

Return Value

bool

at line 41
Packer notification(From $from, Team $team, Message $message)

通知信息

Parameters

From $from
Team $team
Message $message

Return Value

Packer

at line 50
bool push(Packer $notificationPacker, Team $team, array $targetUid)

发送推送

Parameters

Packer $notificationPacker
Team $team
array $targetUid

Return Value

bool