Module modrinthapi
Record Class ModeratorMessage
java.lang.Object
java.lang.Record
ovh.paulem.modrinthapi.types.classes.deprecated.ModeratorMessage
@Deprecated
public record ModeratorMessage(@NotNull String message, @Nullable String body)
extends Record
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionModeratorMessage(@NotNull String message, @Nullable String body) Deprecated.Creates an instance of aModeratorMessagerecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringbody()Deprecated.Returns the value of thebodyrecord component.final booleanDeprecated.Indicates whether some other object is "equal to" this one.static @Nullable ModeratorMessagefromJson(@Nullable com.google.gson.JsonElement json) Deprecated.final inthashCode()Deprecated.Returns a hash code value for this object.@NotNull Stringmessage()Deprecated.Returns the value of themessagerecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Constructor Details
-
ModeratorMessage
Deprecated.Creates an instance of aModeratorMessagerecord class.- Parameters:
message- the value for themessagerecord componentbody- the value for thebodyrecord component
-
-
Method Details
-
fromJson
@Nullable public static @Nullable ModeratorMessage fromJson(@Nullable @Nullable com.google.gson.JsonElement json) Deprecated. -
toString
Deprecated.Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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. All components in this record class are compared withObjects::equals(Object,Object). -
message
Deprecated.Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
body
Deprecated.Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-