24 lines
579 B
Dart
24 lines
579 B
Dart
class SocialPost {
|
|
final String userName;
|
|
final String userImage;
|
|
final String postText;
|
|
final String postImage;
|
|
final int likes;
|
|
final int comments;
|
|
final int shares;
|
|
final List<String> badges; // Gamification badges
|
|
final List<String> tags; // Ajout de tags pour personnalisation des posts
|
|
|
|
SocialPost({
|
|
required this.userName,
|
|
required this.userImage,
|
|
required this.postText,
|
|
required this.postImage,
|
|
required this.likes,
|
|
required this.comments,
|
|
required this.shares,
|
|
required this.badges,
|
|
this.tags = const [],
|
|
});
|
|
}
|