Package dev.postproxy.sdk.webhook
Record Class PostImportedData
java.lang.Object
java.lang.Record
dev.postproxy.sdk.webhook.PostImportedData
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPostImportedData(String id, String body, String source, String postedAt, String createdAt, Platform platform, PostImportedData.Profile profile, String platformPostId, String publicId) Creates an instance of aPostImportedDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.Returns the value of thecreatedAtrecord 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.platform()Returns the value of theplatformrecord component.Returns the value of theplatformPostIdrecord component.postedAt()Returns the value of thepostedAtrecord component.profile()Returns the value of theprofilerecord component.publicId()Returns the value of thepublicIdrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostImportedData
public PostImportedData(String id, String body, String source, String postedAt, String createdAt, Platform platform, PostImportedData.Profile profile, String platformPostId, String publicId) Creates an instance of aPostImportedDatarecord class.- Parameters:
id- the value for theidrecord componentbody- the value for thebodyrecord componentsource- the value for thesourcerecord componentpostedAt- the value for thepostedAtrecord componentcreatedAt- the value for thecreatedAtrecord componentplatform- the value for theplatformrecord componentprofile- the value for theprofilerecord componentplatformPostId- the value for theplatformPostIdrecord componentpublicId- the value for thepublicIdrecord component
-
-
Method Details
-
toString
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()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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
postedAt
Returns the value of thepostedAtrecord component.- Returns:
- the value of the
postedAtrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
profile
Returns the value of theprofilerecord component.- Returns:
- the value of the
profilerecord component
-
platformPostId
Returns the value of theplatformPostIdrecord component.- Returns:
- the value of the
platformPostIdrecord component
-
publicId
Returns the value of thepublicIdrecord component.- Returns:
- the value of the
publicIdrecord component
-