Skip to content

Commit

Permalink
Antennaのnotifyをnullableに
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed May 31, 2024
1 parent 91d4c3f commit 99071be
Show file tree
Hide file tree
Showing 9 changed files with 45 additions and 38 deletions.
3 changes: 2 additions & 1 deletion lib/src/data/antennas/antennas_create_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class AntennasCreateRequest with _$AntennasCreateRequest {
required bool caseSensitive,
required bool withReplies,
required bool withFile,
required bool notify,
// Removed in Misskey 2024.5.0
bool? notify,
bool? localOnly,
}) = _AntennasCreateRequest;

Expand Down
32 changes: 17 additions & 15 deletions lib/src/data/antennas/antennas_create_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ mixin _$AntennasCreateRequest {
List<String> get users => throw _privateConstructorUsedError;
bool get caseSensitive => throw _privateConstructorUsedError;
bool get withReplies => throw _privateConstructorUsedError;
bool get withFile => throw _privateConstructorUsedError;
bool get notify => throw _privateConstructorUsedError;
bool get withFile =>
throw _privateConstructorUsedError; // Removed in Misskey 2024.5.0
bool? get notify => throw _privateConstructorUsedError;
bool? get localOnly => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
Expand All @@ -55,7 +56,7 @@ abstract class $AntennasCreateRequestCopyWith<$Res> {
bool caseSensitive,
bool withReplies,
bool withFile,
bool notify,
bool? notify,
bool? localOnly});
}

Expand All @@ -82,7 +83,7 @@ class _$AntennasCreateRequestCopyWithImpl<$Res,
Object? caseSensitive = null,
Object? withReplies = null,
Object? withFile = null,
Object? notify = null,
Object? notify = freezed,
Object? localOnly = freezed,
}) {
return _then(_value.copyWith(
Expand Down Expand Up @@ -122,10 +123,10 @@ class _$AntennasCreateRequestCopyWithImpl<$Res,
? _value.withFile
: withFile // ignore: cast_nullable_to_non_nullable
as bool,
notify: null == notify
notify: freezed == notify
? _value.notify
: notify // ignore: cast_nullable_to_non_nullable
as bool,
as bool?,
localOnly: freezed == localOnly
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -153,7 +154,7 @@ abstract class _$$AntennasCreateRequestImplCopyWith<$Res>
bool caseSensitive,
bool withReplies,
bool withFile,
bool notify,
bool? notify,
bool? localOnly});
}

Expand All @@ -178,7 +179,7 @@ class __$$AntennasCreateRequestImplCopyWithImpl<$Res>
Object? caseSensitive = null,
Object? withReplies = null,
Object? withFile = null,
Object? notify = null,
Object? notify = freezed,
Object? localOnly = freezed,
}) {
return _then(_$AntennasCreateRequestImpl(
Expand Down Expand Up @@ -218,10 +219,10 @@ class __$$AntennasCreateRequestImplCopyWithImpl<$Res>
? _value.withFile
: withFile // ignore: cast_nullable_to_non_nullable
as bool,
notify: null == notify
notify: freezed == notify
? _value.notify
: notify // ignore: cast_nullable_to_non_nullable
as bool,
as bool?,
localOnly: freezed == localOnly
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
Expand All @@ -243,7 +244,7 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
required this.caseSensitive,
required this.withReplies,
required this.withFile,
required this.notify,
this.notify,
this.localOnly})
: _keywords = keywords,
_excludeKeywords = excludeKeywords,
Expand Down Expand Up @@ -288,8 +289,9 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
final bool withReplies;
@override
final bool withFile;
// Removed in Misskey 2024.5.0
@override
final bool notify;
final bool? notify;
@override
final bool? localOnly;

Expand Down Expand Up @@ -364,7 +366,7 @@ abstract class _AntennasCreateRequest implements AntennasCreateRequest {
required final bool caseSensitive,
required final bool withReplies,
required final bool withFile,
required final bool notify,
final bool? notify,
final bool? localOnly}) = _$AntennasCreateRequestImpl;

factory _AntennasCreateRequest.fromJson(Map<String, dynamic> json) =
Expand All @@ -388,8 +390,8 @@ abstract class _AntennasCreateRequest implements AntennasCreateRequest {
bool get withReplies;
@override
bool get withFile;
@override
bool get notify;
@override // Removed in Misskey 2024.5.0
bool? get notify;
@override
bool? get localOnly;
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/antennas/antennas_create_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion lib/src/data/antennas/antennas_update_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class AntennasUpdateRequest with _$AntennasUpdateRequest {
required bool caseSensitive,
required bool withReplies,
required bool withFile,
required bool notify,
// Removed in Misskey 2024.5.0
bool? notify,
bool? localOnly,
}) = _AntennasUpdateRequest;

Expand Down
32 changes: 17 additions & 15 deletions lib/src/data/antennas/antennas_update_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ mixin _$AntennasUpdateRequest {
List<String> get users => throw _privateConstructorUsedError;
bool get caseSensitive => throw _privateConstructorUsedError;
bool get withReplies => throw _privateConstructorUsedError;
bool get withFile => throw _privateConstructorUsedError;
bool get notify => throw _privateConstructorUsedError;
bool get withFile =>
throw _privateConstructorUsedError; // Removed in Misskey 2024.5.0
bool? get notify => throw _privateConstructorUsedError;
bool? get localOnly => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
Expand All @@ -57,7 +58,7 @@ abstract class $AntennasUpdateRequestCopyWith<$Res> {
bool caseSensitive,
bool withReplies,
bool withFile,
bool notify,
bool? notify,
bool? localOnly});
}

Expand Down Expand Up @@ -85,7 +86,7 @@ class _$AntennasUpdateRequestCopyWithImpl<$Res,
Object? caseSensitive = null,
Object? withReplies = null,
Object? withFile = null,
Object? notify = null,
Object? notify = freezed,
Object? localOnly = freezed,
}) {
return _then(_value.copyWith(
Expand Down Expand Up @@ -129,10 +130,10 @@ class _$AntennasUpdateRequestCopyWithImpl<$Res,
? _value.withFile
: withFile // ignore: cast_nullable_to_non_nullable
as bool,
notify: null == notify
notify: freezed == notify
? _value.notify
: notify // ignore: cast_nullable_to_non_nullable
as bool,
as bool?,
localOnly: freezed == localOnly
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -161,7 +162,7 @@ abstract class _$$AntennasUpdateRequestImplCopyWith<$Res>
bool caseSensitive,
bool withReplies,
bool withFile,
bool notify,
bool? notify,
bool? localOnly});
}

Expand All @@ -187,7 +188,7 @@ class __$$AntennasUpdateRequestImplCopyWithImpl<$Res>
Object? caseSensitive = null,
Object? withReplies = null,
Object? withFile = null,
Object? notify = null,
Object? notify = freezed,
Object? localOnly = freezed,
}) {
return _then(_$AntennasUpdateRequestImpl(
Expand Down Expand Up @@ -231,10 +232,10 @@ class __$$AntennasUpdateRequestImplCopyWithImpl<$Res>
? _value.withFile
: withFile // ignore: cast_nullable_to_non_nullable
as bool,
notify: null == notify
notify: freezed == notify
? _value.notify
: notify // ignore: cast_nullable_to_non_nullable
as bool,
as bool?,
localOnly: freezed == localOnly
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
Expand All @@ -257,7 +258,7 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
required this.caseSensitive,
required this.withReplies,
required this.withFile,
required this.notify,
this.notify,
this.localOnly})
: _keywords = keywords,
_excludeKeywords = excludeKeywords,
Expand Down Expand Up @@ -304,8 +305,9 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
final bool withReplies;
@override
final bool withFile;
// Removed in Misskey 2024.5.0
@override
final bool notify;
final bool? notify;
@override
final bool? localOnly;

Expand Down Expand Up @@ -384,7 +386,7 @@ abstract class _AntennasUpdateRequest implements AntennasUpdateRequest {
required final bool caseSensitive,
required final bool withReplies,
required final bool withFile,
required final bool notify,
final bool? notify,
final bool? localOnly}) = _$AntennasUpdateRequestImpl;

factory _AntennasUpdateRequest.fromJson(Map<String, dynamic> json) =
Expand All @@ -410,8 +412,8 @@ abstract class _AntennasUpdateRequest implements AntennasUpdateRequest {
bool get withReplies;
@override
bool get withFile;
@override
bool get notify;
@override // Removed in Misskey 2024.5.0
bool? get notify;
@override
bool? get localOnly;
@override
Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/antennas/antennas_update_request.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/data/base/antenna.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Antenna with _$Antenna {
String? userListId,
required List<String> users,
required bool caseSensitive,
required bool notify,
@Default(false) bool notify,
required bool withReplies,
required bool withFile,
required bool isActive,
Expand Down
5 changes: 3 additions & 2 deletions lib/src/data/base/antenna.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class _$AntennaImpl implements _Antenna {
this.userListId,
required final List<String> users,
required this.caseSensitive,
required this.notify,
this.notify = false,
required this.withReplies,
required this.withFile,
required this.isActive,
Expand Down Expand Up @@ -340,6 +340,7 @@ class _$AntennaImpl implements _Antenna {
@override
final bool caseSensitive;
@override
@JsonKey()
final bool notify;
@override
final bool withReplies;
Expand Down Expand Up @@ -433,7 +434,7 @@ abstract class _Antenna implements Antenna {
final String? userListId,
required final List<String> users,
required final bool caseSensitive,
required final bool notify,
final bool notify,
required final bool withReplies,
required final bool withFile,
required final bool isActive,
Expand Down
2 changes: 1 addition & 1 deletion lib/src/data/base/antenna.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99071be

Please sign in to comment.