Ejemplo n.º 1
0
 public StudioEdgeRecyclerAdapter(BaseAniDroidActivity context,
                                  IAsyncEnumerable <OneOf <IPagedData <StudioEdge>, IAniListError> > enumerable, RecyclerCardType cardType,
                                  Func <StudioEdge, StudioEdgeViewModel> createViewModelFunc) : base(context, enumerable, cardType,
                                                                                                     createViewModelFunc)
 {
     ClickAction = (viewModel, position) => StudioActivity.StartActivity(Context, viewModel.Model?.Node?.Id ?? 0,
                                                                         BaseAniDroidActivity.ObjectBrowseRequestCode);
 }
Ejemplo n.º 2
0
 public StudioRecyclerAdapter(BaseAniDroidActivity context,
                              IAsyncEnumerable <OneOf <IPagedData <Studio>, IAniListError> > enumerable,
                              Func <Studio, StudioViewModel> createViewModelFunc) : base(context, enumerable, RecyclerCardType.Horizontal,
                                                                                         createViewModelFunc)
 {
     ClickAction =
         (viewModel, position) => StudioActivity.StartActivity(Context, viewModel.Model.Id);
 }
Ejemplo n.º 3
0
 public StudioEdgeRecyclerAdapter(BaseAniDroidActivity context, List <StudioEdgeViewModel> items) : base(context,
                                                                                                         items, RecyclerCardType.Horizontal)
 {
     ClickAction = (viewModel, position) => StudioActivity.StartActivity(Context, viewModel.Model?.Node?.Id ?? 0,
                                                                         BaseAniDroidActivity.ObjectBrowseRequestCode);
 }