‫After we have created the model package, we are going to create another package called util and this
‫will serve as utility package.
‫So I create three classes inside it, the first one called Utils.
‫This will contain that information used in the calls.
‫So public static string API underscore key equals to your key here.
‫So in order to get the API key, we lock in onto that the MVP at our website and we select the API here
‫and we scroll down to that API key here.
‫Copy it.
‫And pasted it here.
‫This the first one?
‫Second one, you need that base.
‫You are out.
‫So as I told you in the previous videos that there is a base, your L and the end point, you are out
‫the base, you are L.
‫It's common between all the other calls.
‫It's here.
‫At the API.
‫If you scroll to here right now, it's here.
‫Slash three.
‫Copy and paste.
‫This is the base.
‫You are out.
‫The second thing that I'm going to make is the movie comparator,
‫this movie comparator class it compares for movie object.
‫To avoid that w itself it extends from there your tail dot item called back and we pass them moving
‫out less entertainment part of the class here and out plus enter to implement the methods.
‫These are the two methods.
‫Here are items the same.
‫So we return the old item.
‫The get id dot equals get id equals two equals to new item to get I.D..
‫Is it equal to this?
‫And in the same way here, all items are kept id equal equals to new item.
‫Don't get it.
‫This is the movie comparator.
‫Another utility class that I am going to use.
‫It's called grade space.
‫This will extends them.
‫Item decorator.
‫So recycler view dot item decoration.
‫I will create three attributes span count
‫private int space in
‫private boolean include x alt plus enter team to create a constructor.
‫And this is.
‫That great space constructor.
‫Now I will create and I will override get item offset class method inside this class grid space and
‫I will paste the code directive because it's not related to Beijing Library.
‫So let's concentrate and focus on that code that we have made this app for it, which is the paging
‫library and dagger held and so on.
‫So this it checks if include the edge boolean or variable is true.
‫If it is not true, then make this spacing so you can download the source codes from the resources folder
‫on Udemy.
‫Of course, till now we have created the util package.