//
//  SignUpTypeSelectViewController.m
//  OneCable
//
//  Created by nComz on 2017. 5. 22..
//  Copyright © 2017년 ntels. All rights reserved.
//

#import "SignUpTypeSelectViewController.h"
#import "CustomButton.h"
#import "CertificationViewController.h"
#import "AgreementViewController.h"
#import "RequestHandler.h"

@interface SignUpTypeSelectViewController ()

@end

@implementation SignUpTypeSelectViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    [self initUI];
}

// UI 설정
- (void)initUI {
    
    UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
    statusBar.backgroundColor = [UIColor whiteColor];
    
    [self.navigationController.navigationBar setHidden:YES];
    self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}

// 마스터 회원가입
- (IBAction)btnMasterSignUpTouched:(id)sender {
    
    [self moveAgreementViewController];
    [JDFacade facade].signType = KNEET_MEMBER_MASTER; // 가입유형을 마스터로 설정
}

// 멤버 회원가입
- (IBAction)btnMemSignUpTouched:(id)sender {
    
    [self moveAgreementViewController];
    [JDFacade facade].signType = KNEET_MEMBER_SIMPLE; // 가입유형을 멤버로 설정
}

// 약관 동의 메뉴로 이동
- (void)moveAgreementViewController{
    
    AgreementViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"AgreementViewController" storyboardName:@"SignUp"];

    [self.navigationController pushViewController:vc animated:YES];
}

// 메뉴 닫기
- (IBAction)btnCancelTouched:(id)sender {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}

@end
