-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToken.java
More file actions
34 lines (24 loc) · 794 Bytes
/
Copy pathToken.java
File metadata and controls
34 lines (24 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.codewithharry.firebase.notifications;
import androidx.annotation.NonNull;
import com.google.android.gms.tasks.Task;
import com.google.firebase.installations.InstallationTokenResult;
import com.google.firebase.messaging.FirebaseMessagingService;
public class Token {
/*An FCM token, or much commonly known as a RegistrationToken.
* An ID issued by the GSM connection serves to the client app that allows it to
* receiver messages */
String token;
public Token(String token) {
this.token = token;
}
public Token() {
}
public Token(Object tokenRefresh) {
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
}