Wednesday March 3rd Update

 Today I kept going along in the tutorial I am watching and made some modifications to my code. The idea was to make a singleton request queue class in order to limit the amount of network traffic that app used and just put everything through the one queue. This was done by making the following singleton class


I also made a few changes to simplify the code in the button listeners by creating a class specifically for interacting with the API and then the listeners just instantiate an object and call methods on it. Doing this required me to use an async function which wasn't too difficult to make actually. I made a listener interface and then implemented it to return a value whenever a response is given back from the API. This makes it work much smoother. 

Not sure if I actually ever put the link to the tutorial. So here it is

I didn't really use any more links today. Mostly just followed along and did my own thing.


Comments