public MoreViewModel(IBaconProvider baconProvider, IEnumerable<string> ids, string targetName, string subreddit, Action<IEnumerable<string>, List<ViewModelBase>, ViewModelBase, ViewModelBase> loadMore, CommentViewModel parent, int depth, bool oddNesting) { _loadMore = loadMore; _parent = parent; _ids = ids; _targetName = targetName; _subreddit = subreddit; Depth = depth; Count = _ids.Count(); OddNesting = oddNesting; //TODO use the targetname to determine the kind for now its always going to be comments but //that might change in the future Kind = "comment"; _triggerLoad = new RelayCommand(TriggerLoadImpl); }
public MoreViewModel(IBaconProvider baconProvider, IEnumerable <string> ids, string targetName, string subreddit, Action <IEnumerable <string>, ObservableCollection <ViewModelBase>, ViewModelBase, ViewModelBase> loadMore, CommentViewModel parent, int depth) { _loadMore = loadMore; _parent = parent; _ids = ids; _targetName = targetName; _subreddit = subreddit; Depth = depth; Count = _ids.Count(); //TODO use the targetname to determine the kind for now its always going to be comments but //that might change in the future Kind = "comment"; _triggerLoad = new RelayCommand(TriggerLoadImpl); }