You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
// ignore_for_file: invalid_annotation_target
|
|
|
|
|
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'recent_changes.freezed.dart';
|
|
|
|
part 'recent_changes.g.dart';
|
|
|
|
|
|
|
|
@Freezed(copyWith: false)
|
|
|
|
class RecentChangesItem with _$RecentChangesItem {
|
|
|
|
factory RecentChangesItem({
|
|
|
|
String? type,
|
|
|
|
required int ns,
|
|
|
|
required String title,
|
|
|
|
required int pageid,
|
|
|
|
required int revid,
|
|
|
|
required DateTime timestamp,
|
|
|
|
@JsonKey(name: 'old_revid') int? oldRevid,
|
|
|
|
int? rcid,
|
|
|
|
}) = _RecentChangesItem;
|
|
|
|
|
|
|
|
factory RecentChangesItem.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$RecentChangesItemFromJson(json);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Freezed(copyWith: false)
|
|
|
|
class RecentChangesResponse with _$RecentChangesResponse {
|
|
|
|
factory RecentChangesResponse({required List<RecentChangesItem> recentchanges}) =
|
|
|
|
_RecentChangesResponse;
|
|
|
|
|
|
|
|
factory RecentChangesResponse.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$RecentChangesResponseFromJson(json);
|
|
|
|
}
|