public interface FcmTokenService extends Service
| Modifier and Type | Method and Description |
|---|---|
void |
assign(@NotNull java.lang.String token)
Assigns the given registration token to the logged user.
|
void |
remove(@NotNull java.lang.String token,
@NotNull java.util.Set<java.lang.Long> users)
Removed a token from the given users.
|
void |
replace(@NotNull java.lang.String oldToken,
@NotNull java.lang.String newToken)
Replace a token with it's new value.
|
void assign(@NotNull
@NotNull java.lang.String token)
throws FrameworkException
token - the FCM registration tokenFrameworkExceptionvoid remove(@NotNull
@NotNull java.lang.String token,
@NotNull
@NotNull java.util.Set<java.lang.Long> users)
throws FrameworkException
token - the FCM registration token to be removedusers - the set of users from whom the token will be removedFrameworkExceptionvoid replace(@NotNull
@NotNull java.lang.String oldToken,
@NotNull
@NotNull java.lang.String newToken)
throws FrameworkException
oldToken - the existing tokennewToken - the new token valueFrameworkException