mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 12:28:40 +00:00
46 lines
1.1 KiB
Dart
46 lines
1.1 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
part 'userdata.g.dart';
|
|
|
|
@JsonSerializable()
|
|
class UserData {
|
|
UserData(
|
|
{required this.userId,
|
|
required this.username,
|
|
required this.displayName,
|
|
required this.subscriptionPlan});
|
|
|
|
String username;
|
|
String displayName;
|
|
|
|
String? avatarSvg;
|
|
String? avatarJson;
|
|
int? avatarCounter;
|
|
|
|
// settings
|
|
int? defaultShowTime;
|
|
@JsonKey(defaultValue: "Preview")
|
|
String subscriptionPlan;
|
|
bool? useHighQuality;
|
|
List<String>? preSelectedEmojies;
|
|
ThemeMode? themeMode;
|
|
Map<String, List<String>>? autoDownloadOptions;
|
|
bool? storeMediaFilesInGallery;
|
|
List<String>? lastUsedEditorEmojis;
|
|
|
|
String? lastPlanBallance;
|
|
String? additionalUserInvites;
|
|
|
|
DateTime? lastImageSend;
|
|
int? todaysImageCounter;
|
|
|
|
int? myBestFriendContactId;
|
|
|
|
DateTime? signalLastSignedPreKeyUpdated;
|
|
|
|
final int userId;
|
|
|
|
factory UserData.fromJson(Map<String, dynamic> json) =>
|
|
_$UserDataFromJson(json);
|
|
Map<String, dynamic> toJson() => _$UserDataToJson(this);
|
|
}
|