Record Class SmsRequested
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.sms.SmsRequested
- Record Components:
to- the destination.text- the text, which may carry a code.
Event published when a text message, whose cost is already recorded within the budget, must be sent. It is sent once
the transaction that recorded it commits, outside of it and off the request thread, so the gateway's latency neither
holds a database connection nor shows in the response.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.text()Returns the value of thetextrecord component.to()Returns the value of thetorecord component.toString()Describes the event without the number and the text, so neither ever reaches a log.
-
Field Details
-
Constructor Details
-
SmsRequested
Validates the event.- Throws:
IllegalArgumentException- if a value is missing or the text is blank.
-
-
Method Details
-
toString
Describes the event without the number and the text, so neither ever reaches a log. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-