C# 클래스 MALClient.XShared.ViewModels.Main.AnimeListViewModel

상속: ViewModelBase
파일 보기 프로젝트 열기: Mordonus/MALClient

공개 프로퍼티들

프로퍼티 타입 설명
CanAddScrollHandler bool
CurrentSeason MALClient.Models.Models.Anime.AnimeSeason

공개 메소드들

메소드 설명
AddAnimeEntry ( AnimeItemAbstraction parentAbstraction ) : void
AnimeListViewModel ( ) : System
FetchData ( bool force = false, AnimeListWorkModes modeOverride = null ) : System.Threading.Tasks.Task
GetDesiredStatus ( ) : AnimeStatus
IndefiniteScrollViewerOnViewChanging ( double finalVerticalOffset ) : void

Event handler for event fired by one of two scroll viewrs in List and Grid view mode. It loads more items as user is scroling further.

Init ( AnimeListPageNavigationArgs args ) : void
LogIn ( ) : void
LogOut ( ) : void
OnNavigatedFrom ( ) : void
RefreshList ( bool searchSource = false, bool fakeDelay = false ) : void

Main refresh function

RemoveAnimeEntry ( AnimeItemAbstraction parentAbstraction ) : void
ScrollToTop ( ) : void

Scrolls to top of current indefinite scroll viewer.

SetSortOrder ( SortOptions option ) : void

Sets provided sort mode or takes one from settings

TryRetrieveAuthenticatedAnimeItem ( int id, bool anime = true, bool forceMal = false ) : Task

Method used by details page to associate itself with authenticated item in order to allow for list updates.

UpdateGridItemWidth ( double>.Tuple args ) : void

비공개 메소드들

메소드 설명
AddScrollHandler ( ) : void

Adds handler to scroll viewer provided by view.

FetchSeasonalData ( bool force = false, int page ) : System.Threading.Tasks.Task
GetGridItemsToLoad ( ) : int
LoadAllItemsDetails ( ) : void
LoadMore ( ) : void
OnOnSearchDelayedQuerySubmitted ( string query ) : void
ReloadList ( ) : void

Forces currently loaded page to download new data.

SetDefaults ( int statusOverride = null ) : void
SetDesiredStatus ( int value ) : void
SetDisplayMode ( AnimeStatus val ) : void
UpdatePageSetup ( ) : void

This method is fully responsible for preparing the view. Depending on display mode it distributes items to right containers.

UpdateUpperStatus ( ) : void

메소드 상세

AddAnimeEntry() 공개 메소드

public AddAnimeEntry ( AnimeItemAbstraction parentAbstraction ) : void
parentAbstraction AnimeItemAbstraction
리턴 void

AnimeListViewModel() 공개 메소드

public AnimeListViewModel ( ) : System
리턴 System

FetchData() 공개 메소드

public FetchData ( bool force = false, AnimeListWorkModes modeOverride = null ) : System.Threading.Tasks.Task
force bool
modeOverride AnimeListWorkModes
리턴 System.Threading.Tasks.Task

GetDesiredStatus() 공개 메소드

public GetDesiredStatus ( ) : AnimeStatus
리턴 AnimeStatus

IndefiniteScrollViewerOnViewChanging() 공개 메소드

Event handler for event fired by one of two scroll viewrs in List and Grid view mode. It loads more items as user is scroling further.
public IndefiniteScrollViewerOnViewChanging ( double finalVerticalOffset ) : void
finalVerticalOffset double
리턴 void

Init() 공개 메소드

public Init ( AnimeListPageNavigationArgs args ) : void
args MALClient.XShared.NavArgs.AnimeListPageNavigationArgs
리턴 void

LogIn() 공개 메소드

public LogIn ( ) : void
리턴 void

LogOut() 공개 메소드

public LogOut ( ) : void
리턴 void

OnNavigatedFrom() 공개 메소드

public OnNavigatedFrom ( ) : void
리턴 void

RefreshList() 공개 메소드

Main refresh function
public RefreshList ( bool searchSource = false, bool fakeDelay = false ) : void
searchSource bool /// If it's from search -> check if there's anuthing to update before refreshing. ///
fakeDelay bool /// To make app more responsive micro delays are good to trigger spinners and such. ///
리턴 void

RemoveAnimeEntry() 공개 메소드

public RemoveAnimeEntry ( AnimeItemAbstraction parentAbstraction ) : void
parentAbstraction AnimeItemAbstraction
리턴 void

ScrollToTop() 공개 메소드

Scrolls to top of current indefinite scroll viewer.
public ScrollToTop ( ) : void
리턴 void

SetSortOrder() 공개 메소드

Sets provided sort mode or takes one from settings
public SetSortOrder ( SortOptions option ) : void
option SortOptions
리턴 void

TryRetrieveAuthenticatedAnimeItem() 공개 메소드

Method used by details page to associate itself with authenticated item in order to allow for list updates.
public TryRetrieveAuthenticatedAnimeItem ( int id, bool anime = true, bool forceMal = false ) : Task
id int
anime bool
forceMal bool
리턴 Task

UpdateGridItemWidth() 공개 메소드

public UpdateGridItemWidth ( double>.Tuple args ) : void
args double>.Tuple
리턴 void

프로퍼티 상세

CanAddScrollHandler 공개적으로 프로퍼티

public bool CanAddScrollHandler
리턴 bool

CurrentSeason 공개적으로 프로퍼티

public AnimeSeason,MALClient.Models.Models.Anime CurrentSeason
리턴 MALClient.Models.Models.Anime.AnimeSeason