apidocs / com.srv4pos.server.api.sync / EntitySyncAdapter

EntitySyncAdapter

interface EntitySyncAdapter<I : Info>

Created by ivkosh on 12.08.14.

Functions

createOrUpdateEntityFromInfo

abstract fun createOrUpdateEntityFromInfo(info: I): Unit

Method should update corresponding entity from info (entity could be located by identifier from info) or create entity if client has no entity with such identifier.

upload

abstract fun upload(uploader: Uploader<I>): Unit

Method should process all not synced entities from local storage:

Inheritors

CategorySyncAdapter

open class CategorySyncAdapter : EntitySyncAdapter<CategoryInfo!>

CommoditySyncAdapter

open class CommoditySyncAdapter : EntitySyncAdapter<CommodityInfo!>

DaySyncAdapter

open class DaySyncAdapter : EntitySyncAdapter<DayInfo!>

KeyboardEntrySyncAdapter

open class KeyboardEntrySyncAdapter : EntitySyncAdapter<KeyboardEntryInfo!>

Created by moonsweel on 22.06.16.

KeyboardSyncAdapter

open class KeyboardSyncAdapter : EntitySyncAdapter<KeyboardInfo!>

Created by moonsweel on 22.06.16.

OrderSyncAdapter

open class OrderSyncAdapter : EntitySyncAdapter<OrderInfo!>

ProductSyncAdapter

open class ProductSyncAdapter : EntitySyncAdapter<ProductInfo!>

SaleSlotSyncAdapter

open class SaleSlotSyncAdapter : EntitySyncAdapter<SaleSlotInfo!>

Created by misha on 30.06.16.

SaleSyncAdapter

open class SaleSyncAdapter : EntitySyncAdapter<SaleInfo!>

Created by moonsweel on 22/02/2017.

SellerSyncAdapter

open class SellerSyncAdapter : EntitySyncAdapter<SellerInfo!>

TaxSyncAdapter

open class TaxSyncAdapter : EntitySyncAdapter<TaxInfo!>

TreasurerSyncAdapter

open class TreasurerSyncAdapter : EntitySyncAdapter<TreasurerInfo!>

Created by ivkosh on 25.05.15.

TripSyncAdapter

open class TripSyncAdapter : EntitySyncAdapter<TripInfo!>

Created by moonsweel on 07/06/2017.