Package dev.postproxy.sdk.model
Record Class PlatformResult
java.lang.Object
java.lang.Record
dev.postproxy.sdk.model.PlatformResult
-
Constructor Summary
ConstructorsConstructorDescriptionPlatformResult(Platform platform, PlatformPostStatus status, Map<String, Object> params, String error, String attemptedAt, Insights insights) Creates an instance of aPlatformResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattemptedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.insights()Returns the value of theinsightsrecord component.params()Returns the value of theparamsrecord component.platform()Returns the value of theplatformrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlatformResult
public PlatformResult(Platform platform, PlatformPostStatus status, Map<String, Object> params, String error, String attemptedAt, Insights insights) Creates an instance of aPlatformResultrecord class.- Parameters:
platform- the value for theplatformrecord componentstatus- the value for thestatusrecord componentparams- the value for theparamsrecord componenterror- the value for theerrorrecord componentattemptedAt- the value for theattemptedAtrecord 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). -
platform
Returns the value of theplatformrecord component.- Returns:
- the value of the
platformrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
params
Returns the value of theparamsrecord component.- Returns:
- the value of the
paramsrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
attemptedAt
Returns the value of theattemptedAtrecord component.- Returns:
- the value of the
attemptedAtrecord component
-
insights
Returns the value of theinsightsrecord component.- Returns:
- the value of the
insightsrecord component
-