-
- All Implemented Interfaces:
-
android.os.Parcelable
,java.io.Serializable
,kotlin.Cloneable
public final class MenigaSync implements Serializable, Parcelable, Cloneable
Represents the status of a sync procedure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract class
MenigaSync.PostSyncCallback
A class used as a callback. It will be called when the sync procedure is done or if it fails or times out.
public class
MenigaSync.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Integer
numNewTransactions
private final Long
syncHistoryId
private final Boolean
isSyncDone
private final DateTime
syncSessionStartTime
private final List<RealmSyncResponse>
realmSyncResponses
-
Constructor Summary
Constructors Constructor Description MenigaSync(Long syncHistoryId, Boolean isSyncDone, DateTime syncSessionStartTime, List<RealmSyncResponse> realmSyncResponses)
-
Method Summary
Modifier and Type Method Description final Result<MenigaSyncStatus>
isSyncDone()
Checks to see if the synchronization operation has finished final Long
component1()
final Boolean
component2()
final DateTime
component3()
final List<RealmSyncResponse>
component4()
final MenigaSync
copy(Long syncHistoryId, Boolean isSyncDone, DateTime syncSessionStartTime, List<RealmSyncResponse> realmSyncResponses)
final Integer
getNumNewTransactions()
final Long
getSyncHistoryId()
final Boolean
getIsSyncDone()
final DateTime
getSyncSessionStartTime()
final List<RealmSyncResponse>
getRealmSyncResponses()
-
Methods inherited from class java.io.Serializable
equals, hashCode, toString
-
Methods inherited from class com.meniga.sdk.models.sync.MenigaSync
describeContents, writeToParcel
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MenigaSync
MenigaSync(Long syncHistoryId, Boolean isSyncDone, DateTime syncSessionStartTime, List<RealmSyncResponse> realmSyncResponses)
-
-
Method Detail
-
isSyncDone
@Deprecated(message = "Use static getSyncStatus instead", replaceWith = @ReplaceWith(imports = {}, expression = "getSyncStatus")) final Result<MenigaSyncStatus> isSyncDone()
Checks to see if the synchronization operation has finished
-
component1
final Long component1()
-
component2
final Boolean component2()
-
component3
final DateTime component3()
-
component4
final List<RealmSyncResponse> component4()
-
copy
final MenigaSync copy(Long syncHistoryId, Boolean isSyncDone, DateTime syncSessionStartTime, List<RealmSyncResponse> realmSyncResponses)
-
getNumNewTransactions
final Integer getNumNewTransactions()
-
getSyncHistoryId
final Long getSyncHistoryId()
-
getIsSyncDone
final Boolean getIsSyncDone()
-
getSyncSessionStartTime
final DateTime getSyncSessionStartTime()
-
getRealmSyncResponses
final List<RealmSyncResponse> getRealmSyncResponses()
-
-
-
-