2021-12-06 18:31:19 +00:00
|
|
|
import 'package:hive/hive.dart';
|
|
|
|
|
|
|
|
part 'backblaze_bucket.g.dart';
|
|
|
|
|
|
|
|
@HiveType(typeId: 6)
|
|
|
|
class BackblazeBucket {
|
2022-06-09 21:13:06 +00:00
|
|
|
BackblazeBucket({
|
|
|
|
required this.bucketId,
|
|
|
|
required this.bucketName,
|
|
|
|
required this.applicationKeyId,
|
|
|
|
required this.applicationKey,
|
2023-06-29 09:52:09 +00:00
|
|
|
required this.encryptionKey,
|
2022-06-09 21:13:06 +00:00
|
|
|
});
|
2021-12-06 18:31:19 +00:00
|
|
|
|
|
|
|
@HiveField(0)
|
|
|
|
final String bucketId;
|
|
|
|
|
|
|
|
@HiveField(1)
|
|
|
|
final String applicationKeyId;
|
|
|
|
|
|
|
|
@HiveField(2)
|
|
|
|
final String applicationKey;
|
|
|
|
|
|
|
|
@HiveField(3)
|
|
|
|
final String bucketName;
|
|
|
|
|
2023-06-29 09:52:09 +00:00
|
|
|
@HiveField(4)
|
|
|
|
final String encryptionKey;
|
|
|
|
|
2021-12-06 18:31:19 +00:00
|
|
|
@override
|
2022-06-05 19:36:32 +00:00
|
|
|
String toString() => bucketName;
|
2021-12-06 18:31:19 +00:00
|
|
|
}
|