Skip to content

Commit

Permalink
アンテナにexcludeBotsを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
poppingmoon committed May 28, 2024
1 parent 91d4c3f commit 551ccfd
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 21 deletions.
1 change: 1 addition & 0 deletions lib/src/data/antennas/antennas_create_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class AntennasCreateRequest with _$AntennasCreateRequest {
required bool withFile,
required bool notify,
bool? localOnly,
bool? excludeBots,
}) = _AntennasCreateRequest;

factory AntennasCreateRequest.fromJson(Map<String, Object?> json) =>
Expand Down
36 changes: 29 additions & 7 deletions lib/src/data/antennas/antennas_create_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mixin _$AntennasCreateRequest {
bool get withFile => throw _privateConstructorUsedError;
bool get notify => throw _privateConstructorUsedError;
bool? get localOnly => throw _privateConstructorUsedError;
bool? get excludeBots => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
Expand All @@ -56,7 +57,8 @@ abstract class $AntennasCreateRequestCopyWith<$Res> {
bool withReplies,
bool withFile,
bool notify,
bool? localOnly});
bool? localOnly,
bool? excludeBots});
}

/// @nodoc
Expand Down Expand Up @@ -84,6 +86,7 @@ class _$AntennasCreateRequestCopyWithImpl<$Res,
Object? withFile = null,
Object? notify = null,
Object? localOnly = freezed,
Object? excludeBots = freezed,
}) {
return _then(_value.copyWith(
name: null == name
Expand Down Expand Up @@ -130,6 +133,10 @@ class _$AntennasCreateRequestCopyWithImpl<$Res,
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
as bool?,
excludeBots: freezed == excludeBots
? _value.excludeBots
: excludeBots // ignore: cast_nullable_to_non_nullable
as bool?,
) as $Val);
}
}
Expand All @@ -154,7 +161,8 @@ abstract class _$$AntennasCreateRequestImplCopyWith<$Res>
bool withReplies,
bool withFile,
bool notify,
bool? localOnly});
bool? localOnly,
bool? excludeBots});
}

/// @nodoc
Expand All @@ -180,6 +188,7 @@ class __$$AntennasCreateRequestImplCopyWithImpl<$Res>
Object? withFile = null,
Object? notify = null,
Object? localOnly = freezed,
Object? excludeBots = freezed,
}) {
return _then(_$AntennasCreateRequestImpl(
name: null == name
Expand Down Expand Up @@ -226,6 +235,10 @@ class __$$AntennasCreateRequestImplCopyWithImpl<$Res>
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
as bool?,
excludeBots: freezed == excludeBots
? _value.excludeBots
: excludeBots // ignore: cast_nullable_to_non_nullable
as bool?,
));
}
}
Expand All @@ -244,7 +257,8 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
required this.withReplies,
required this.withFile,
required this.notify,
this.localOnly})
this.localOnly,
this.excludeBots})
: _keywords = keywords,
_excludeKeywords = excludeKeywords,
_users = users;
Expand Down Expand Up @@ -292,10 +306,12 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
final bool notify;
@override
final bool? localOnly;
@override
final bool? excludeBots;

@override
String toString() {
return 'AntennasCreateRequest(name: $name, src: $src, userListId: $userListId, keywords: $keywords, excludeKeywords: $excludeKeywords, users: $users, caseSensitive: $caseSensitive, withReplies: $withReplies, withFile: $withFile, notify: $notify, localOnly: $localOnly)';
return 'AntennasCreateRequest(name: $name, src: $src, userListId: $userListId, keywords: $keywords, excludeKeywords: $excludeKeywords, users: $users, caseSensitive: $caseSensitive, withReplies: $withReplies, withFile: $withFile, notify: $notify, localOnly: $localOnly, excludeBots: $excludeBots)';
}

@override
Expand All @@ -319,7 +335,9 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
other.withFile == withFile) &&
(identical(other.notify, notify) || other.notify == notify) &&
(identical(other.localOnly, localOnly) ||
other.localOnly == localOnly));
other.localOnly == localOnly) &&
(identical(other.excludeBots, excludeBots) ||
other.excludeBots == excludeBots));
}

@JsonKey(ignore: true)
Expand All @@ -336,7 +354,8 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest {
withReplies,
withFile,
notify,
localOnly);
localOnly,
excludeBots);

@JsonKey(ignore: true)
@override
Expand Down Expand Up @@ -365,7 +384,8 @@ abstract class _AntennasCreateRequest implements AntennasCreateRequest {
required final bool withReplies,
required final bool withFile,
required final bool notify,
final bool? localOnly}) = _$AntennasCreateRequestImpl;
final bool? localOnly,
final bool? excludeBots}) = _$AntennasCreateRequestImpl;

factory _AntennasCreateRequest.fromJson(Map<String, dynamic> json) =
_$AntennasCreateRequestImpl.fromJson;
Expand Down Expand Up @@ -393,6 +413,8 @@ abstract class _AntennasCreateRequest implements AntennasCreateRequest {
@override
bool? get localOnly;
@override
bool? get excludeBots;
@override
@JsonKey(ignore: true)
_$$AntennasCreateRequestImplCopyWith<_$AntennasCreateRequestImpl>
get copyWith => throw _privateConstructorUsedError;
Expand Down
2 changes: 2 additions & 0 deletions 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.

1 change: 1 addition & 0 deletions lib/src/data/antennas/antennas_update_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class AntennasUpdateRequest with _$AntennasUpdateRequest {
required bool withFile,
required bool notify,
bool? localOnly,
bool? excludeBots,
}) = _AntennasUpdateRequest;

factory AntennasUpdateRequest.fromJson(Map<String, Object?> json) =>
Expand Down
36 changes: 29 additions & 7 deletions lib/src/data/antennas/antennas_update_request.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ mixin _$AntennasUpdateRequest {
bool get withFile => throw _privateConstructorUsedError;
bool get notify => throw _privateConstructorUsedError;
bool? get localOnly => throw _privateConstructorUsedError;
bool? get excludeBots => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
Expand All @@ -58,7 +59,8 @@ abstract class $AntennasUpdateRequestCopyWith<$Res> {
bool withReplies,
bool withFile,
bool notify,
bool? localOnly});
bool? localOnly,
bool? excludeBots});
}

/// @nodoc
Expand Down Expand Up @@ -87,6 +89,7 @@ class _$AntennasUpdateRequestCopyWithImpl<$Res,
Object? withFile = null,
Object? notify = null,
Object? localOnly = freezed,
Object? excludeBots = freezed,
}) {
return _then(_value.copyWith(
antennaId: null == antennaId
Expand Down Expand Up @@ -137,6 +140,10 @@ class _$AntennasUpdateRequestCopyWithImpl<$Res,
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
as bool?,
excludeBots: freezed == excludeBots
? _value.excludeBots
: excludeBots // ignore: cast_nullable_to_non_nullable
as bool?,
) as $Val);
}
}
Expand All @@ -162,7 +169,8 @@ abstract class _$$AntennasUpdateRequestImplCopyWith<$Res>
bool withReplies,
bool withFile,
bool notify,
bool? localOnly});
bool? localOnly,
bool? excludeBots});
}

/// @nodoc
Expand All @@ -189,6 +197,7 @@ class __$$AntennasUpdateRequestImplCopyWithImpl<$Res>
Object? withFile = null,
Object? notify = null,
Object? localOnly = freezed,
Object? excludeBots = freezed,
}) {
return _then(_$AntennasUpdateRequestImpl(
antennaId: null == antennaId
Expand Down Expand Up @@ -239,6 +248,10 @@ class __$$AntennasUpdateRequestImplCopyWithImpl<$Res>
? _value.localOnly
: localOnly // ignore: cast_nullable_to_non_nullable
as bool?,
excludeBots: freezed == excludeBots
? _value.excludeBots
: excludeBots // ignore: cast_nullable_to_non_nullable
as bool?,
));
}
}
Expand All @@ -258,7 +271,8 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
required this.withReplies,
required this.withFile,
required this.notify,
this.localOnly})
this.localOnly,
this.excludeBots})
: _keywords = keywords,
_excludeKeywords = excludeKeywords,
_users = users;
Expand Down Expand Up @@ -308,10 +322,12 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
final bool notify;
@override
final bool? localOnly;
@override
final bool? excludeBots;

@override
String toString() {
return 'AntennasUpdateRequest(antennaId: $antennaId, name: $name, src: $src, userListId: $userListId, keywords: $keywords, excludeKeywords: $excludeKeywords, users: $users, caseSensitive: $caseSensitive, withReplies: $withReplies, withFile: $withFile, notify: $notify, localOnly: $localOnly)';
return 'AntennasUpdateRequest(antennaId: $antennaId, name: $name, src: $src, userListId: $userListId, keywords: $keywords, excludeKeywords: $excludeKeywords, users: $users, caseSensitive: $caseSensitive, withReplies: $withReplies, withFile: $withFile, notify: $notify, localOnly: $localOnly, excludeBots: $excludeBots)';
}

@override
Expand All @@ -337,7 +353,9 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
other.withFile == withFile) &&
(identical(other.notify, notify) || other.notify == notify) &&
(identical(other.localOnly, localOnly) ||
other.localOnly == localOnly));
other.localOnly == localOnly) &&
(identical(other.excludeBots, excludeBots) ||
other.excludeBots == excludeBots));
}

@JsonKey(ignore: true)
Expand All @@ -355,7 +373,8 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest {
withReplies,
withFile,
notify,
localOnly);
localOnly,
excludeBots);

@JsonKey(ignore: true)
@override
Expand Down Expand Up @@ -385,7 +404,8 @@ abstract class _AntennasUpdateRequest implements AntennasUpdateRequest {
required final bool withReplies,
required final bool withFile,
required final bool notify,
final bool? localOnly}) = _$AntennasUpdateRequestImpl;
final bool? localOnly,
final bool? excludeBots}) = _$AntennasUpdateRequestImpl;

factory _AntennasUpdateRequest.fromJson(Map<String, dynamic> json) =
_$AntennasUpdateRequestImpl.fromJson;
Expand Down Expand Up @@ -415,6 +435,8 @@ abstract class _AntennasUpdateRequest implements AntennasUpdateRequest {
@override
bool? get localOnly;
@override
bool? get excludeBots;
@override
@JsonKey(ignore: true)
_$$AntennasUpdateRequestImplCopyWith<_$AntennasUpdateRequestImpl>
get copyWith => throw _privateConstructorUsedError;
Expand Down
2 changes: 2 additions & 0 deletions 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.

1 change: 1 addition & 0 deletions lib/src/data/base/antenna.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class Antenna with _$Antenna {
required bool isActive,
required bool hasUnreadNote,
bool? localOnly,
bool? excludeBots,
}) = _Antenna;

factory Antenna.fromJson(Map<String, dynamic> json) =>
Expand Down
Loading

0 comments on commit 551ccfd

Please sign in to comment.