NewsBlur/media/ios/Classes/ProfileBadge.h

49 lines
1.3 KiB
C
Raw Normal View History

2012-07-02 15:41:16 -07:00
//
2012-07-09 21:13:06 -07:00
// ProfileBadge.h
2012-07-02 15:41:16 -07:00
// NewsBlur
//
// Created by Roy Yang on 7/2/12.
// Copyright (c) 2012 NewsBlur. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "NewsBlurAppDelegate.h"
@class NewsBlurAppDelegate;
2012-07-09 21:13:06 -07:00
@interface ProfileBadge : UIView {
2012-07-02 15:41:16 -07:00
NewsBlurAppDelegate *appDelegate;
UIImageView *UserAvatar;
UILabel *username;
UILabel *userLocation;
UILabel *userDescription;
UILabel *userStats;
UIButton *followButton;
NSDictionary *activeProfile;
UIActivityIndicatorView *activityIndicator;
2012-07-02 15:41:16 -07:00
}
@property (nonatomic, retain) NewsBlurAppDelegate *appDelegate;
@property (retain, nonatomic) UIImageView *userAvatar;
@property (retain, nonatomic) UILabel *username;
@property (retain, nonatomic) UILabel *userLocation;
@property (retain, nonatomic) UILabel *userDescription;
@property (retain, nonatomic) UILabel *userStats;
@property (retain, nonatomic) UIButton *followButton;
@property (nonatomic, retain) UIActivityIndicatorView *activityIndicator;
@property (retain, nonatomic) NSDictionary *activeProfile;
2012-07-02 15:41:16 -07:00
2012-07-09 21:26:53 -07:00
- (void)refreshWithProfile:(NSDictionary *)profile;
2012-07-03 11:05:19 -07:00
- (IBAction)doFollowButton:(id)sender;
- (void)finishFollowing:(ASIHTTPRequest *)request;
- (void)finishUnfollowing:(ASIHTTPRequest *)request;
- (void)requestFailed:(ASIHTTPRequest *)request;
- (void)initProfile;
2012-07-03 11:05:19 -07:00
2012-07-02 15:41:16 -07:00
@end