relatica/lib/models/follow_request.dart

27 lines
664 B
Dart
Raw Normal View History

import 'connection.dart';
class FollowRequest {
2023-08-04 16:34:51 +00:00
final String id;
final Connection connection;
2023-08-04 16:34:51 +00:00
final int createdAtEpochSeconds;
const FollowRequest({
2023-08-04 16:34:51 +00:00
required this.id,
required this.connection,
2023-08-04 16:34:51 +00:00
required this.createdAtEpochSeconds,
});
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is FollowRequest &&
runtimeType == other.runtimeType &&
2023-08-04 16:34:51 +00:00
id == other.id &&
connection == other.connection &&
createdAtEpochSeconds == other.createdAtEpochSeconds;
@override
2023-08-04 16:34:51 +00:00
int get hashCode =>
id.hashCode ^ connection.hashCode ^ createdAtEpochSeconds.hashCode;
}