new-dawn / new_dawn_ios_playground

iOS repository for project New Dawn
0 stars 1 forks source link

[Filterting][2/n] Add frontend user profile fetching parameters #257

Open duckmoll opened 5 years ago

duckmoll commented 5 years ago

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.

duckmoll commented 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