Record Class MclogsResponse
java.lang.Object
java.lang.Record
com.zenith.feature.api.mclogs.model.MclogsResponse
-
Constructor Summary
ConstructorsConstructorDescriptionMclogsResponse(boolean success, @Nullable String error, @Nullable String id, @Nullable String url) Creates an instance of aMclogsResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.@Nullable Stringerror()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Returns the value of theidrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringurl()Returns the value of theurlrecord component.
-
Constructor Details
-
MclogsResponse
public MclogsResponse(boolean success, @Nullable String error, @Nullable String id, @Nullable String url) Creates an instance of aMclogsResponserecord class.- Parameters:
success- the value for thesuccessrecord componenterror- the value for theerrorrecord componentid- the value for theidrecord componenturl- the value for theurlrecord component
-
-
Method Details
-
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. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-