import 'package:equatable/equatable.dart';
import 'package:flutter/cupertino.dart';

abstract class LoginBindPhoneEvent extends Equatable {
  const LoginBindPhoneEvent();

  @override
  List<Object> get props => [];
}

/// 初始化事件
class LoginBindPhoneInitEvent extends LoginBindPhoneEvent {}

/// 获取验证码
class LoginBindPhoneGetVCodeEvent extends LoginBindPhoneEvent {
  final String mobile;

  const LoginBindPhoneGetVCodeEvent({@required this.mobile});

  @override
  List<Object> get props => [mobile];
}

/// 核对验证码
class LoginBindPhoneCheckVCodeEvent extends LoginBindPhoneEvent {
  /// 手机号码
  final String mobile;

  /// 验证码
  final String captcha;

  const LoginBindPhoneCheckVCodeEvent({@required this.mobile, @required this.captcha});

  @override
  List<Object> get props => [this.mobile, this.captcha];
}

/// 登陆事件(验证码登陆)
class LoginBindPhoneTypeVCodeEvent extends LoginBindPhoneEvent {
  final String mobile;
  final String captcha;

  const LoginBindPhoneTypeVCodeEvent({@required this.mobile, @required this.captcha});

  @override
  List<Object> get props => [this.mobile, this.captcha];
}
