public PhotoCollectionViewModel(string collectionName) { this.Title = collectionName; this.Photos = new ObservableCollection<Photo>(); this.datasourceUrl = string.Format(this.datasourceUrl, collectionName) + this.additionalParameters; this.incrementalLoader = new IncrementalLoader<PhotoCollection>(this.datasourceUrl); }
public PhotoCollectionViewModel(string collectionName) { this.Title = collectionName; this.Photos = new ObservableCollection <Photo>(); this.datasourceUrl = string.Format(this.datasourceUrl, collectionName) + this.additionalParameters; this.incrementalLoader = new IncrementalLoader <PhotoCollection>(this.datasourceUrl); }
private async Task <LoadMoreItemsResult> InternalLoadMoreItemsAsync(uint count) { if (IncrementalLoader != null && IncrementalLoader.HasMoreItems) { await IncrementalLoader.LoadMoreItemsAsync(count); } return(default(LoadMoreItemsResult)); }
// ******************************************************************** public static void RegisterLoader(IncrementalLoader _loader, bool _register = true) { if (instance == null) { return; } if (_register) { // Debug.Log("Adding IncrementalLoader: "+_loader); instance.m_loaders.Add(_loader); } else { // Debug.Log("Removing IncrementalLoader: "+_loader); instance.m_loaders.Remove(_loader); } }