diff --git a/lib/src/data/antennas/antennas_create_request.dart b/lib/src/data/antennas/antennas_create_request.dart index e5707c13..d635e672 100644 --- a/lib/src/data/antennas/antennas_create_request.dart +++ b/lib/src/data/antennas/antennas_create_request.dart @@ -18,6 +18,7 @@ class AntennasCreateRequest with _$AntennasCreateRequest { required bool withFile, required bool notify, bool? localOnly, + bool? excludeBots, }) = _AntennasCreateRequest; factory AntennasCreateRequest.fromJson(Map json) => diff --git a/lib/src/data/antennas/antennas_create_request.freezed.dart b/lib/src/data/antennas/antennas_create_request.freezed.dart index 79bcf725..c05865a8 100644 --- a/lib/src/data/antennas/antennas_create_request.freezed.dart +++ b/lib/src/data/antennas/antennas_create_request.freezed.dart @@ -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 toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -56,7 +57,8 @@ abstract class $AntennasCreateRequestCopyWith<$Res> { bool withReplies, bool withFile, bool notify, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -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 @@ -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); } } @@ -154,7 +161,8 @@ abstract class _$$AntennasCreateRequestImplCopyWith<$Res> bool withReplies, bool withFile, bool notify, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -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 @@ -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?, )); } } @@ -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; @@ -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 @@ -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) @@ -336,7 +354,8 @@ class _$AntennasCreateRequestImpl implements _AntennasCreateRequest { withReplies, withFile, notify, - localOnly); + localOnly, + excludeBots); @JsonKey(ignore: true) @override @@ -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 json) = _$AntennasCreateRequestImpl.fromJson; @@ -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; diff --git a/lib/src/data/antennas/antennas_create_request.g.dart b/lib/src/data/antennas/antennas_create_request.g.dart index 5e7ed56b..a3eafd6f 100644 --- a/lib/src/data/antennas/antennas_create_request.g.dart +++ b/lib/src/data/antennas/antennas_create_request.g.dart @@ -24,6 +24,7 @@ _$AntennasCreateRequestImpl _$$AntennasCreateRequestImplFromJson( withFile: json['withFile'] as bool, notify: json['notify'] as bool, localOnly: json['localOnly'] as bool?, + excludeBots: json['excludeBots'] as bool?, ); Map _$$AntennasCreateRequestImplToJson( @@ -40,6 +41,7 @@ Map _$$AntennasCreateRequestImplToJson( 'withFile': instance.withFile, 'notify': instance.notify, 'localOnly': instance.localOnly, + 'excludeBots': instance.excludeBots, }; const _$AntennaSourceEnumMap = { diff --git a/lib/src/data/antennas/antennas_update_request.dart b/lib/src/data/antennas/antennas_update_request.dart index 1a4192b6..f577cbd4 100644 --- a/lib/src/data/antennas/antennas_update_request.dart +++ b/lib/src/data/antennas/antennas_update_request.dart @@ -19,6 +19,7 @@ class AntennasUpdateRequest with _$AntennasUpdateRequest { required bool withFile, required bool notify, bool? localOnly, + bool? excludeBots, }) = _AntennasUpdateRequest; factory AntennasUpdateRequest.fromJson(Map json) => diff --git a/lib/src/data/antennas/antennas_update_request.freezed.dart b/lib/src/data/antennas/antennas_update_request.freezed.dart index d7a8c290..8fa34912 100644 --- a/lib/src/data/antennas/antennas_update_request.freezed.dart +++ b/lib/src/data/antennas/antennas_update_request.freezed.dart @@ -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 toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -58,7 +59,8 @@ abstract class $AntennasUpdateRequestCopyWith<$Res> { bool withReplies, bool withFile, bool notify, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -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 @@ -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); } } @@ -162,7 +169,8 @@ abstract class _$$AntennasUpdateRequestImplCopyWith<$Res> bool withReplies, bool withFile, bool notify, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -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 @@ -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?, )); } } @@ -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; @@ -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 @@ -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) @@ -355,7 +373,8 @@ class _$AntennasUpdateRequestImpl implements _AntennasUpdateRequest { withReplies, withFile, notify, - localOnly); + localOnly, + excludeBots); @JsonKey(ignore: true) @override @@ -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 json) = _$AntennasUpdateRequestImpl.fromJson; @@ -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; diff --git a/lib/src/data/antennas/antennas_update_request.g.dart b/lib/src/data/antennas/antennas_update_request.g.dart index ca801ee0..c1134058 100644 --- a/lib/src/data/antennas/antennas_update_request.g.dart +++ b/lib/src/data/antennas/antennas_update_request.g.dart @@ -25,6 +25,7 @@ _$AntennasUpdateRequestImpl _$$AntennasUpdateRequestImplFromJson( withFile: json['withFile'] as bool, notify: json['notify'] as bool, localOnly: json['localOnly'] as bool?, + excludeBots: json['excludeBots'] as bool?, ); Map _$$AntennasUpdateRequestImplToJson( @@ -42,6 +43,7 @@ Map _$$AntennasUpdateRequestImplToJson( 'withFile': instance.withFile, 'notify': instance.notify, 'localOnly': instance.localOnly, + 'excludeBots': instance.excludeBots, }; const _$AntennaSourceEnumMap = { diff --git a/lib/src/data/base/antenna.dart b/lib/src/data/base/antenna.dart index 9de6f358..3864f4c6 100644 --- a/lib/src/data/base/antenna.dart +++ b/lib/src/data/base/antenna.dart @@ -23,6 +23,7 @@ class Antenna with _$Antenna { required bool isActive, required bool hasUnreadNote, bool? localOnly, + bool? excludeBots, }) = _Antenna; factory Antenna.fromJson(Map json) => diff --git a/lib/src/data/base/antenna.freezed.dart b/lib/src/data/base/antenna.freezed.dart index 91324344..f6c47e0b 100644 --- a/lib/src/data/base/antenna.freezed.dart +++ b/lib/src/data/base/antenna.freezed.dart @@ -36,6 +36,7 @@ mixin _$Antenna { bool get isActive => throw _privateConstructorUsedError; bool get hasUnreadNote => throw _privateConstructorUsedError; bool? get localOnly => throw _privateConstructorUsedError; + bool? get excludeBots => throw _privateConstructorUsedError; Map toJson() => throw _privateConstructorUsedError; @JsonKey(ignore: true) @@ -62,7 +63,8 @@ abstract class $AntennaCopyWith<$Res> { bool withFile, bool isActive, bool hasUnreadNote, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -93,6 +95,7 @@ class _$AntennaCopyWithImpl<$Res, $Val extends Antenna> Object? isActive = null, Object? hasUnreadNote = null, Object? localOnly = freezed, + Object? excludeBots = freezed, }) { return _then(_value.copyWith( id: null == id @@ -155,6 +158,10 @@ class _$AntennaCopyWithImpl<$Res, $Val extends Antenna> ? _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); } } @@ -181,7 +188,8 @@ abstract class _$$AntennaImplCopyWith<$Res> implements $AntennaCopyWith<$Res> { bool withFile, bool isActive, bool hasUnreadNote, - bool? localOnly}); + bool? localOnly, + bool? excludeBots}); } /// @nodoc @@ -210,6 +218,7 @@ class __$$AntennaImplCopyWithImpl<$Res> Object? isActive = null, Object? hasUnreadNote = null, Object? localOnly = freezed, + Object? excludeBots = freezed, }) { return _then(_$AntennaImpl( id: null == id @@ -272,6 +281,10 @@ class __$$AntennaImplCopyWithImpl<$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?, )); } } @@ -294,7 +307,8 @@ class _$AntennaImpl implements _Antenna { required this.withFile, required this.isActive, required this.hasUnreadNote, - this.localOnly}) + this.localOnly, + this.excludeBots}) : _keywords = keywords, _excludeKeywords = excludeKeywords, _users = users; @@ -351,10 +365,12 @@ class _$AntennaImpl implements _Antenna { final bool hasUnreadNote; @override final bool? localOnly; + @override + final bool? excludeBots; @override String toString() { - return 'Antenna(id: $id, createdAt: $createdAt, name: $name, keywords: $keywords, excludeKeywords: $excludeKeywords, src: $src, userListId: $userListId, users: $users, caseSensitive: $caseSensitive, notify: $notify, withReplies: $withReplies, withFile: $withFile, isActive: $isActive, hasUnreadNote: $hasUnreadNote, localOnly: $localOnly)'; + return 'Antenna(id: $id, createdAt: $createdAt, name: $name, keywords: $keywords, excludeKeywords: $excludeKeywords, src: $src, userListId: $userListId, users: $users, caseSensitive: $caseSensitive, notify: $notify, withReplies: $withReplies, withFile: $withFile, isActive: $isActive, hasUnreadNote: $hasUnreadNote, localOnly: $localOnly, excludeBots: $excludeBots)'; } @override @@ -385,7 +401,9 @@ class _$AntennaImpl implements _Antenna { (identical(other.hasUnreadNote, hasUnreadNote) || other.hasUnreadNote == hasUnreadNote) && (identical(other.localOnly, localOnly) || - other.localOnly == localOnly)); + other.localOnly == localOnly) && + (identical(other.excludeBots, excludeBots) || + other.excludeBots == excludeBots)); } @JsonKey(ignore: true) @@ -406,7 +424,8 @@ class _$AntennaImpl implements _Antenna { withFile, isActive, hasUnreadNote, - localOnly); + localOnly, + excludeBots); @JsonKey(ignore: true) @override @@ -438,7 +457,8 @@ abstract class _Antenna implements Antenna { required final bool withFile, required final bool isActive, required final bool hasUnreadNote, - final bool? localOnly}) = _$AntennaImpl; + final bool? localOnly, + final bool? excludeBots}) = _$AntennaImpl; factory _Antenna.fromJson(Map json) = _$AntennaImpl.fromJson; @@ -474,6 +494,8 @@ abstract class _Antenna implements Antenna { @override bool? get localOnly; @override + bool? get excludeBots; + @override @JsonKey(ignore: true) _$$AntennaImplCopyWith<_$AntennaImpl> get copyWith => throw _privateConstructorUsedError; diff --git a/lib/src/data/base/antenna.g.dart b/lib/src/data/base/antenna.g.dart index 66d91154..185df503 100644 --- a/lib/src/data/base/antenna.g.dart +++ b/lib/src/data/base/antenna.g.dart @@ -28,6 +28,7 @@ _$AntennaImpl _$$AntennaImplFromJson(Map json) => isActive: json['isActive'] as bool, hasUnreadNote: json['hasUnreadNote'] as bool, localOnly: json['localOnly'] as bool?, + excludeBots: json['excludeBots'] as bool?, ); Map _$$AntennaImplToJson(_$AntennaImpl instance) => @@ -47,6 +48,7 @@ Map _$$AntennaImplToJson(_$AntennaImpl instance) => 'isActive': instance.isActive, 'hasUnreadNote': instance.hasUnreadNote, 'localOnly': instance.localOnly, + 'excludeBots': instance.excludeBots, }; const _$AntennaSourceEnumMap = {