blob: f004a79c5f80de94471eeac3ae36fa422468dfe0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//
// CFilteringJSONSerializer.h
// CouchNotes
//
// Created by Jonathan Wight on 06/20/10.
// Copyright 2010 toxicsoftware.com. All rights reserved.
//
#import "CJSONSerializer.h"
typedef NSString *(^JSONConversionTest)(id inObject);
typedef id (^JSONConversionConverter)(id inObject); // TODO replace with value transformers.
@interface CFilteringJSONSerializer : CJSONSerializer {
NSSet *tests;
NSDictionary *convertersByName;
}
@property (readwrite, nonatomic, retain) NSSet *tests;
@property (readwrite, nonatomic, retain) NSDictionary *convertersByName;
- (void)addTest:(JSONConversionTest)inTest;
- (void)addConverter:(JSONConversionConverter)inConverter forName:(NSString *)inName;
@end
|