MagentoSyncResult<T> class

Result for synchronization operations

Inheritance

Constructors

MagentoSyncResult.error(String error, {MagentoSyncType syncType = MagentoSyncType.full})
Create a failed sync result
factory
MagentoSyncResult.success({List<T>? data, int syncedCount = 0, int failedCount = 0, int conflictCount = 0, MagentoSyncType syncType = MagentoSyncType.full, List<String> syncedItems = const [], List<String> failedItems = const [], List<MagentoSyncConflict> conflicts = const []})
Create a successful sync result
factory

Properties

conflictCount int
Number of conflicted items
final
conflicts List<MagentoSyncConflict>
List of conflicted items requiring manual resolution
final
data List<T>?
The result data (null if operation failed)
finalinherited
error String?
Error message (null if operation succeeded)
finalinherited
failedCount int
Number of items that failed to sync
final
failedItems List<String>
List of failed item identifiers
final
hasData bool
Whether the operation succeeded and has data
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hasPartialSuccess bool
Whether sync was partially successful
no setter
isCompleteSuccess bool
Whether sync completed without any issues
no setter
isError bool
Whether the operation failed
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Whether the operation was successful
finalinherited
successRate double
Sync success rate (0.0 to 1.0)
no setter
syncedCount int
Number of successfully synced items
final
syncedItems List<String>
List of successfully synced item identifiers
final
syncType MagentoSyncType
Type of sync operation performed
final
timestamp DateTime
When the result was created
finalinherited
totalCount int
Total number of items processed
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited