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

#import <Foundation/Foundation.h>

@interface GroupObject : NSObject

@property (nonatomic) int groupID;
@property (nonatomic) int numSearch;

@property (nonatomic) int walkGoal;
@property (nonatomic) int runGoal;
@property (nonatomic) int bikeGoal;
@property (nonatomic) int stepGoal;
@property (nonatomic) int gymGoal;
@property (nonatomic) int beginGoal;

@property (nonatomic) BOOL isJoin;
@property (nonatomic) BOOL walkMode;
@property (nonatomic) BOOL runMode;
@property (nonatomic) BOOL bikeMode;
@property (nonatomic) BOOL stepMode;
@property (nonatomic) BOOL gymMode;
@property (nonatomic) BOOL beginMode;

@property (nonatomic, strong) NSString * name;
@property (nonatomic, strong) NSString * avatar;
@property (nonatomic, strong) NSString * goal;

@property (nonatomic, strong) NSDate   * createDate;

-(id) initWithShortData : (NSDictionary *) dict;
-(id) initWithData : (NSDictionary *) dict;
-(id) initWithData : (NSDictionary *) dict andGroupID : (int) groupID;
-(void) updateDate : (GroupObject *) obj;
@end
