Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (26 sloc) 1016 Bytes
//
// ANRepresentation.h
// AppNetKit
//
// Created by Brent Royal-Gordon on 8/18/12.
// Copyright (c) 2012 Architechies. See README.md for licensing information.
//
#import <Foundation/Foundation.h>
#import "ISO8601DateFormatter.h"
// Sent when the resource is updated; the resource is the object, and there is no userInfo.
extern NSString * const ANResourceDidUpdateNotification;
@class ANSession;
@class ANEntitySet;
@protocol ANTextualResource <NSObject>
@property (nonatomic,readonly) NSString * text;
@property (nonatomic,readonly) NSString * HTML;
@property (nonatomic,readonly) ANEntitySet * entities;
@property (nonatomic,readonly) NSDictionary * entitiesRepresentation;
@end
@interface ANResource : NSObject
- (id)initWithRepresentation:(NSDictionary*)rep session:(ANSession*)session;
@property (readonly,weak,nonatomic) ANSession * session;
@property (readonly,strong,nonatomic) NSDictionary * representation;
+ (ISO8601DateFormatter*)dateFormatter;
+ (NSNumberFormatter*)IDFormatter;
@end