You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please develop a method that lists all the logged in user. I have certain features in my iOS app, that require the user to select one of their vehicles (rather than a Vinli device), in order to view past historical driving data.
For the time being, I have cobbled a simple set of methods that perform the following functions in order to generate a list of all vehicles for a user:
Download all the devices for the logged in user.
Download all the vehicles for each device (using a method loop).
Sort the vehicle array data, so that no vehicle duplicates appear (when presenting a list of vehicles to the user).
If you like, I would be happy to share my code with you (although its nothing advanced, just a simple method that loops itself until all the data is downloaded, followed by another method that removes duplicate VLVehicle objects).
The text was updated successfully, but these errors were encountered:
Hi,
Please develop a method that lists all the logged in user. I have certain features in my iOS app, that require the user to select one of their vehicles (rather than a Vinli device), in order to view past historical driving data.
For the time being, I have cobbled a simple set of methods that perform the following functions in order to generate a list of all vehicles for a user:
If you like, I would be happy to share my code with you (although its nothing advanced, just a simple method that loops itself until all the data is downloaded, followed by another method that removes duplicate VLVehicle objects).
The text was updated successfully, but these errors were encountered: