Interface MemberListView
-
- All Superinterfaces:
EndlessListView,LceView,ListView,MvpLceView,MvpView,RefreshableView
- All Known Implementing Classes:
MembersListFragment
public interface MemberListView extends EndlessListView
ExtendsEndlessListViewThe view class for the members list Implement this on your fragment or activity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanappendMemberList(java.util.List<Member> attendees, int totalEntries, java.lang.String memberId, int page)The view get notified in this method when the call to the Members list API (with pagination) gets a successful responsevoidonConnectPermissionReceived(Permissions permissions, SummaryMember summaryMember)The view gets notified in this method if the call to the summary - permissions api was successfulvoidshowFreshMemberList(int totalEntries)The view gets notified in this method if the refresh call to the Members API gets a successful responsevoidshowMemberList(int totalEntries)The view gets notified in this method when the call to the Members list API gets a successful response-
Methods inherited from interface com.cheetahdigital.uikit.widget.list.EndlessListView
onFinishLoadMore, onLoadMoreFailed
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.LceView
onLoadFailed, onLoadSuccess, setErrorViewClickListener
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.lce.MvpLceView
showContent, showError, showLoading
-
Methods inherited from interface com.cheetahdigital.uikit.architecture.refreshable.RefreshableView
onFinishRefresh, onRefreshFailed
-
-
-
-
Method Detail
-
showMemberList
void showMemberList(int totalEntries)
The view gets notified in this method when the call to the Members list API gets a successful response- Parameters:
totalEntries- total number of entries regardless of pagination
-
appendMemberList
boolean appendMemberList(java.util.List<Member> attendees, int totalEntries, java.lang.String memberId, int page)
The view get notified in this method when the call to the Members list API (with pagination) gets a successful response- Parameters:
attendees- the list of memberstotalEntries- total number of entries regardless of paginationmemberId- the id of the current logged in memberpage- the current page- Returns:
- true for a success flag, else false
-
showFreshMemberList
void showFreshMemberList(int totalEntries)
The view gets notified in this method if the refresh call to the Members API gets a successful response- Parameters:
totalEntries- total number of entries regardless of pagination
-
onConnectPermissionReceived
void onConnectPermissionReceived(Permissions permissions, SummaryMember summaryMember)
The view gets notified in this method if the call to the summary - permissions api was successful- Parameters:
permissions- permissions objectsummaryMember- current logged in member
-
-