//
//  GroupDetailViewController.h
//  LifeLog
//
//  Created by nvtu on 8/13/17.
//  Copyright © 2017 PhongNV. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseTableViewController.h"
#import "Entities.h"
#import "AutoTransButton.h"

@interface GroupDetailViewController : BaseTableViewController {
    GroupObject * _curGroup;
    BOOL        isMemberList;
}
@property (weak, nonatomic) IBOutlet UIView *viewHeader;
@property (weak, nonatomic) IBOutlet UIImageView *imgAva;

@property (weak, nonatomic) IBOutlet UILabel *lblGrpName;
@property (weak, nonatomic) IBOutlet UILabel *lbbGrpActiveMode;
@property (weak, nonatomic) IBOutlet UILabel *lblGrpGoal;
@property (weak, nonatomic) IBOutlet AutoTransButton *btJoinGrp;
@property (weak, nonatomic) IBOutlet AutoTransButton *btSwitch;

- (void) setGroup : (GroupObject *) object;
- (void) requestGroupDetail;
    
- (IBAction)clickBack:(id)sender;
- (IBAction)clickSwitch:(AutoTransButton *)sender;
- (IBAction)clickJoin:(AutoTransButton *)sender;
@end
