Record Class SmtpEmailSender
java.lang.Object
java.lang.Record
com.soulfiremc.server.user.SmtpEmailSender
- All Implemented Interfaces:
EmailSender
-
Constructor Summary
ConstructorsConstructorDescriptionSmtpEmailSender(SoulFireServer soulFireServer) Creates an instance of aSmtpEmailSenderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidsendLoginCode(String recipient, String username, String code) Returns the value of thesoulFireServerrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SmtpEmailSender
Creates an instance of aSmtpEmailSenderrecord class.- Parameters:
soulFireServer- the value for thesoulFireServerrecord component
-
-
Method Details
-
sendLoginCode
- Specified by:
sendLoginCodein interfaceEmailSender
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
soulFireServer
Returns the value of thesoulFireServerrecord component.- Returns:
- the value of the
soulFireServerrecord component
-