Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (35 sloc) 778 Bytes
//
// ANResponse.m
// Appdate
//
// Created by Brent Royal-Gordon on 9/2/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import "ANResponse.h"
@interface ANResponse ()
@property (nonatomic,readonly) NSUInteger code;
@property (nonatomic,readonly) NSUInteger minID;
@property (nonatomic,readonly) NSUInteger maxID;
@property (nonatomic,readonly) BOOL more;
@end
@implementation ANResponse
@dynamic code;
@dynamic minID;
@dynamic maxID;
@dynamic more;
@dynamic errorMessage;
@dynamic marker;
@dynamic markerRepresentation;
- (NSUInteger)statusCode {
return self.code;
}
- (ANResourceID)earliestID {
return self.minID;
}
- (ANResourceID)latestID {
return self.maxID;
}
- (BOOL)hasMore {
return self.more;
}
@end