NewsBlur/clients/ios/Classes/ProfileBadge.h
2013-06-27 09:43:22 -07:00

48 lines
1.3 KiB
Objective-C

//
// ProfileBadge.h
// NewsBlur
//
// Created by Roy Yang on 7/2/12.
// Copyright (c) 2012 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
@class NewsBlurAppDelegate;
@class ASIHTTPRequest;
@interface ProfileBadge : UITableViewCell {
NewsBlurAppDelegate *appDelegate;
UIImageView *UserAvatar;
UILabel *username;
UILabel *userLocation;
UILabel *userDescription;
UILabel *userStats;
UIButton *followButton;
NSDictionary *activeProfile;
UIActivityIndicatorView *activityIndicator;
}
@property (nonatomic) NewsBlurAppDelegate *appDelegate;
@property ( nonatomic) UIImageView *userAvatar;
@property ( nonatomic) UILabel *username;
@property ( nonatomic) UILabel *userLocation;
@property ( nonatomic) UILabel *userDescription;
@property ( nonatomic) UILabel *userStats;
@property ( nonatomic) UIButton *followButton;
@property (nonatomic) UIActivityIndicatorView *activityIndicator;
@property ( nonatomic) NSDictionary *activeProfile;
- (void)refreshWithProfile:(NSDictionary *)profile showStats:(BOOL)showStats withWidth:(int)newWidth;
- (IBAction)doFollowButton:(id)sender;
- (void)finishFollowing:(ASIHTTPRequest *)request;
- (void)finishUnfollowing:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)initProfile;
@end