diff --git a/lib/misskey_dart.dart b/lib/misskey_dart.dart index 7fb6a81..906dde5 100644 --- a/lib/misskey_dart.dart +++ b/lib/misskey_dart.dart @@ -55,6 +55,8 @@ export 'src/data/get_avatar_decorations_response.dart'; export 'src/data/server_info_response.dart'; export 'src/data/emoji_request.dart'; export 'src/data/emoji_response.dart'; +export 'src/data/stats_response.dart'; +export 'src/data/ping_response.dart'; export 'src/data/channels/channels_show_request.dart'; export 'src/data/channels/channels_timeline_request.dart'; export 'src/data/channels/channels_followed_request.dart'; @@ -251,3 +253,4 @@ export 'src/misskey_roles.dart'; export 'src/misskey_users.dart'; export 'src/misskey_bubble_game.dart'; export 'src/misskey_reversi.dart'; +export 'src/misskey_flash.dart'; diff --git a/lib/src/data/streaming/stats_log_response.dart b/lib/src/data/streaming/stats_log_response.dart index eb1c8d6..3ac85ed 100644 --- a/lib/src/data/streaming/stats_log_response.dart +++ b/lib/src/data/streaming/stats_log_response.dart @@ -3,12 +3,12 @@ import 'package:freezed_annotation/freezed_annotation.dart'; part 'stats_log_response.freezed.dart'; part 'stats_log_response.g.dart'; -class StatsResponseConverter - implements JsonConverter> { - const StatsResponseConverter(); +class StreamingStatsConverter + implements JsonConverter> { + const StreamingStatsConverter(); @override - StatsResponse fromJson(Map json) { + StreamingStats fromJson(Map json) { if (json.containsKey("inbox")) { return JobQueueResponse.fromJson(json); } @@ -19,25 +19,25 @@ class StatsResponseConverter } @override - Map toJson(StatsResponse data) => data.toJson(); + Map toJson(StreamingStats data) => data.toJson(); } @freezed -sealed class StatsResponse with _$StatsResponse { - const factory StatsResponse.serverMetrics({ +sealed class StreamingStats with _$StreamingStats { + const factory StreamingStats.serverMetrics({ required double cpu, required StatsLogFs fs, required StatsLogMem mem, required StatsLogNet net, }) = ServerMetricsResponse; - const factory StatsResponse.jobQueue({ + const factory StreamingStats.jobQueue({ required QueueStatsLogResponseData inbox, required QueueStatsLogResponseData deliver, }) = JobQueueResponse; - factory StatsResponse.fromJson(Map json) => - _$StatsResponseFromJson(json); + factory StreamingStats.fromJson(Map json) => + _$StreamingStatsFromJson(json); } @freezed diff --git a/lib/src/data/streaming/stats_log_response.freezed.dart b/lib/src/data/streaming/stats_log_response.freezed.dart index f5e2e6a..0867e45 100644 --- a/lib/src/data/streaming/stats_log_response.freezed.dart +++ b/lib/src/data/streaming/stats_log_response.freezed.dart @@ -14,7 +14,7 @@ T _$identity(T value) => value; final _privateConstructorUsedError = UnsupportedError( 'It seems like you constructed your class using `MyClass._()`. This constructor is only meant to be used by freezed and you are not supposed to need it nor use it.\nPlease check the documentation here for more information: https://github.com/rrousselGit/freezed#custom-getters-and-methods'); -StatsResponse _$StatsResponseFromJson(Map json) { +StreamingStats _$StreamingStatsFromJson(Map json) { switch (json['runtimeType']) { case 'serverMetrics': return ServerMetricsResponse.fromJson(json); @@ -22,13 +22,13 @@ StatsResponse _$StatsResponseFromJson(Map json) { return JobQueueResponse.fromJson(json); default: - throw CheckedFromJsonException(json, 'runtimeType', 'StatsResponse', + throw CheckedFromJsonException(json, 'runtimeType', 'StreamingStats', 'Invalid union type "${json['runtimeType']}"!'); } } /// @nodoc -mixin _$StatsResponse { +mixin _$StreamingStats { @optionalTypeArgs TResult when({ required TResult Function( @@ -83,16 +83,16 @@ mixin _$StatsResponse { } /// @nodoc -abstract class $StatsResponseCopyWith<$Res> { - factory $StatsResponseCopyWith( - StatsResponse value, $Res Function(StatsResponse) then) = - _$StatsResponseCopyWithImpl<$Res, StatsResponse>; +abstract class $StreamingStatsCopyWith<$Res> { + factory $StreamingStatsCopyWith( + StreamingStats value, $Res Function(StreamingStats) then) = + _$StreamingStatsCopyWithImpl<$Res, StreamingStats>; } /// @nodoc -class _$StatsResponseCopyWithImpl<$Res, $Val extends StatsResponse> - implements $StatsResponseCopyWith<$Res> { - _$StatsResponseCopyWithImpl(this._value, this._then); +class _$StreamingStatsCopyWithImpl<$Res, $Val extends StreamingStats> + implements $StreamingStatsCopyWith<$Res> { + _$StreamingStatsCopyWithImpl(this._value, this._then); // ignore: unused_field final $Val _value; @@ -116,7 +116,7 @@ abstract class _$$ServerMetricsResponseImplCopyWith<$Res> { /// @nodoc class __$$ServerMetricsResponseImplCopyWithImpl<$Res> - extends _$StatsResponseCopyWithImpl<$Res, _$ServerMetricsResponseImpl> + extends _$StreamingStatsCopyWithImpl<$Res, _$ServerMetricsResponseImpl> implements _$$ServerMetricsResponseImplCopyWith<$Res> { __$$ServerMetricsResponseImplCopyWithImpl(_$ServerMetricsResponseImpl _value, $Res Function(_$ServerMetricsResponseImpl) _then) @@ -203,7 +203,7 @@ class _$ServerMetricsResponseImpl implements ServerMetricsResponse { @override String toString() { - return 'StatsResponse.serverMetrics(cpu: $cpu, fs: $fs, mem: $mem, net: $net)'; + return 'StreamingStats.serverMetrics(cpu: $cpu, fs: $fs, mem: $mem, net: $net)'; } @override @@ -310,7 +310,7 @@ class _$ServerMetricsResponseImpl implements ServerMetricsResponse { } } -abstract class ServerMetricsResponse implements StatsResponse { +abstract class ServerMetricsResponse implements StreamingStats { const factory ServerMetricsResponse( {required final double cpu, required final StatsLogFs fs, @@ -344,7 +344,7 @@ abstract class _$$JobQueueResponseImplCopyWith<$Res> { /// @nodoc class __$$JobQueueResponseImplCopyWithImpl<$Res> - extends _$StatsResponseCopyWithImpl<$Res, _$JobQueueResponseImpl> + extends _$StreamingStatsCopyWithImpl<$Res, _$JobQueueResponseImpl> implements _$$JobQueueResponseImplCopyWith<$Res> { __$$JobQueueResponseImplCopyWithImpl(_$JobQueueResponseImpl _value, $Res Function(_$JobQueueResponseImpl) _then) @@ -405,7 +405,7 @@ class _$JobQueueResponseImpl implements JobQueueResponse { @override String toString() { - return 'StatsResponse.jobQueue(inbox: $inbox, deliver: $deliver)'; + return 'StreamingStats.jobQueue(inbox: $inbox, deliver: $deliver)'; } @override @@ -510,7 +510,7 @@ class _$JobQueueResponseImpl implements JobQueueResponse { } } -abstract class JobQueueResponse implements StatsResponse { +abstract class JobQueueResponse implements StreamingStats { const factory JobQueueResponse( {required final QueueStatsLogResponseData inbox, required final QueueStatsLogResponseData deliver}) = diff --git a/lib/src/data/streaming/streaming_response.dart b/lib/src/data/streaming/streaming_response.dart index 92779ec..6f51926 100644 --- a/lib/src/data/streaming/streaming_response.dart +++ b/lib/src/data/streaming/streaming_response.dart @@ -94,13 +94,13 @@ sealed class ChannelStreamEvent with _$ChannelStreamEvent { @FreezedUnionValue("statsLog") const factory ChannelStreamEvent.statsLog({ required String id, - @StatsResponseConverter() required List body, + @StreamingStatsConverter() required List body, }) = StatsLogChannelEvent; @FreezedUnionValue("stats") const factory ChannelStreamEvent.stats({ required String id, - @StatsResponseConverter() required StatsResponse body, + @StreamingStatsConverter() required StreamingStats body, }) = StatsChannelEvent; // list diff --git a/lib/src/data/streaming/streaming_response.freezed.dart b/lib/src/data/streaming/streaming_response.freezed.dart index ed79c4b..a4a1f95 100644 --- a/lib/src/data/streaming/streaming_response.freezed.dart +++ b/lib/src/data/streaming/streaming_response.freezed.dart @@ -2288,10 +2288,10 @@ mixin _$ChannelStreamEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -2321,9 +2321,10 @@ mixin _$ChannelStreamEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -2352,9 +2353,9 @@ mixin _$ChannelStreamEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -2620,10 +2621,10 @@ class _$NoteChannelEventImpl implements NoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -2656,9 +2657,10 @@ class _$NoteChannelEventImpl implements NoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -2690,9 +2692,9 @@ class _$NoteChannelEventImpl implements NoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -2864,7 +2866,7 @@ abstract class _$$StatsLogChannelEventImplCopyWith<$Res> __$$StatsLogChannelEventImplCopyWithImpl<$Res>; @override @useResult - $Res call({String id, @StatsResponseConverter() List body}); + $Res call({String id, @StreamingStatsConverter() List body}); } /// @nodoc @@ -2889,7 +2891,7 @@ class __$$StatsLogChannelEventImplCopyWithImpl<$Res> body: null == body ? _value._body : body // ignore: cast_nullable_to_non_nullable - as List, + as List, )); } } @@ -2899,7 +2901,7 @@ class __$$StatsLogChannelEventImplCopyWithImpl<$Res> class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { const _$StatsLogChannelEventImpl( {required this.id, - @StatsResponseConverter() required final List body, + @StreamingStatsConverter() required final List body, final String? $type}) : _body = body, $type = $type ?? 'statsLog'; @@ -2909,10 +2911,10 @@ class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { @override final String id; - final List _body; + final List _body; @override - @StatsResponseConverter() - List get body { + @StreamingStatsConverter() + List get body { if (_body is EqualUnmodifiableListView) return _body; // ignore: implicit_dynamic_type return EqualUnmodifiableListView(_body); @@ -2955,10 +2957,10 @@ class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -2991,9 +2993,10 @@ class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -3025,9 +3028,9 @@ class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -3173,17 +3176,17 @@ class _$StatsLogChannelEventImpl implements StatsLogChannelEvent { abstract class StatsLogChannelEvent implements ChannelStreamEvent { const factory StatsLogChannelEvent( - {required final String id, - @StatsResponseConverter() required final List body}) = - _$StatsLogChannelEventImpl; + {required final String id, + @StreamingStatsConverter() + required final List body}) = _$StatsLogChannelEventImpl; factory StatsLogChannelEvent.fromJson(Map json) = _$StatsLogChannelEventImpl.fromJson; @override String get id; - @StatsResponseConverter() - List get body; + @StreamingStatsConverter() + List get body; @override @JsonKey(ignore: true) _$$StatsLogChannelEventImplCopyWith<_$StatsLogChannelEventImpl> @@ -3198,9 +3201,9 @@ abstract class _$$StatsChannelEventImplCopyWith<$Res> __$$StatsChannelEventImplCopyWithImpl<$Res>; @override @useResult - $Res call({String id, @StatsResponseConverter() StatsResponse body}); + $Res call({String id, @StreamingStatsConverter() StreamingStats body}); - $StatsResponseCopyWith<$Res> get body; + $StreamingStatsCopyWith<$Res> get body; } /// @nodoc @@ -3225,14 +3228,14 @@ class __$$StatsChannelEventImplCopyWithImpl<$Res> body: null == body ? _value.body : body // ignore: cast_nullable_to_non_nullable - as StatsResponse, + as StreamingStats, )); } @override @pragma('vm:prefer-inline') - $StatsResponseCopyWith<$Res> get body { - return $StatsResponseCopyWith<$Res>(_value.body, (value) { + $StreamingStatsCopyWith<$Res> get body { + return $StreamingStatsCopyWith<$Res>(_value.body, (value) { return _then(_value.copyWith(body: value)); }); } @@ -3243,7 +3246,7 @@ class __$$StatsChannelEventImplCopyWithImpl<$Res> class _$StatsChannelEventImpl implements StatsChannelEvent { const _$StatsChannelEventImpl( {required this.id, - @StatsResponseConverter() required this.body, + @StreamingStatsConverter() required this.body, final String? $type}) : $type = $type ?? 'stats'; @@ -3253,8 +3256,8 @@ class _$StatsChannelEventImpl implements StatsChannelEvent { @override final String id; @override - @StatsResponseConverter() - final StatsResponse body; + @StreamingStatsConverter() + final StreamingStats body; @JsonKey(name: 'type') final String $type; @@ -3291,10 +3294,10 @@ class _$StatsChannelEventImpl implements StatsChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -3327,9 +3330,10 @@ class _$StatsChannelEventImpl implements StatsChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -3361,9 +3365,9 @@ class _$StatsChannelEventImpl implements StatsChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -3510,7 +3514,7 @@ class _$StatsChannelEventImpl implements StatsChannelEvent { abstract class StatsChannelEvent implements ChannelStreamEvent { const factory StatsChannelEvent( {required final String id, - @StatsResponseConverter() required final StatsResponse body}) = + @StreamingStatsConverter() required final StreamingStats body}) = _$StatsChannelEventImpl; factory StatsChannelEvent.fromJson(Map json) = @@ -3518,8 +3522,8 @@ abstract class StatsChannelEvent implements ChannelStreamEvent { @override String get id; - @StatsResponseConverter() - StatsResponse get body; + @StreamingStatsConverter() + StreamingStats get body; @override @JsonKey(ignore: true) _$$StatsChannelEventImplCopyWith<_$StatsChannelEventImpl> get copyWith => @@ -3625,10 +3629,10 @@ class _$UserAddedChannelEventImpl implements UserAddedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -3661,9 +3665,10 @@ class _$UserAddedChannelEventImpl implements UserAddedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -3695,9 +3700,9 @@ class _$UserAddedChannelEventImpl implements UserAddedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -3959,10 +3964,10 @@ class _$UserRemovedChannelEventImpl implements UserRemovedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -3995,9 +4000,10 @@ class _$UserRemovedChannelEventImpl implements UserRemovedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -4029,9 +4035,9 @@ class _$UserRemovedChannelEventImpl implements UserRemovedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -4293,10 +4299,10 @@ class _$NotificationChannelEventImpl implements NotificationChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -4329,9 +4335,10 @@ class _$NotificationChannelEventImpl implements NotificationChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -4363,9 +4370,9 @@ class _$NotificationChannelEventImpl implements NotificationChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -4625,10 +4632,10 @@ class _$MentionChannelEventImpl implements MentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -4661,9 +4668,10 @@ class _$MentionChannelEventImpl implements MentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -4695,9 +4703,9 @@ class _$MentionChannelEventImpl implements MentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -4956,10 +4964,10 @@ class _$ReplyChannelEventImpl implements ReplyChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -4992,9 +5000,10 @@ class _$ReplyChannelEventImpl implements ReplyChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -5026,9 +5035,9 @@ class _$ReplyChannelEventImpl implements ReplyChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -5287,10 +5296,10 @@ class _$RenoteChannelEventImpl implements RenoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -5323,9 +5332,10 @@ class _$RenoteChannelEventImpl implements RenoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -5357,9 +5367,9 @@ class _$RenoteChannelEventImpl implements RenoteChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -5618,10 +5628,10 @@ class _$FollowChannelEventImpl implements FollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -5654,9 +5664,10 @@ class _$FollowChannelEventImpl implements FollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -5688,9 +5699,9 @@ class _$FollowChannelEventImpl implements FollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -5950,10 +5961,10 @@ class _$FollowedChannelEventImpl implements FollowedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -5986,9 +5997,10 @@ class _$FollowedChannelEventImpl implements FollowedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -6020,9 +6032,9 @@ class _$FollowedChannelEventImpl implements FollowedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -6282,10 +6294,10 @@ class _$UnfollowChannelEventImpl implements UnfollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -6318,9 +6330,10 @@ class _$UnfollowChannelEventImpl implements UnfollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -6352,9 +6365,9 @@ class _$UnfollowChannelEventImpl implements UnfollowChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -6614,10 +6627,10 @@ class _$MeUpdatedChannelEventImpl implements MeUpdatedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -6650,9 +6663,10 @@ class _$MeUpdatedChannelEventImpl implements MeUpdatedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -6684,9 +6698,9 @@ class _$MeUpdatedChannelEventImpl implements MeUpdatedChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -6933,10 +6947,10 @@ class _$ReadAllNotificationsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -6969,9 +6983,10 @@ class _$ReadAllNotificationsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -7003,9 +7018,9 @@ class _$ReadAllNotificationsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -7269,10 +7284,10 @@ class _$UnreadNotificationChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -7305,9 +7320,10 @@ class _$UnreadNotificationChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -7339,9 +7355,9 @@ class _$UnreadNotificationChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -7595,10 +7611,10 @@ class _$UnreadMentionChannelEventImpl implements UnreadMentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -7631,9 +7647,10 @@ class _$UnreadMentionChannelEventImpl implements UnreadMentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -7665,9 +7682,9 @@ class _$UnreadMentionChannelEventImpl implements UnreadMentionChannelEvent { @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -7914,10 +7931,10 @@ class _$ReadAllUnreadMentionsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -7950,9 +7967,10 @@ class _$ReadAllUnreadMentionsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -7984,9 +8002,9 @@ class _$ReadAllUnreadMentionsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -8241,10 +8259,10 @@ class _$UnreadSpecifiedNoteChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -8277,9 +8295,10 @@ class _$UnreadSpecifiedNoteChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -8311,9 +8330,9 @@ class _$UnreadSpecifiedNoteChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -8562,10 +8581,10 @@ class _$ReadAllUnreadSpecifiedNotesChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -8598,9 +8617,10 @@ class _$ReadAllUnreadSpecifiedNotesChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -8632,9 +8652,9 @@ class _$ReadAllUnreadSpecifiedNotesChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -8901,10 +8921,10 @@ class _$ReceiveFollowRequestChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -8937,9 +8957,10 @@ class _$ReceiveFollowRequestChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -8971,9 +8992,9 @@ class _$ReceiveFollowRequestChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, @@ -9221,10 +9242,10 @@ class _$ReadAllAnnouncementsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body) note, required TResult Function( - String id, @StatsResponseConverter() List body) + String id, @StreamingStatsConverter() List body) statsLog, required TResult Function( - String id, @StatsResponseConverter() StatsResponse body) + String id, @StreamingStatsConverter() StreamingStats body) stats, required TResult Function(String id, UserLite body) userAdded, required TResult Function(String id, UserLite body) userRemoved, @@ -9257,9 +9278,10 @@ class _$ReadAllAnnouncementsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult? Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult? Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult? Function( + String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult? Function(String id, UserLite body)? userAdded, TResult? Function(String id, UserLite body)? userRemoved, @@ -9291,9 +9313,9 @@ class _$ReadAllAnnouncementsChannelEventImpl @ChannelEventTypeJsonConverter() ChannelEventType type, Note body)? note, TResult Function( - String id, @StatsResponseConverter() List body)? + String id, @StreamingStatsConverter() List body)? statsLog, - TResult Function(String id, @StatsResponseConverter() StatsResponse body)? + TResult Function(String id, @StreamingStatsConverter() StreamingStats body)? stats, TResult Function(String id, UserLite body)? userAdded, TResult Function(String id, UserLite body)? userRemoved, diff --git a/lib/src/data/streaming/streaming_response.g.dart b/lib/src/data/streaming/streaming_response.g.dart index 3130889..5ce4945 100644 --- a/lib/src/data/streaming/streaming_response.g.dart +++ b/lib/src/data/streaming/streaming_response.g.dart @@ -222,7 +222,7 @@ _$StatsLogChannelEventImpl _$$StatsLogChannelEventImplFromJson( _$StatsLogChannelEventImpl( id: json['id'] as String, body: (json['body'] as List) - .map((e) => const StatsResponseConverter() + .map((e) => const StreamingStatsConverter() .fromJson(e as Map)) .toList(), $type: json['type'] as String?, @@ -232,7 +232,8 @@ Map _$$StatsLogChannelEventImplToJson( _$StatsLogChannelEventImpl instance) => { 'id': instance.id, - 'body': instance.body.map(const StatsResponseConverter().toJson).toList(), + 'body': + instance.body.map(const StreamingStatsConverter().toJson).toList(), 'type': instance.$type, }; @@ -240,7 +241,7 @@ _$StatsChannelEventImpl _$$StatsChannelEventImplFromJson( Map json) => _$StatsChannelEventImpl( id: json['id'] as String, - body: const StatsResponseConverter() + body: const StreamingStatsConverter() .fromJson(json['body'] as Map), $type: json['type'] as String?, ); @@ -249,7 +250,7 @@ Map _$$StatsChannelEventImplToJson( _$StatsChannelEventImpl instance) => { 'id': instance.id, - 'body': const StatsResponseConverter().toJson(instance.body), + 'body': const StreamingStatsConverter().toJson(instance.body), 'type': instance.$type, }; diff --git a/lib/src/misskey_dart_base.dart b/lib/src/misskey_dart_base.dart index ec73ffa..2307273 100644 --- a/lib/src/misskey_dart_base.dart +++ b/lib/src/misskey_dart_base.dart @@ -1,8 +1,6 @@ import 'dart:async'; import 'package:misskey_dart/misskey_dart.dart'; -import 'package:misskey_dart/src/data/ping_response.dart'; -import 'package:misskey_dart/src/misskey_flash.dart'; import 'package:misskey_dart/src/services/api_service.dart'; import 'package:misskey_dart/src/services/streaming_service.dart'; import 'package:misskey_dart/src/services/streaming_service_impl.dart'; @@ -109,9 +107,9 @@ class Misskey { } /// サーバー全体の統計情報を取得します。 - Future stats() async { + Future stats() async { final response = await apiService.post>("stats", {}); - return ServerMetricsResponse.fromJson(response); + return StatsResponse.fromJson(response); } /// サーバーへの応答時間を取得します。