mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-15 16:36:36 +00:00
35 lines
1.1 KiB
Objective-C
35 lines
1.1 KiB
Objective-C
//
|
|
// PhotoFeedModel.h
|
|
// ASDKgram
|
|
//
|
|
// Created by Hannah Troisi on 2/28/16.
|
|
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
|
//
|
|
|
|
#import "PhotoModel.h"
|
|
|
|
typedef NS_ENUM(NSInteger, PhotoFeedModelType) {
|
|
PhotoFeedModelTypePopular,
|
|
PhotoFeedModelTypeLocation,
|
|
PhotoFeedModelTypeUserPhotos
|
|
};
|
|
|
|
@interface PhotoFeedModel : NSObject
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
- (instancetype)initWithPhotoFeedModelType:(PhotoFeedModelType)type imageSize:(CGSize)size NS_DESIGNATED_INITIALIZER;
|
|
|
|
- (NSUInteger)totalNumberOfPhotos;
|
|
- (NSUInteger)numberOfItemsInFeed;
|
|
- (PhotoModel *)objectAtIndex:(NSUInteger)index;
|
|
- (NSInteger)indexOfPhotoModel:(PhotoModel *)photoModel;
|
|
|
|
- (void)updatePhotoFeedModelTypeLocationCoordinates:(CLLocationCoordinate2D)coordinate radiusInMiles:(NSUInteger)radius;
|
|
- (void)updatePhotoFeedModelTypeUserId:(NSUInteger)userID;
|
|
|
|
- (void)clearFeed;
|
|
- (void)requestPageWithCompletionBlock:(void (^)(NSArray *))block numResultsToReturn:(NSUInteger)numResults;
|
|
- (void)refreshFeedWithCompletionBlock:(void (^)(NSArray *))block numResultsToReturn:(NSUInteger)numResults;
|
|
|
|
@end
|