Remove flutter chat (#26)
Had to squash merge manually as Forgejo was erroring
This commit is contained in:
parent
bd1d5ea745
commit
16cf126df4
111 changed files with 3162 additions and 2366 deletions
17
lib/models/info/audio.dart
Normal file
17
lib/models/info/audio.dart
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/ms_duration.dart";
|
||||
part "audio.freezed.dart";
|
||||
part "audio.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class AudioInfo with _$AudioInfo {
|
||||
/// Information for images, [size] is in bytes.
|
||||
const factory AudioInfo({
|
||||
@MSDuration() Duration? duration,
|
||||
@JsonKey(name: "mimetype") String? mimeType,
|
||||
int? size,
|
||||
}) = _AudioInfo;
|
||||
|
||||
factory AudioInfo.fromJson(Map<String, Object?> json) =>
|
||||
_$AudioInfoFromJson(json);
|
||||
}
|
||||
15
lib/models/info/file.dart
Normal file
15
lib/models/info/file.dart
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
part "file.freezed.dart";
|
||||
part "file.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class FileInfo with _$FileInfo {
|
||||
/// Information for images, [size] is in bytes.
|
||||
const factory FileInfo({
|
||||
@JsonKey(name: "mimetype") String? mimeType,
|
||||
int? size,
|
||||
}) = _FileInfo;
|
||||
|
||||
factory FileInfo.fromJson(Map<String, Object?> json) =>
|
||||
_$FileInfoFromJson(json);
|
||||
}
|
||||
18
lib/models/info/image.dart
Normal file
18
lib/models/info/image.dart
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
part "image.freezed.dart";
|
||||
part "image.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class ImageInfo with _$ImageInfo {
|
||||
/// Information for images, [size] is in bytes.
|
||||
const factory ImageInfo({
|
||||
@JsonKey(name: "h") double? height,
|
||||
@JsonKey(name: "w") double? width,
|
||||
@JsonKey(name: "mimetype") String? mimeType,
|
||||
@JsonKey(name: "xyz.amorgan.blurhash") String? blurHash,
|
||||
int? size,
|
||||
}) = _ImageInfo;
|
||||
|
||||
factory ImageInfo.fromJson(Map<String, Object?> json) =>
|
||||
_$ImageInfoFromJson(json);
|
||||
}
|
||||
19
lib/models/info/video.dart
Normal file
19
lib/models/info/video.dart
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import "package:freezed_annotation/freezed_annotation.dart";
|
||||
import "package:nexus/models/ms_duration.dart";
|
||||
part "video.freezed.dart";
|
||||
part "video.g.dart";
|
||||
|
||||
@freezed
|
||||
abstract class VideoInfo with _$VideoInfo {
|
||||
/// Information for images, [size] is in bytes.
|
||||
const factory VideoInfo({
|
||||
@JsonKey(name: "h") int? height,
|
||||
@JsonKey(name: "w") int? width,
|
||||
@JsonKey(name: "mimetype") String? mimeType,
|
||||
@MSDuration() Duration? duration,
|
||||
int? size,
|
||||
}) = _VideoInfo;
|
||||
|
||||
factory VideoInfo.fromJson(Map<String, Object?> json) =>
|
||||
_$VideoInfoFromJson(json);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue