//
//  ApexRecords.m
//  Apex Mobile
//
//  Created by Ray on 14-3-6.
//  Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
//

#import "PageData.h"

@implementation PageData
-(PageData*) initWithRecords: (NSDictionary*)records
{
    self.records = records;
    return self;
}
-(long) get_count
{
    return [self.records allKeys].count;
}
-(NSString*) get_id : (long) row
{
//    NSDictionary * temp =[self.records valueForKey:[NSString stringWithFormat:@"record%d",row]];
    return [[self.records valueForKey:[NSString stringWithFormat:@"record%ld",row]] valueForKey:@"_id"];
}
@end
