protected void successCallback(PhotoResult result, object pageNumber, string methodName) { CurrentPhotoSet = result; storePhotosInCache(CurrentPhotoSet, (int)pageNumber); if (DoPostLoadPhotoSetActions != null) DoPostLoadPhotoSetActions(this, EventArgs.Empty); }
protected abstract bool storePhotosInCache(PhotoResult photoSet, int pageNumber);
protected override bool storePhotosInCache(PhotoResult photoSet, int pageNumber) { if (this.key > 0) { if (photoSets[key] == null) photoSets[key] = new Array(); ((Array)photoSets[key])[pageNumber] = photoSet; return true; } return false; }
protected override bool storePhotosInCache(PhotoResult photoSet, int pageNumber) { videos[pageNumber] = photoSet; return true; }
protected override bool storePhotosInCache(PhotoResult photos, int pageNumber) { if (galleryK > 0) { if (photoSetsByGalleryK[galleryK] == null) photoSetsByGalleryK[galleryK] = new Array(); ((Array)photoSetsByGalleryK[galleryK])[pageNumber] = photos; return true; } if (eventK > 0) { if (photoSetsByEventK[eventK] == null) photoSetsByEventK[eventK] = new Array(); ((Array)photoSetsByEventK[eventK])[pageNumber] = photos; return true; } return false; }