Package app.portaki.sdk.module.backend
Record Class HostModuleRunResult
java.lang.Object
java.lang.Record
app.portaki.sdk.module.backend.HostModuleRunResult
public record HostModuleRunResult(boolean ok, int succeeded, int failed, int itemsTotal, String summary, String updatedPlainConfigJson)
extends Record
Résultat générique d'une action backend (compteurs agrégés + résumé lisible humain / logs).
updatedPlainConfigJson : JSON de configuration module en clair après action (ex. dernier sync,
résumé). null si le backend ne modifie pas la config persistée.
-
Constructor Summary
ConstructorsConstructorDescriptionHostModuleRunResult(boolean ok, int succeeded, int failed, int itemsTotal, String summary) HostModuleRunResult(boolean ok, int succeeded, int failed, int itemsTotal, String summary, String updatedPlainConfigJson) Creates an instance of aHostModuleRunResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic HostModuleRunResultfinal booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theitemsTotalrecord component.booleanok()Returns the value of theokrecord component.intReturns the value of thesucceededrecord component.summary()Returns the value of thesummaryrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedPlainConfigJsonrecord component.
-
Constructor Details
-
HostModuleRunResult
-
HostModuleRunResult
public HostModuleRunResult(boolean ok, int succeeded, int failed, int itemsTotal, String summary, String updatedPlainConfigJson) Creates an instance of aHostModuleRunResultrecord class.- Parameters:
ok- the value for theokrecord componentsucceeded- the value for thesucceededrecord componentfailed- the value for thefailedrecord componentitemsTotal- the value for theitemsTotalrecord componentsummary- the value for thesummaryrecord componentupdatedPlainConfigJson- the value for theupdatedPlainConfigJsonrecord component
-
-
Method Details
-
emptySuccess
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
ok
public boolean ok()Returns the value of theokrecord component.- Returns:
- the value of the
okrecord component
-
succeeded
public int succeeded()Returns the value of thesucceededrecord component.- Returns:
- the value of the
succeededrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
itemsTotal
public int itemsTotal()Returns the value of theitemsTotalrecord component.- Returns:
- the value of the
itemsTotalrecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-
updatedPlainConfigJson
Returns the value of theupdatedPlainConfigJsonrecord component.- Returns:
- the value of the
updatedPlainConfigJsonrecord component
-