This commit is contained in:
wuxu
2026-04-28 17:34:03 +08:00
commit 80ee99e564
43 changed files with 6330 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
class SmsMessage {
final int? id;
final String phoneNumber;
final String? contactName;
final String content;
final String type; // 'received' | 'sent'
final String smsDate;
SmsMessage({
this.id,
required this.phoneNumber,
this.contactName,
required this.content,
required this.type,
required this.smsDate,
});
Map<String, dynamic> toJson() => {
'phone_number': phoneNumber,
'contact_name': contactName,
'content': content,
'type': type,
'sms_date': smsDate,
};
factory SmsMessage.fromJson(Map<String, dynamic> json) => SmsMessage(
id: json['id'],
phoneNumber: json['phone_number'],
contactName: json['contact_name'],
content: json['content'],
type: json['type'],
smsDate: json['sms_date'],
);
}