/* * This file is part of wger Workout Manager . * Copyright (C) 2020, 2021 wger Team * * wger Workout Manager is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ import 'package:collection/collection.dart'; import 'package:equatable/equatable.dart'; import 'package:logging/logging.dart'; import 'package:wger/core/consts.dart'; import 'package:wger/core/language.dart'; import 'package:wger/features/exercises/models/category.dart'; import 'package:wger/features/exercises/models/equipment.dart'; import 'package:wger/features/exercises/models/image.dart'; import 'package:wger/features/exercises/models/muscle.dart'; import 'package:wger/features/exercises/models/translation.dart'; import 'package:wger/features/exercises/models/video.dart'; class Exercise extends Equatable { static final _logger = Logger('ExerciseModel'); final int id; final String uuid; final String? variationGroup; final DateTime? created; final DateTime? lastUpdate; final ExerciseCategory category; final List muscles; final List musclesSecondary; final List equipment; final List images; final List translations; final List