메소드 | 설명 | |
---|---|---|
FetchUserDeviceTokens ( System.Int64 userId, DeviceType deviceType ) : List |
Fetches user device tokens from database
|
|
IsTokenSubscribed ( string token ) : bool |
Checks whether user devise is subscribed to get push notifications
|
|
IsUserSubscribed ( System.Int64 userId ) : bool |
Checks whether user is subscribed to get push notifications
|
|
RefreshDeviceToken ( string oldId, string newId ) : void |
Refreshes expired device token in DB
|
|
Send ( System.Int64 userId, DeviceType deviceType, string token, string message, ApplicationType appType ) : void |
Sends push message to subscribed user device
|
|
Send ( System.Int64 userId, string message ) : void |
Sends push message to all user devices
|
|
Subscribe ( string deviceToken, DeviceType deviceType, string accessToken, ApplicationType appType ) : void |
Subscribe user to get push message
|
|
SubscribeDeviceToken ( string token, DeviceType deviceType, long userId, ApplicationType appType ) : void |
Adds device token to database
|
|
Unsubscribe ( string token, long userId ) : void |
Unsubscribe user from push message
|
메소드 | 설명 | |
---|---|---|
GetPushMessageSender ( DeviceType deviceType, ApplicationType appType ) : |
Determines device type
|
public FetchUserDeviceTokens ( System.Int64 userId, DeviceType deviceType ) : List |
||
userId | System.Int64 | |
deviceType | DeviceType | |
리턴 | List |
public IsUserSubscribed ( System.Int64 userId ) : bool | ||
userId | System.Int64 | |
리턴 | bool |
public RefreshDeviceToken ( string oldId, string newId ) : void | ||
oldId | string | |
newId | string | |
리턴 | void |
public Send ( System.Int64 userId, DeviceType deviceType, string token, string message, ApplicationType appType ) : void | ||
userId | System.Int64 | |
deviceType | DeviceType | |
token | string | |
message | string | |
appType | ApplicationType | |
리턴 | void |
public Send ( System.Int64 userId, string message ) : void | ||
userId | System.Int64 | |
message | string | |
리턴 | void |
public Subscribe ( string deviceToken, DeviceType deviceType, string accessToken, ApplicationType appType ) : void | ||
deviceToken | string | |
deviceType | DeviceType | |
accessToken | string | |
appType | ApplicationType | |
리턴 | void |
public SubscribeDeviceToken ( string token, DeviceType deviceType, long userId, ApplicationType appType ) : void | ||
token | string | |
deviceType | DeviceType | |
userId | long | |
appType | ApplicationType | |
리턴 | void |
public Unsubscribe ( string token, long userId ) : void | ||
token | string | |
userId | long | |
리턴 | void |