import 'package:pshared/models/account/account.dart';
import 'package:pshared/models/auth/pending_login.dart';


class LoginOutcome {
  final Account? account;
  final PendingLogin? pending;

  const LoginOutcome._({this.account, this.pending});

  factory LoginOutcome.completed(Account account) => LoginOutcome._(account: account);

  factory LoginOutcome.pending(PendingLogin pending) => LoginOutcome._(pending: pending);

  bool get isPending => pending != null;
  bool get isCompleted => account != null;
}
