relatica/lib/models/direct_message.dart

45 wiersze
830 B
Dart
Czysty Zwykły widok Historia

class DirectMessage {
final String id;
final String senderId;
final String senderScreenName;
final String recipientId;
final String recipientScreenName;
final String title;
final String text;
final int createdAt;
final bool seen;
final String parentUri;
DirectMessage({
required this.id,
required this.senderId,
required this.senderScreenName,
required this.recipientId,
required this.recipientScreenName,
required this.title,
required this.text,
required this.createdAt,
required this.seen,
required this.parentUri,
});
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is DirectMessage &&
runtimeType == other.runtimeType &&
id == other.id;
@override
int get hashCode => id.hashCode;
}