Package dev.postproxy.sdk.webhook
Record Class PlatformPostData
java.lang.Object
java.lang.Record
dev.postproxy.sdk.webhook.PlatformPostData
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformPostData(String id, String postId, Platform platform, String profileId, String profileName, PlatformPostStatus status, String error, ErrorDetails errorDetails, String platformId, Map<String, Object> insights) Creates an instance of aPlatformPostDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of theerrorDetailsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.insights()Returns the value of theinsightsrecord component.platform()Returns the value of theplatformrecord component.Returns the value of theplatformIdrecord component.postId()Returns the value of thepostIdrecord component.Returns the value of theprofileIdrecord component.Returns the value of theprofileNamerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlatformPostData
public PlatformPostData(String id, String postId, Platform platform, String profileId, String profileName, PlatformPostStatus status, String error, ErrorDetails errorDetails, String platformId, Map<String, Object> insights) Creates an instance of aPlatformPostDatarecord class.- Parameters:
id- the value for theidrecord componentpostId- the value for thepostIdrecord componentplatform- the value for theplatformrecord componentprofileId- the value for theprofileIdrecord componentprofileName- the value for theprofileNamerecord componentstatus- the value for thestatusrecord componenterror- the value for theerrorrecord componenterrorDetails- the value for theerrorDetailsrecord componentplatformId- the value for theplatformIdrecord componentinsights- the value for theinsightsrecord 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
-
postId
Returns the value of thepostIdrecord component.- Returns:
- the value of the
postIdrecord component
-
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
profileId
Returns the value of theprofileIdrecord component.- Returns:
- the value of the
profileIdrecord component
-
profileName
Returns the value of theprofileNamerecord component.- Returns:
- the value of the
profileNamerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
errorDetails
Returns the value of theerrorDetailsrecord component.- Returns:
- the value of the
errorDetailsrecord component
-
platformId
Returns the value of theplatformIdrecord component.- Returns:
- the value of the
platformIdrecord component
-
insights
Returns the value of theinsightsrecord component.- Returns:
- the value of the
insightsrecord component
-