24 lines
462 B
Dart
24 lines
462 B
Dart
import 'package:hive/hive.dart';
|
|
|
|
part 'credentials.g.dart';
|
|
|
|
@HiveType(typeId: 1)
|
|
class Credentials {
|
|
@HiveField(0, defaultValue: "")
|
|
String username;
|
|
|
|
@HiveField(1, defaultValue: "")
|
|
String password;
|
|
|
|
@HiveField(2, defaultValue: "")
|
|
String secret;
|
|
|
|
@HiveField(3, defaultValue: false)
|
|
bool has_2fa = false;
|
|
|
|
Credentials(
|
|
{required this.username,
|
|
required this.password,
|
|
required this.secret,
|
|
required this.has_2fa});
|
|
}
|