//
//  BitbucketAPIPagination.h
//  BitbucketAPI
//
//  Created by Alexander Rinass on 29/05/15.
//  Copyright (c) 2015 Fournova GmbH. All rights reserved.
//

#import <FNFoundation/FNFoundation.h>

@interface BitbucketAPIPagination : FNRESTAPIModel
@property (nonatomic, readonly) NSURL *nextPageURL;
@property (nonatomic, readonly) NSURL *previousPageURL;
@property (nonatomic, readonly) NSUInteger nextPage;
@property (nonatomic, readonly) NSUInteger previousPage;
@property (nonatomic, readonly) NSUInteger currentPage;
@property (nonatomic, readonly) NSUInteger numberOfTotalPages;
@property (nonatomic, readonly) NSUInteger numberOfItemsPerPage;

+ (instancetype)paginationWithJSONObject:(NSDictionary *)JSONObject;
- (BOOL)isEqualToBitbucketAPIPagination:(BitbucketAPIPagination *)object;

@end
