package Ġcom . hard soft studio . android x . movies . model . api Ċ Ċ import Ġandroidx . lifecycle . LiveData Ċ import Ġcom . hard soft studio . android x . movies . model . API _ VERSION Ċ import Ġretrofit 2 . http . GET Ċ import Ġretrofit 2 . http . Query Ċ Ċ interface ĠThe Movie DB Api Ġ{ ĊĊĠĠĠ Ġ//@ GET ("/ $ API _ VERSION / discover / movie ? sort _ by = primary _ release _ date . desc ") ĊĠĠĠ Ġ@ GET ("/ $ API _ VERSION / movie / now _ playing ") ĊĠĠĠ Ġfun Ġget New Movies (): ĠLive Data < ApiResponse < Discover Response >> ĊĊĠĠĠ Ġ@ GET ("/ $ API _ VERSION / discover / movie ") ĊĠĠĠ Ġfun Ġget Movies By Year (@ Query (" primary _ release _ year ") Ġyear : ĠInt ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ: ĠLive Data < ApiResponse < Discover Response >> Ċ } Ċ