mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-11 03:03:18 +00:00
28 lines
571 B
Dart
28 lines
571 B
Dart
|
import 'package:hive/hive.dart';
|
||
|
import 'package:selfprivacy/logic/models/hive/server_domain.dart';
|
||
|
|
||
|
part 'dns_provider_credential.g.dart';
|
||
|
|
||
|
// TODO: Make a constant type.
|
||
|
@HiveType(typeId: 8)
|
||
|
class DnsProviderCredential {
|
||
|
DnsProviderCredential({
|
||
|
required this.tokenId,
|
||
|
required this.token,
|
||
|
required this.provider,
|
||
|
required this.associatedDomainNames,
|
||
|
});
|
||
|
|
||
|
@HiveField(0)
|
||
|
final String? tokenId;
|
||
|
|
||
|
@HiveField(1)
|
||
|
final String token;
|
||
|
|
||
|
@HiveField(2)
|
||
|
final DnsProviderType provider;
|
||
|
|
||
|
@HiveField(3)
|
||
|
final List<String> associatedDomainNames;
|
||
|
}
|