1 00:00:00,310 --> 00:00:05,700 It's now that we have our neighbor and manager set up here how do we then see at least something. 2 00:00:05,700 --> 00:00:10,140 Because we are printing these data list which should have our adjacent payload. 3 00:00:10,350 --> 00:00:13,460 Well let's go to our content view here. 4 00:00:13,770 --> 00:00:20,880 Now it's easy for us to think that well we can come down here and say net working manager like that 5 00:00:21,090 --> 00:00:22,200 and hope for the best. 6 00:00:22,200 --> 00:00:25,180 Well if you save this try to run we're going to have issues. 7 00:00:25,230 --> 00:00:30,720 The reason why is because network manager doesn't return a View and anytime here in central body we 8 00:00:30,720 --> 00:00:32,580 have to show something that returns a view. 9 00:00:32,610 --> 00:00:33,630 So this wouldn't work. 10 00:00:34,290 --> 00:00:41,610 But what we can do is actually come here as a var called is net working manager as such. 11 00:00:41,790 --> 00:00:50,090 It's gonna be equal to net working manager like this. 12 00:00:51,010 --> 00:00:54,630 Now that we've instantiated it save this and run. 13 00:00:54,630 --> 00:00:56,880 Hopefully we should see something in our console. 14 00:00:56,880 --> 00:01:00,750 Now we have to actually open our console to the bottom here. 15 00:01:00,750 --> 00:01:03,930 And while I can see looks like I see something there. 16 00:01:03,960 --> 00:01:06,600 Let's make sure this is a little bit bigger. 17 00:01:06,600 --> 00:01:07,390 And voila. 18 00:01:07,410 --> 00:01:09,800 So we're getting the information folks. 19 00:01:09,930 --> 00:01:11,820 That is indeed good news. 20 00:01:11,850 --> 00:01:16,080 That means we are getting stuff as you can see a lot of information there. 21 00:01:16,080 --> 00:01:16,640 All right. 22 00:01:16,650 --> 00:01:18,450 That's always encouraging. 23 00:01:18,550 --> 00:01:20,280 But the problem persists here. 24 00:01:20,280 --> 00:01:27,270 Yes we have our information because we see that we printing it out here instead of a dispatch to main 25 00:01:27,330 --> 00:01:28,590 a sink. 26 00:01:28,590 --> 00:01:34,380 But then the question persists how do we then show in a list that information showing here at List. 27 00:01:34,380 --> 00:01:36,390 Well at this point is very simple. 28 00:01:36,390 --> 00:01:37,850 We can put in a list. 29 00:01:37,990 --> 00:01:40,860 Remember list and I'm going to pass data here. 30 00:01:40,860 --> 00:01:41,880 What data do you need. 31 00:01:41,910 --> 00:01:48,700 Well it's going to be network manager as such and anything vote in that data list. 32 00:01:48,840 --> 00:01:49,310 Right. 33 00:01:49,350 --> 00:01:57,420 Because a network manager has the data list and then here what I'm going to do is I'm going to put inside 34 00:01:57,420 --> 00:02:04,330 there and when I say data in and I can say text it's going to be equal to data Dot. 35 00:02:04,530 --> 00:02:07,670 Let's see what properties we have. 36 00:02:07,680 --> 00:02:10,050 Let's go back to our data list entry here. 37 00:02:10,050 --> 00:02:11,640 Let's get a title. 38 00:02:11,670 --> 00:02:12,700 Why not. 39 00:02:12,720 --> 00:02:17,930 So data dot title like this now can save and give it a run right. 40 00:02:17,940 --> 00:02:20,120 Looks like we have a problem here. 41 00:02:20,190 --> 00:02:21,010 Right. 42 00:02:21,090 --> 00:02:25,770 So it says here it says member data lists cannot be used on type network manager. 43 00:02:25,770 --> 00:02:29,490 Now one of the things that we have to realize here is because we understand that networking manager 44 00:02:29,580 --> 00:02:33,190 is indeed of type observable object. 45 00:02:33,510 --> 00:02:38,940 Now because we want to make sure that this is actual connect or a content view which is the part that 46 00:02:38,940 --> 00:02:40,000 we show the data. 47 00:02:40,070 --> 00:02:40,330 Right. 48 00:02:40,350 --> 00:02:46,620 The view per say we actually have to come here and say observable or observed object. 49 00:02:47,310 --> 00:02:48,020 OK. 50 00:02:48,020 --> 00:02:52,360 Again which is why we have to do this because these network manager here let's jump to that number. 51 00:02:52,500 --> 00:02:56,750 We said this is observable object meaning that it's something that can be observed. 52 00:02:57,330 --> 00:03:02,280 However when we actually calling it we need to make sure that there's a variable that we attaching this 53 00:03:02,280 --> 00:03:06,390 information to is glass to be these at observed object. 54 00:03:06,390 --> 00:03:09,450 That way that way this view here will know that. 55 00:03:09,450 --> 00:03:09,810 OK. 56 00:03:09,810 --> 00:03:15,060 Whenever we get this network manager is going to return something for us which means then me in this 57 00:03:15,060 --> 00:03:16,800 case as a content view. 58 00:03:16,800 --> 00:03:22,280 If you do show something I'll have to redraw myself with new data if need be. 59 00:03:22,290 --> 00:03:22,650 All right. 60 00:03:23,100 --> 00:03:26,720 Now the problem I have here is that I'm calling the actual type. 61 00:03:26,730 --> 00:03:29,430 This has to be this network manager here. 62 00:03:29,460 --> 00:03:29,960 My bad. 63 00:03:29,990 --> 00:03:33,930 So I have to go ahead and add that one we shouldn't have any problems right now because that is the 64 00:03:33,930 --> 00:03:35,550 instantiation that we created there. 65 00:03:35,610 --> 00:03:36,940 So and voila. 66 00:03:36,990 --> 00:03:44,880 Just like that you can see now we're able to get all that information in our list of course is is still 67 00:03:44,880 --> 00:03:45,670 working here. 68 00:03:45,680 --> 00:03:53,010 Can I just put it down there and close it down and just simply we have all the information showing. 69 00:03:53,010 --> 00:03:53,850 All right. 70 00:03:54,090 --> 00:03:54,690 Very good. 71 00:03:54,690 --> 00:03:58,190 Of course as you know we can pass a few modifiers here. 72 00:03:58,200 --> 00:04:08,110 Let's say I want find to be tidal and I want foreground color to be maybe gray can play around with 73 00:04:08,130 --> 00:04:15,610 all that because now we have that data we can do all sorts of things OK here we go good. 74 00:04:15,610 --> 00:04:20,380 Now the beauty here is that our networking manager here we can always use it whenever we want to go 75 00:04:20,470 --> 00:04:22,600 and pass Jason API. 76 00:04:22,630 --> 00:04:22,840 Right. 77 00:04:22,840 --> 00:04:25,750 Because essentially the same thing happens all the time. 78 00:04:25,750 --> 00:04:27,870 There is of course a few changes here and there. 79 00:04:27,880 --> 00:04:33,220 But in essence the process is always the same one thing to notice though and we'll talk a little bit 80 00:04:33,220 --> 00:04:37,230 more about the observable object at a later time with more detail. 81 00:04:37,240 --> 00:04:40,850 The important thing to remember is that we need to mark this as an observable. 82 00:04:40,900 --> 00:04:46,720 So we want to be able to broadcast to other views that hey I am an observable object meaning that you 83 00:04:46,720 --> 00:04:49,660 can look out for whatever that I'm doing. 84 00:04:49,690 --> 00:04:54,970 If I may change my data and so forth and the actual variable that is holding the pass data in this case 85 00:04:54,970 --> 00:04:58,970 has to be published because we are publishing it to whoever is listening. 86 00:04:59,050 --> 00:05:04,750 In this case a view so swiftly why knows that it needs to brashly view with the new data or the data 87 00:05:04,780 --> 00:05:06,730 that it's being received. 88 00:05:06,730 --> 00:05:07,290 OK. 89 00:05:07,360 --> 00:05:13,390 And of course inside of our content view that variable of course we have to also append the observed 90 00:05:13,840 --> 00:05:19,450 object to say that this isn't amplitude that's being observed meaning hey great we have the data we 91 00:05:19,450 --> 00:05:25,270 can always change things and as things change the UI will also change accordingly to do data that is 92 00:05:25,270 --> 00:05:27,080 being served. 93 00:05:27,280 --> 00:05:28,600 That's it. 94 00:05:28,660 --> 00:05:33,760 And just like that we we're able to fetch data from a distant remote api.