Skip to content

Lookup Data

Fetch lookup

       WouaMatrimonySDK.lookup().fetchLookUp(
            arrayOf(
                LookupType.DEALER_LIST,
                LookupType.COUNTRY
            )
        )
sdk.lookUp().fetchLookUp(lookupType:streets, callback:{ (result:LookUpRecord?, error:WouaSDKException?) in
        if let result = result{
            print(result)
        }
        else if let error = error{
            print(error.code)
            print(error.message)
        }
    })

Fetch locality

       WouaMatrimonySDK.lookup().fetchLocality(
            LocalityType.STATE,1
        )
sdk.lookUp().fetchLocality(localityType: LocalityType.state, id: 1) { (result : LookUpRecord?, error: WouaSDKException?) in
        if let result = result{
            print(result)
        }
        else if let error = error{
            print(error.code)
            print(error.message)
        }
    }