first commit

This commit is contained in:
Lucas Saburido
2026-05-13 16:26:45 +01:00
commit cabf2025cd
252 changed files with 13524 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
class ProfileModel {
const ProfileModel({
required this.userId,
required this.username,
required this.bio,
required this.avatarUrl,
});
final String userId;
final String username;
final String bio;
final String avatarUrl;
factory ProfileModel.fromJson(Map<String, dynamic> json) {
return ProfileModel(
userId: (json['user_id'] as String?) ?? '',
username: (json['username'] as String?) ?? '',
bio: (json['bio'] as String?) ?? '',
avatarUrl: (json['avatar_url'] as String?) ?? '',
);
}
ProfileModel copyWith({
String? username,
String? bio,
String? avatarUrl,
}) {
return ProfileModel(
userId: userId,
username: username ?? this.username,
bio: bio ?? this.bio,
avatarUrl: avatarUrl ?? this.avatarUrl,
);
}
}

View File

@@ -0,0 +1,11 @@
class ProfileStatsModel {
const ProfileStatsModel({
required this.postsCount,
required this.commentsCount,
required this.tracksCount,
});
final int postsCount;
final int commentsCount;
final int tracksCount;
}