//
//  UserCenter+UserMigration.h
//  UserCenter-a
//
//  Created by pactera on 15/12/16.
//  Copyright © 2015年 changhong. All rights reserved.
//

#import "CHUserCenterBase.h"

@interface CHUserCenter (UserMigration)

/**
 *  用户迁移
 *
 *  @param userMigration            用户信息
 *  @param completionHandler        回调
 */
+ (void)syncRegisterWithUserMigration:(CHUCUserMigration *)userMigration
                             complete:(CHUCCompletionHandler)completionHandler;

/**
 *  论坛用户手机号注册
 *
 *  @param phone             手机号
 *  @param password          密码
 *  @param authCode          验证码
 *  @param completionHandler 回调
 */
+ (void)bbsRegisterByPhone:(NSString *)phone
                  password:(NSString *)password
                  authCode:(NSString *)authCode
                  complete:(CHUCCompletionHandler)completionHandler;

/**
 *  论坛用户邮箱注册
 *
 *  @param phone             邮箱地址
 *  @param password          密码
 *  @param authCode          验证码
 *  @param completionHandler 回调
 */
+ (void)bbsRegisterByEmail:(NSString *)email
                  password:(NSString *)password
                  authCode:(NSString *)authCode
                  complete:(CHUCCompletionHandler)completionHandler;

/**
 *  查询帐户验证有效性
 *
 *  @param account           账户
 *  @param password          密码
 *  @param completionHandler 回调
 */
+ (void)checkUserWithAccount:(NSString *)account
                    password:(NSString *)password
                    complete:(CHUCCompletionHandler)completionHandler;

/**
 *  BBS用户登录
 *
 *  @param username          用户名
 *  @param password          密码
 *  @param completionHandler 回调
 */
+ (void)loginFromBBSWithUsername:(NSString *)username
                        password:(NSString *)password
                        complete:(CHUCCompletionHandler)completionHandler;

@end
