Skip to content

Instantly share code, notes, and snippets.

@rhysforyou
Created June 13, 2011 05:35
Show Gist options
  • Select an option

  • Save rhysforyou/1022352 to your computer and use it in GitHub Desktop.

Select an option

Save rhysforyou/1022352 to your computer and use it in GitHub Desktop.
//
// TumblrAPIRequest.h
// Tumblrocket
//
// Created by Rhys Powell on 12/06/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum {
dashboard
} TumblrRequestType;
@interface TumblrAPIRequest : NSObject {
id target;
SEL action;
NSMutableData *received;
NSURLConnection *connection;
}
- (TumblrAPIRequest *)initWithTarget:(id)target_ action:(SEL)action_;
- (void)performRequestOfType:(TumblrRequestType)type_ withParameters:(NSDictionary *)parameters;
- (void)cancelRequest;
- (BOOL)isLoading;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment