Class GiftcardHistoryAdapter
- java.lang.Object
 - 
- androidx.recyclerview.widget.RecyclerView.Adapter<VH>
 - 
- com.cheetahdigital.uikit.widget.list.ListAdapter<D,VH>
 - 
- com.cheetahdigital.uikit.widget.list.EndlessListAdapter<Transaction,TransactionViewHolder>
 - 
- com.cheetahdigital.giftcards.ui.history.GiftcardHistoryAdapter
 
 
 
 
 
- 
public class GiftcardHistoryAdapter extends com.cheetahdigital.uikit.widget.list.EndlessListAdapter<Transaction,TransactionViewHolder>
The Adapter to be used forGiftcardHistoryActivity 
- 
- 
Constructor Summary
Constructors Constructor Description GiftcardHistoryAdapter(java.util.List<Transaction> dataList)Constructor of the Adapter 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindNormalViewHolder(TransactionViewHolder holder, int position)Abstract method to bind the normal view holder.protected TransactionViewHoldercreateNormalViewHolder(android.view.ViewGroup parent, int viewType)Abstract method to create normal view holder.- 
Methods inherited from class com.cheetahdigital.uikit.widget.list.EndlessListAdapter
getItemCount, getItemViewType, getReload, isAppending, onBindViewHolder, onCreateViewHolder, setIsAppending, setReload 
- 
Methods inherited from class com.cheetahdigital.uikit.widget.list.ListAdapter
addAll, addItem, addItem, clear, getDataList, getItemAt, getPlaceHolderResource, insertItems, isListEmpty, removeItem, replaceItemAt, setCustomEmptyMessageResource, setPlaceHolderResource, sort 
- 
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
GiftcardHistoryAdapter
public GiftcardHistoryAdapter(@NonNull java.util.List<Transaction> dataList)Constructor of the Adapter- Parameters:
 dataList- list ofTransaction
 
 - 
 
- 
Method Detail
- 
createNormalViewHolder
protected TransactionViewHolder createNormalViewHolder(android.view.ViewGroup parent, int viewType)
Description copied from class:com.cheetahdigital.uikit.widget.list.ListAdapterAbstract method to create normal view holder.- Specified by:
 createNormalViewHolderin classcom.cheetahdigital.uikit.widget.list.ListAdapter<Transaction,TransactionViewHolder>- Parameters:
 parent- used to get resourceviewType- type of view- Returns:
 - view holder for non special items
 
 
- 
bindNormalViewHolder
protected void bindNormalViewHolder(TransactionViewHolder holder, int position)
Description copied from class:com.cheetahdigital.uikit.widget.list.ListAdapterAbstract method to bind the normal view holder.- Specified by:
 bindNormalViewHolderin classcom.cheetahdigital.uikit.widget.list.ListAdapter<Transaction,TransactionViewHolder>- Parameters:
 holder- view holder to vindSposition- index of the item
 
 - 
 
 -