-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91d4c3f
commit 34bb850
Showing
42 changed files
with
3,264 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import 'package:freezed_annotation/freezed_annotation.dart'; | ||
import 'package:misskey_dart/misskey_dart.dart'; | ||
|
||
part 'gallery_post.freezed.dart'; | ||
part 'gallery_post.g.dart'; | ||
|
||
@freezed | ||
class GalleryPost with _$GalleryPost { | ||
const factory GalleryPost({ | ||
required String id, | ||
required DateTime createdAt, | ||
required DateTime updatedAt, | ||
required String userId, | ||
required UserLite user, | ||
required String title, | ||
String? description, | ||
List<String>? fileIds, | ||
List<DriveFile>? files, | ||
List<String>? tags, | ||
required bool isSensitive, | ||
required int likedCount, | ||
bool? isLiked, | ||
}) = _GalleryPost; | ||
|
||
factory GalleryPost.fromJson(Map<String, Object?> json) => | ||
_$GalleryPostFromJson(json); | ||
} |
Oops, something went wrong.