Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. private void FilmNewRelease(final Context context) {
  3. SimpleDateFormat date = new SimpleDateFormat("yyyy-MM-dd", Locale.getDefault());
  4. String Hariini = date.format(new Date());
  5.  
  6.  
  7. mApiInterface = ApiClient.getClient().create(ApiIMoviIenterface.class);
  8.  
  9. Call<GetMovie> movieCall = mApiInterface.getMovieRelease("67846e60a399714479eb16de059e313f", Hariini,Hariini);
  10. movieCall.enqueue(new Callback<GetMovie>() {
  11. @Override
  12. public void onResponse(Call<GetMovie> call, Response<GetMovie>
  13. response) {
  14. movieList = response.body().getListDataMovie();
  15. title = "New Movie";
  16. message = "";
  17. for (Movie obj :movieList) {
  18. message = obj.getNama();
  19. }
  20. showAlarmNotification(context,title,message);
  21.  
  22. }
  23.  
  24. @Override
  25. public void onFailure(Call<GetMovie> call, Throwable t) {
  26. Log.e("Retrofit Get", t.toString());
  27. }
  28.  
  29.  
  30. });
  31.  
  32.  
  33.  
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement