ConfigWiseSDK Documentation Beta

Class Component​Service

public class ComponentService: DaoAwareService
ComponentService ComponentService DaoAwareService DaoAwareService ComponentService->DaoAwareService

Conforms To

DaoAwareService

Properties

shared​Instance

let sharedInstance

Methods

obtain​Component​ById(id:​block:​)

public func obtainComponentById(id: String, block: @escaping (ComponentEntity?, Error?) -> Void)

obtain​All​Components​ByIds(ids:​offset:​max:​block:​)

public func obtainAllComponentsByIds(ids: [String], offset: Int? = nil, max: Int? = nil, block: @escaping ([ComponentEntity], Error?) -> Void)

obtain​All​Components​ByCurrent​Catalog(offset:​max:​block:​)

public func obtainAllComponentsByCurrentCatalog(offset: Int? = nil, max: Int? = nil, block: @escaping ([ComponentEntity], Error?) -> Void)

obtain​All​Components​ByCatalog(catalog:​offset:​max:​block:​)

public func obtainAllComponentsByCatalog(catalog: CatalogEntity, offset: Int? = nil, max: Int? = nil, block: @escaping ([ComponentEntity], Error?) -> Void)

obtain​Component​ByCurrent​Catalog​And​Product​Nr(product​Nr:​block:​)

public func obtainComponentByCurrentCatalogAndProductNr(productNr: String, block: @escaping (ComponentEntity?, Error?) -> Void)

obtain​Component​ByCatalog​And​Product​Nr(catalog:​product​Nr:​block:​)

public func obtainComponentByCatalogAndProductNr(catalog: CatalogEntity, productNr: String, block: @escaping (ComponentEntity?, Error?) -> Void)

obtain​Product​Url​ByComponent​OfCurrent​Company(component:​block:​)

public func obtainProductUrlByComponentOfCurrentCompany(component: ComponentEntity, block: @escaping (URL?, Error?) -> Void)

obtain​All​Variances​ByComponent(component:​offset:​max:​block:​)

public func obtainAllVariancesByComponent(component: ComponentEntity, offset: Int? = nil, max: Int? = nil, block: @escaping ([ComponentEntity], Error?) -> Void)

count​Variances​ByComponent(component:​block:​)

public func countVariancesByComponent(component: ComponentEntity, block: @escaping (Int, Error?) -> Void)

get​Component​Thumbnail​Home(component:​block:​)

public func getComponentThumbnailHome(component: ComponentEntity, block: @escaping (String?, Error?) -> Void)