use of in.ac.iitb.gymkhana.iitbapp.api.model.AppNotification in project IITB-App by wncc.
the class NotificationsFragment method showNotifications.
private void showNotifications(NotificationsResponse notificationsResponse) {
List<AppNotification> notifications = notificationsResponse.getNotifications();
NotificationsAdapter notificationsAdapter = new NotificationsAdapter(notifications, new ItemClickListener() {
@Override
public void onItemClick(View v, int position) {
// TODO: What to do?
}
});
notificationsRecyclerView = (RecyclerView) getActivity().findViewById(R.id.notifications_recycler_view);
notificationsRecyclerView.setAdapter(notificationsAdapter);
notificationsRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
}
use of in.ac.iitb.gymkhana.iitbapp.api.model.AppNotification in project IITB-App by wncc.
the class NotificationsAdapter method onBindViewHolder.
@Override
public void onBindViewHolder(Viewholder viewholder, int i) {
AppNotification appNotification = notifications.get(i);
viewholder.notificationTitle.setText(appNotification.getNotificationName());
}
Aggregations