mirrored_repositories/FlutterEbookApp/packages/iridium/components/shared/lib/src
// Copyright (c) 2021 Mantano. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'package:equatable/equatable.dart';

class OpdsMetadata with EquatableMixin {
  String title;
  int? numberOfItems;
  int? itemsPerPage;
  int? currentPage;
  DateTime? modified;
  int? position;
  String? rdfType;

  OpdsMetadata(
      {required this.title,
      this.numberOfItems,
      this.itemsPerPage,
      this.currentPage,
      this.modified,
      this.position,
      this.rdfType});

  @override
  List<Object?> get props => [
        title,
        numberOfItems,
        itemsPerPage,
        currentPage,
        modified,
        position,
        rdfType,
      ];

  @override
  String toString() =>
      'OpdsMetadata{title: $title, numberOfItems: $numberOfItems, '
      'itemsPerPage: $itemsPerPage, currentPage: $currentPage, '
      'modified: $modified, position: $position, rdfType: $rdfType}';
}
