Open duckmoll opened 5 years ago
Below is the function we use to fetch user profiles: https://github.com/new-dawn/new_dawn_ios_playground/blob/c9af943ffd08042e72492e7908c5e868aa7e54b9/NewDawn/NewDawn/Models/UserModels.swift#L259
And this is how preference values are getting stored: https://github.com/new-dawn/new_dawn_ios_playground/blob/6520e7fd163756f0ec4958212790390bf628614d/NewDawn/NewDawn/ViewControllers/SettingPageViewControllers/PreferenceSonViewControler.swift#L45
Currently we use fetchUserProfiles function to request profiles from backend. If you can parse filtering criterion from "user preference" value and add to request params like you did in unit tests, filtering should work.