aka RedditBar, Mac OS X menu bar reddit client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031
  1. //
  2. // Reddit.h
  3. // RedditBar
  4. //
  5. // Created by Thomas Buck on 01.12.13.
  6. // Copyright (c) 2013 xythobuz. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "RedditItem.h"
  10. @interface Reddit : NSObject
  11. @property (atomic, retain) NSString *username;
  12. @property (atomic, retain) NSString *modhash;
  13. @property (atomic, retain) NSString *password;
  14. -(id)initWithUsername:(NSString *)name Password:(NSString *)pass;
  15. -(NSString *)queryModhash;
  16. -(id)initWithUsername:(NSString *)name Modhash:(NSString *)hash;
  17. -(BOOL)isAuthenticatedNewModhash:(NSString **)newModHash;
  18. -(NSArray *)readFrontpageLength:(NSInteger)length;
  19. -(NSArray *)readSubreddits:(NSArray *)source Length:(NSInteger)length;
  20. -(NSData *)queryAPI:(NSString *)api withData:(NSString *)string andResponse:(NSHTTPURLResponse **)res;
  21. -(NSString *)urlencode:(NSString *)string;
  22. @end