1 00:00:00,340 --> 00:00:03,201 Back here in Android Studio, let's create a new class in our project. 2 00:00:06,137 --> 00:00:08,713 New Java class, we'll call it current weather. 3 00:00:08,713 --> 00:00:14,716 And hit OK. 4 00:00:18,543 --> 00:00:21,840 Cool, next, let's define our variables. 5 00:00:23,590 --> 00:00:24,760 So we need a private string. 6 00:00:27,849 --> 00:00:29,450 We'll need one for the location label. 7 00:00:31,460 --> 00:00:35,740 We'll need a private string for our icon. 8 00:00:39,199 --> 00:00:42,040 A private long for our time. 9 00:00:45,171 --> 00:00:47,550 The temperature is in double value. 10 00:00:55,383 --> 00:00:56,700 As is humidity. 11 00:01:02,125 --> 00:01:06,679 And for precipitation we'll do a precipChance. 12 00:01:09,453 --> 00:01:10,486 And we'll need a string for our summary. 13 00:01:14,610 --> 00:01:17,800 Now we just need to type out all of our getters and setters. 14 00:01:17,800 --> 00:01:20,590 Well, okay, let's not type them all out. 15 00:01:20,590 --> 00:01:25,210 We can use Android Studio's auto generation feature to accomplish this. 16 00:01:25,210 --> 00:01:29,356 If we go to Code, Generate, Getter and Setter, 17 00:01:29,356 --> 00:01:33,214 we can select all the variables, and hit OK. 18 00:01:33,214 --> 00:01:36,470 And there they are. 19 00:01:36,470 --> 00:01:37,830 Very nice. 20 00:01:37,830 --> 00:01:40,290 This is a great start for our data model. 21 00:01:40,290 --> 00:01:43,530 We'll be making a few tweaks as we continue on with the project. 22 00:01:43,530 --> 00:01:47,360 For now, though, let's jump back and look at this data format called JSON.