Record Class AbuseReportRequest
java.lang.Object
java.lang.Record
com.mojang.authlib.yggdrasil.request.AbuseReportRequest
public record AbuseReportRequest(int version, UUID id, AbuseReport report, AbuseReportRequest.ClientInfo clientInfo, @Nullable AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo, @Nullable AbuseReportRequest.RealmInfo realmInfo, String reportType)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AbuseReportRequest.ClientInfoThe field for theclientInforecord component.private final UUIDThe field for theidrecord component.private final AbuseReportRequest.RealmInfoThe field for therealmInforecord component.private final AbuseReportThe field for thereportrecord component.private final StringThe field for thereportTyperecord component.private final AbuseReportRequest.ThirdPartyServerInfoThe field for thethirdPartyServerInforecord component.private final intThe field for theversionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionAbuseReportRequest(int version, UUID id, AbuseReport report, AbuseReportRequest.ClientInfo clientInfo, AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo, AbuseReportRequest.RealmInfo realmInfo, String reportType) Creates an instance of aAbuseReportRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therealmInforecord component.report()Returns the value of thereportrecord component.Returns the value of thereportTyperecord component.Returns the value of thethirdPartyServerInforecord component.final StringtoString()Returns a string representation of this record class.intversion()Returns the value of theversionrecord component.
-
Field Details
-
version
@SerializedName("version") private final int versionThe field for theversionrecord component. -
id
The field for theidrecord component. -
report
The field for thereportrecord component. -
clientInfo
The field for theclientInforecord component. -
thirdPartyServerInfo
@SerializedName("thirdPartyServerInfo") @Nullable private final AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfoThe field for thethirdPartyServerInforecord component. -
realmInfo
The field for therealmInforecord component. -
reportType
The field for thereportTyperecord component.
-
-
Constructor Details
-
AbuseReportRequest
public AbuseReportRequest(int version, UUID id, AbuseReport report, AbuseReportRequest.ClientInfo clientInfo, @Nullable AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo, @Nullable AbuseReportRequest.RealmInfo realmInfo, String reportType) Creates an instance of aAbuseReportRequestrecord class.- Parameters:
version- the value for theversionrecord componentid- the value for theidrecord componentreport- the value for thereportrecord componentclientInfo- the value for theclientInforecord componentthirdPartyServerInfo- the value for thethirdPartyServerInforecord componentrealmInfo- the value for therealmInforecord componentreportType- the value for thereportTyperecord 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. -
version
@SerializedName("version") public int version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
report
Returns the value of thereportrecord component.- Returns:
- the value of the
reportrecord component
-
clientInfo
Returns the value of theclientInforecord component.- Returns:
- the value of the
clientInforecord component
-
thirdPartyServerInfo
@SerializedName("thirdPartyServerInfo") @Nullable public AbuseReportRequest.ThirdPartyServerInfo thirdPartyServerInfo()Returns the value of thethirdPartyServerInforecord component.- Returns:
- the value of the
thirdPartyServerInforecord component
-
realmInfo
Returns the value of therealmInforecord component.- Returns:
- the value of the
realmInforecord component
-
reportType
Returns the value of thereportTyperecord component.- Returns:
- the value of the
reportTyperecord component
-