Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void FilmNewRelease(final Context context) {
- SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
- String Hariini = date.format(new Date());
- mApiInterface = ApiClient.getClient().create(ApiIMoviIenterface.class);
- Call<GetMovie> movieCall = mApiInterface.getMovieRelease("67846e60a399714479eb16de059e313f", Hariini,Hariini);
- movieCall.enqueue(new Callback<GetMovie>() {
- @Override
- public void onResponse(Call<GetMovie> call, Response<GetMovie>
- response) {
- movieList = response.body().getListDataMovie();
- title = "New Movie";
- message = "";
- for (Movie obj :movieList) {
- message = obj.getNama();
- }
- showAlarmNotification(context,title,message);
- }
- @Override
- public void onFailure(Call<GetMovie> call, Throwable t) {
- Log.e("Retrofit Get", t.toString());
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement