public LiveRecommendItem(string title, string sort) { Title = title; SortType = sort; recommendAPI = new Api.Live.LiveRecommendAPI(); RefreshCommand = new RelayCommand(Refresh); LoadMoreCommand = new RelayCommand(LoadMore); Items = new ObservableCollection <LiveRecommendItemModel>(); }
public LiveRecommendItemSource(List <LiveRecommendItemModel> items, string sort) { recommendAPI = new Api.Live.LiveRecommendAPI(); sort_type = sort; recommends = items; }