Record Class FcmTransport.TokenCheck
java.lang.Object
java.lang.Record
com.iizix.server.push.engine.transport.FcmTransport.TokenCheck
- Record Components:
verdict- The verdict, never null.project- The application's Firebase project, null when it has none.status- The HTTP status FCM answered, 0 when no request was answered.detail- Why, for a log line or a message: empty forFcmTransport.ProjectVerdict.MATCHES.
- Enclosing class:
FcmTransport
public static record FcmTransport.TokenCheck(FcmTransport.ProjectVerdict verdict, String project, int status, String detail) extends Record
The outcome of
FcmTransport.checkToken(String, String): the verdict, the application's Firebase project the token was checked against, and what FCM answered.- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionTokenCheck(FcmTransport.ProjectVerdict verdict, String project, int status, String detail) Validates the verdict.Method Summary
Modifier and TypeMethodDescriptiondetail()Returns the value of thedetailrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.project()Returns the value of theprojectrecord component.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.static FcmTransport.TokenCheckAnFcmTransport.ProjectVerdict.UNKNOWNoutcome with no request answered.verdict()Returns the value of theverdictrecord component.
Constructor Details
TokenCheck
Validates the verdict.- Throws:
NullPointerException- If the verdict or the detail is null.
Method Details
unknown
AnFcmTransport.ProjectVerdict.UNKNOWNoutcome with no request answered.- Parameters:
project- The application's Firebase project, null for none.detail- Why the project could not be told.- Returns:
- The outcome.
toString
hashCode
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.verdict
project
status
detail