Record Class RenderedTemplate
java.lang.Object
java.lang.Record
io.leandev.appfuse.notification.RenderedTemplate
- Record Components:
subject- 主旨body- 內文(EMAIL 通道為 HTML)
渲染後的通知內容(主旨 + 內文)
NotificationTemplateResolver 依 type×channel×locale 對 NotificationRequest.model
插值後的產物。body 的格式由通道決定(EMAIL 為 HTML)。
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionRenderedTemplate(String subject, String body) Creates an instance of aRenderedTemplaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RenderedTemplate
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
subject
-
body
-