1
00:00:00,980 --> 00:00:05,600
So let's actually first of all create some classes.

2
00:00:05,780 --> 00:00:07,690
So first we need to model OK.

3
00:00:07,730 --> 00:00:14,640
We need a model in order to help us to actually store the data that we actually receive from the Internet.

4
00:00:14,870 --> 00:00:19,080
So just right click on this package here and the new.

5
00:00:19,100 --> 00:00:21,500
And then click on package here.

6
00:00:21,500 --> 00:00:26,770
Let's actually create another package and the name of this package is going to be modeled.

7
00:00:27,530 --> 00:00:29,070
And then click on OK.

8
00:00:29,750 --> 00:00:32,310
And right click on this or model directory here.

9
00:00:32,580 --> 00:00:33,060
OK.

10
00:00:33,230 --> 00:00:41,460
This package right click on it new and then click on our class Java class and for the name of your a

11
00:00:41,470 --> 00:00:47,760
Java class just type in here iTunes iTunes stuff.

12
00:00:47,810 --> 00:00:51,170
So if you want to actually get to the iTunes store from the Internet.

13
00:00:51,470 --> 00:00:58,250
And I actually created this model class here inside this model package in order to actually hold those

14
00:00:58,280 --> 00:01:02,530
data that we actually receive from the Internet.

15
00:01:02,540 --> 00:01:05,270
So I just need to click on OK here.

16
00:01:05,270 --> 00:01:08,480
So this is our iTunes stuff class.

17
00:01:08,480 --> 00:01:11,400
So now I'm going actually putting some lines of code here.

18
00:01:11,600 --> 00:01:18,560
So now I'm going to pasting some lines of code here and then I'm going to explain to you what's going

19
00:01:18,560 --> 00:01:19,650
on here.

20
00:01:20,090 --> 00:01:24,590
So as you can see here these are the lines of code that actually paste that here.

21
00:01:24,650 --> 00:01:28,490
First of all in line number 10 I created a variable.

22
00:01:28,490 --> 00:01:31,950
I actually declared this variable which is of type in screen.

23
00:01:31,970 --> 00:01:32,780
Right.

24
00:01:32,780 --> 00:01:34,740
And the name of this variable is type.

25
00:01:34,910 --> 00:01:38,410
So I want to actually get the type as you can see here.

26
00:01:38,510 --> 00:01:43,030
For example this zero here this results zero results number zero.

27
00:01:43,280 --> 00:01:46,090
We have these rappers type right.

28
00:01:46,110 --> 00:01:47,680
I want to actually get this data.

29
00:01:47,740 --> 00:01:50,450
I want to actually give you this.

30
00:01:50,710 --> 00:01:54,450
Jason Diski and then get this attached data.

31
00:01:54,470 --> 00:01:55,500
Here is this value.

32
00:01:55,600 --> 00:02:00,240
OK I want to get it give this a key and get this value.

33
00:02:00,410 --> 00:02:03,950
So I just need to store this value in about here.

34
00:02:04,130 --> 00:02:10,790
So in my items of class I actually declared this variable which is of type strain.

35
00:02:10,970 --> 00:02:13,470
And the name of this variable is type.

36
00:02:13,520 --> 00:02:20,320
So as you can see here I'm going to actually store this value in Nevada valuable as you can see here

37
00:02:20,460 --> 00:02:21,160
track.

38
00:02:21,490 --> 00:02:22,080
OK.

39
00:02:22,310 --> 00:02:28,430
Inside this string valuable as you can see this is actually a string value as you can see the the values

40
00:02:28,430 --> 00:02:31,590
that are in color green as you can see here.

41
00:02:31,760 --> 00:02:37,790
As you can see these values are strong values and the values that are in red color are actually integer

42
00:02:37,790 --> 00:02:39,110
value as you can see here.

43
00:02:39,310 --> 00:02:39,870
OK.

44
00:02:39,980 --> 00:02:47,030
So these are values that are in green color as you can see these actually are actually string values.

45
00:02:47,030 --> 00:02:55,840
So this just try to value is actually a string value and I want to assign that value to this type string

46
00:02:55,860 --> 00:02:56,800
value but OK.

47
00:02:56,930 --> 00:03:03,920
And here in line 11 I create I actually declared another string Well as you can see and the name of

48
00:03:03,920 --> 00:03:05,770
this value bet is kind.

49
00:03:05,870 --> 00:03:06,460
OK.

50
00:03:06,740 --> 00:03:12,060
And in here as you can see in our web browser we have this kind here.

51
00:03:12,140 --> 00:03:14,120
And again its value is signed.

52
00:03:14,420 --> 00:03:15,200
As you can see here.

53
00:03:15,200 --> 00:03:18,060
So I want to actually get this value.

54
00:03:18,130 --> 00:03:22,440
So I need to actually use this key in order to get this value right.

55
00:03:22,490 --> 00:03:24,710
So we have the sun here.

56
00:03:24,860 --> 00:03:28,650
So again because this song value is actually of type string.

57
00:03:29,000 --> 00:03:34,760
I need to store that value to a string by the string variable and I can see this right here is of type

58
00:03:34,970 --> 00:03:39,120
string and in line 12 as you can see here.

59
00:03:39,470 --> 00:03:43,320
I actually declared and other valuable which is of type strange.

60
00:03:44,000 --> 00:03:47,560
And the name of this variable is artist name.

61
00:03:47,630 --> 00:03:53,060
So here in our web browser as you can see here for example for these are zero results and as you can

62
00:03:53,060 --> 00:03:56,700
see as you can see here the results zero as you can see.

63
00:03:56,960 --> 00:04:00,680
We have this artist name which is Michael Jackson.

64
00:04:00,680 --> 00:04:01,510
Right.

65
00:04:01,520 --> 00:04:08,280
So I want to actually get this artist name which is of type strange and storied in my valuable that

66
00:04:08,280 --> 00:04:12,480
I actually declared inside these items of a class.

67
00:04:12,480 --> 00:04:16,050
And as you can see here it is the name of this rally and is artist name.

68
00:04:16,100 --> 00:04:19,400
So you want to store this value with this artist name variable.

69
00:04:19,970 --> 00:04:26,690
And in 9:13 I actually declared another variable which is of types three again and the name of this

70
00:04:26,710 --> 00:04:28,570
variable is a collection name.

71
00:04:28,790 --> 00:04:33,140
And here as you can see we have this collection name as you can see here.

72
00:04:33,140 --> 00:04:40,160
So I want to actually store this string value to my valuable collection name as you can see here and

73
00:04:40,220 --> 00:04:47,450
in line 14 I actually declared another variable which is again of type streamed and the name of this

74
00:04:47,450 --> 00:04:49,280
variable is a track name.

75
00:04:49,460 --> 00:04:53,470
So here as you can see we have this track name here.

76
00:04:53,480 --> 00:05:00,160
So I want to actually store this value the value of these threatening to my storing valuable which I

77
00:05:00,170 --> 00:05:08,130
declared in line 14 and in line 15 as you can see here I declared this event which is of tapes three

78
00:05:08,130 --> 00:05:08,950
and again.

79
00:05:09,050 --> 00:05:12,150
And the name of this variable is Artist Review RL.

80
00:05:12,380 --> 00:05:19,470
So as you can see here we have this artist you are in here of a different quality as you can see here.

81
00:05:19,500 --> 00:05:24,670
ARTIST YOU are the artist you are 60 artists you are at this rally.

82
00:05:24,680 --> 00:05:25,380
OK.

83
00:05:25,820 --> 00:05:31,590
So as you can see here we have different value or else for actually looking at the image.

84
00:05:31,850 --> 00:05:34,610
And as you can see here these are the different quality of the image.

85
00:05:34,640 --> 00:05:35,290
OK.

86
00:05:35,630 --> 00:05:44,210
So for example if I actually select this model here and right click on it and then click on Koepp copy

87
00:05:44,900 --> 00:05:49,800
and let's actually and in my web browser my search bar here.

88
00:05:49,910 --> 00:05:56,090
I just need to search up paste that value here and that person entered here on my keyboard.

89
00:05:56,090 --> 00:05:57,960
So now we can see this image here.

90
00:05:58,090 --> 00:05:58,710
OK.

91
00:05:58,820 --> 00:06:05,290
So by using that you tell that specific RL You can actually download the image in our application.

92
00:06:05,420 --> 00:06:08,250
So that's why I actually create it.

93
00:06:08,270 --> 00:06:14,600
I actually put this image here in my XML file in order to download the image from the Internet and put

94
00:06:14,600 --> 00:06:15,740
it here.

95
00:06:15,740 --> 00:06:16,870
So he has that image.

96
00:06:17,050 --> 00:06:19,890
This is the image that we want to actually download from the Internet.

97
00:06:20,090 --> 00:06:22,750
So I just need to click on this patch button here.

98
00:06:23,000 --> 00:06:27,740
So here as you can see this is against our data and data and I need to open the results here.

99
00:06:27,890 --> 00:06:30,220
And these results are zero as you can see here.

100
00:06:30,380 --> 00:06:35,420
So if we have these artist you or else here artist view you huddle in order to see the image in different

101
00:06:35,420 --> 00:06:36,910
qualities.

102
00:06:36,950 --> 00:06:41,570
So now let's actually go back to our Android studio.

103
00:06:41,570 --> 00:06:47,340
So as you can see here inside this iTunes stuff plus we have these valuables right.

104
00:06:47,390 --> 00:06:52,810
So now of need to actually declare these variables as private valuables.

105
00:06:52,820 --> 00:06:54,040
This is really important.

106
00:06:54,040 --> 00:07:01,200
Private's OK always declare your instance variables as private variables.

107
00:07:01,580 --> 00:07:02,190
OK.

108
00:07:02,480 --> 00:07:10,400
So and then in order to actually set or get these values we need to actually provide setters or getters

109
00:07:10,850 --> 00:07:13,310
for these instance variables.

110
00:07:13,610 --> 00:07:14,990
OK.

111
00:07:14,990 --> 00:07:21,800
So these are the private instance variables and now I can actually provide setters and getters for these

112
00:07:22,340 --> 00:07:23,630
instance variables.

113
00:07:23,630 --> 00:07:29,240
So in order to actually generate the instance variables automatically I just need to Right-Click inside

114
00:07:29,240 --> 00:07:36,230
these items stuff class and then click on generate here and as you can see this is generate and then

115
00:07:36,530 --> 00:07:44,180
click on get here and sit here and just select all of these instance variables here as you can see and

116
00:07:44,180 --> 00:07:45,450
then click on OK.

117
00:07:45,950 --> 00:07:52,780
So now the ID actually automatically generated these setters and getters for us.

118
00:07:52,880 --> 00:08:00,140
So as you can see here the first one is get her get type for this type instance malleable as you can

119
00:08:00,140 --> 00:08:05,090
see the first the second one is some type as you can see here we are actually setting the type of this

120
00:08:05,090 --> 00:08:12,680
instance variable to get kind said can't get artist name sit artist name get collection name set collection

121
00:08:12,680 --> 00:08:13,110
name.

122
00:08:13,220 --> 00:08:19,770
So remember that this is very important that you are to declare your get Haras or setter's as public.

123
00:08:19,940 --> 00:08:20,240
OK.

124
00:08:20,240 --> 00:08:26,160
These are these are the public Misfit's and set collection name get our name as you can see here.

125
00:08:26,560 --> 00:08:32,170
Said good collection name set collection name get thrax name attract name as you can see here.

126
00:08:32,270 --> 00:08:35,110
Get artist to view you all set artist you on it.

127
00:08:35,130 --> 00:08:40,620
OK so now let's actually go to our project structure here.

128
00:08:41,000 --> 00:08:47,450
And then inside our job folder and inside this package that as you can see it is a model is inside this

129
00:08:47,450 --> 00:08:48,440
package right.

130
00:08:48,440 --> 00:08:53,720
So let's actually click on this package here and now let's actually create a class.

131
00:08:53,720 --> 00:08:59,450
Another class another is double class just right click this package new dhaba class.

132
00:08:59,450 --> 00:09:07,820
So the name of this class is going to be Jasen I-tunes parser and then click on OK.

133
00:09:08,090 --> 00:09:12,400
So now as you can see here our Jason Idahoans part of the class is actually created.

134
00:09:12,530 --> 00:09:19,670
So now so now I'm going to paste in some lines of code here and then I'm going to explain to you what's

135
00:09:19,670 --> 00:09:21,500
going on here.

136
00:09:21,530 --> 00:09:26,780
So as you can see here these are the lines of code that are actually pasted here and here and as you

137
00:09:26,780 --> 00:09:31,050
can see in lines a 12 flute 15 I have this method.

138
00:09:31,280 --> 00:09:35,120
And as you see it the axis modifier of this method is private.

139
00:09:35,120 --> 00:09:37,090
This is actually static.

140
00:09:37,550 --> 00:09:40,740
And the return type of this method is strange.

141
00:09:40,760 --> 00:09:41,430
OK.

142
00:09:41,690 --> 00:09:44,600
And the name of this method is get strange.

143
00:09:44,930 --> 00:09:51,020
OK so as you can see here in our web browser here as you can see if you want to actually get these string

144
00:09:51,020 --> 00:09:56,820
values like this throuch song Michael Jackson or other values that are actually strange that they're

145
00:09:56,840 --> 00:09:58,220
data types are actually string.

146
00:09:58,220 --> 00:09:58,700
OK.

147
00:09:59,000 --> 00:10:04,890
As you can see here these values that are actually in a green color or actually string values.

148
00:10:04,910 --> 00:10:09,250
So here if I want to get those thing values I need a method here.

149
00:10:09,320 --> 00:10:11,070
So this is that if it gets strange.

150
00:10:11,330 --> 00:10:13,760
And this left accepts two arguments.

151
00:10:13,770 --> 00:10:14,250
OK.

152
00:10:14,480 --> 00:10:20,790
So the first argument is actually as you can see here is of type is three and its name is pagen name.

153
00:10:20,870 --> 00:10:26,840
So as you can see here in our web browser these values for example this wrapper type is actually the

154
00:10:27,230 --> 00:10:29,000
tag meaning this kind.

155
00:10:29,000 --> 00:10:32,620
Here as you can see is the tag name artist ID tag name.

156
00:10:32,630 --> 00:10:33,060
OK.

157
00:10:33,170 --> 00:10:39,290
And these values after the colon actually the values that are related to these Paganini's as you can

158
00:10:39,290 --> 00:10:40,130
see here.

159
00:10:40,490 --> 00:10:42,390
So we have this tag name.

160
00:10:42,520 --> 00:10:46,320
Ok these values that are in black color as you can see here.

161
00:10:46,700 --> 00:10:53,090
And we have this Jasen object as you can see here as the arguments of this method.

162
00:10:53,360 --> 00:10:58,040
As you can see here and this Biffen actually fros Jaison exception.

163
00:10:58,210 --> 00:10:58,750
OK.

164
00:10:59,120 --> 00:11:05,150
We may actually pass that ran tag name to this Meffert and it's going to actually fail and it's going

165
00:11:05,160 --> 00:11:09,930
to actually fro least an exception and we need to actually handle that exception.

166
00:11:10,000 --> 00:11:10,400
OK.

167
00:11:10,430 --> 00:11:14,690
So that's why we put this fros just an exception here.

168
00:11:14,690 --> 00:11:18,780
And inside this method we are just returning Jaison object.

169
00:11:18,800 --> 00:11:24,460
So the moment that I told you that inside the curly braces as you can see here it says results 0.

170
00:11:24,470 --> 00:11:30,800
And as you can see here it says inside the curly braces we have this number for 31 and this means that

171
00:11:30,810 --> 00:11:38,040
the this object as you can see here I told you that curly braces here for example is starting curly

172
00:11:38,040 --> 00:11:42,090
brace and this ending calibers at the end is going to be adjacent object.

173
00:11:42,110 --> 00:11:42,730
OK.

174
00:11:42,980 --> 00:11:47,810
So and here as you can see it says inside the curly braces we have this number for anti-violent and

175
00:11:47,810 --> 00:11:53,930
it and this means that we have 31 values here in say these adjacent object.

176
00:11:54,020 --> 00:11:56,680
OK this results zero adjacent object.

177
00:11:56,780 --> 00:12:02,230
So now let me actually show you these adjacent values in an other way.

178
00:12:02,330 --> 00:12:08,540
So in your web browser just open another tab and just put this you are in your search bar.

179
00:12:08,620 --> 00:12:12,390
Jason Lane dot com and you will be guided to this page.

