refactor: remove unused local and remote data sources, models, and tests for chicken and poultry features to streamline codebase

This commit is contained in:
2025-12-08 16:10:34 +03:30
parent 890be0ded6
commit 455a5a5571
230 changed files with 2812 additions and 3471 deletions

View File

@@ -0,0 +1,72 @@
import 'package:rasadyar_core/core.dart';
part 'widely_used_local_model.g.dart';
@HiveType(typeId: chickenWidelyUsedLocalModelTypeId)
class WidelyUsedLocalModel extends HiveObject {
@HiveField(0)
bool? hasInit;
@HiveField(1)
List<WidelyUsedLocalItem>? items;
WidelyUsedLocalModel({this.hasInit, this.items});
WidelyUsedLocalModel copyWith({bool? hasInit, List<WidelyUsedLocalItem>? items}) {
return WidelyUsedLocalModel(hasInit: hasInit ?? this.hasInit, items: items ?? this.items);
}
}
@HiveType(typeId: chickenWidelyUsedLocalItemTypeId)
class WidelyUsedLocalItem extends HiveObject {
@HiveField(0)
String? title;
@HiveField(1)
String? iconPath;
@HiveField(2)
int? iconColor;
@HiveField(3)
int? color;
@HiveField(4)
String? path;
@HiveField(5)
int? pathId;
@HiveField(6)
int? index;
WidelyUsedLocalItem({
this.title,
this.iconPath,
this.iconColor,
this.color,
this.path,
this.pathId,
this.index,
});
WidelyUsedLocalItem copyWith({
String? title,
String? iconPath,
int? iconColor,
int? color,
int? pathId,
int? index,
String? path,
}) {
return WidelyUsedLocalItem(
title: title ?? this.title,
iconPath: iconPath ?? this.iconPath,
iconColor: iconColor ?? this.iconColor,
color: color ?? this.color,
path: path ?? this.path,
pathId: pathId ?? this.pathId,
index: index ?? this.index,
);
}
}

View File

@@ -0,0 +1,96 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'widely_used_local_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class WidelyUsedLocalModelAdapter extends TypeAdapter<WidelyUsedLocalModel> {
@override
final typeId = 4;
@override
WidelyUsedLocalModel read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return WidelyUsedLocalModel(
hasInit: fields[0] as bool?,
items: (fields[1] as List?)?.cast<WidelyUsedLocalItem>(),
);
}
@override
void write(BinaryWriter writer, WidelyUsedLocalModel obj) {
writer
..writeByte(2)
..writeByte(0)
..write(obj.hasInit)
..writeByte(1)
..write(obj.items);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is WidelyUsedLocalModelAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}
class WidelyUsedLocalItemAdapter extends TypeAdapter<WidelyUsedLocalItem> {
@override
final typeId = 5;
@override
WidelyUsedLocalItem read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return WidelyUsedLocalItem(
title: fields[0] as String?,
iconPath: fields[1] as String?,
iconColor: (fields[2] as num?)?.toInt(),
color: (fields[3] as num?)?.toInt(),
path: fields[4] as String?,
pathId: (fields[5] as num?)?.toInt(),
index: (fields[6] as num?)?.toInt(),
);
}
@override
void write(BinaryWriter writer, WidelyUsedLocalItem obj) {
writer
..writeByte(7)
..writeByte(0)
..write(obj.title)
..writeByte(1)
..write(obj.iconPath)
..writeByte(2)
..write(obj.iconColor)
..writeByte(3)
..write(obj.color)
..writeByte(4)
..write(obj.path)
..writeByte(5)
..write(obj.pathId)
..writeByte(6)
..write(obj.index);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is WidelyUsedLocalItemAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}