From 8d0a0d52d496f2971a7ba336c3f055624101b4c0 Mon Sep 17 00:00:00 2001 From: sorairo Date: Fri, 18 Oct 2024 14:32:05 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=83=A8=E3=81=AE=E3=82=B5=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=81=AE=E6=83=85=E5=A0=B1=E5=8F=96=E5=BE=97?= =?UTF-8?q?=E5=A4=B1=E6=95=97=E3=81=AB=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../federation_show_instance_response.dart | 2 +- ...ration_show_instance_response.freezed.dart | 26 +++++++++---------- .../federation_show_instance_response.g.dart | 2 +- lib/src/misskey_dart_base.dart | 1 - 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/lib/src/data/federation/federation_show_instance_response.dart b/lib/src/data/federation/federation_show_instance_response.dart index fba569fd..ceb8a812 100644 --- a/lib/src/data/federation/federation_show_instance_response.dart +++ b/lib/src/data/federation/federation_show_instance_response.dart @@ -24,7 +24,7 @@ class FederationShowInstanceResponse with _$FederationShowInstanceResponse { String? softwareVersion, bool? openRegistrations, required String name, - required String description, + String? description, String? maintainerName, String? maintainerEmail, @NullableUriConverter() Uri? iconUrl, diff --git a/lib/src/data/federation/federation_show_instance_response.freezed.dart b/lib/src/data/federation/federation_show_instance_response.freezed.dart index d2094508..772a7bca 100644 --- a/lib/src/data/federation/federation_show_instance_response.freezed.dart +++ b/lib/src/data/federation/federation_show_instance_response.freezed.dart @@ -37,7 +37,7 @@ mixin _$FederationShowInstanceResponse { String? get softwareVersion => throw _privateConstructorUsedError; bool? get openRegistrations => throw _privateConstructorUsedError; String get name => throw _privateConstructorUsedError; - String get description => throw _privateConstructorUsedError; + String? get description => throw _privateConstructorUsedError; String? get maintainerName => throw _privateConstructorUsedError; String? get maintainerEmail => throw _privateConstructorUsedError; @NullableUriConverter() @@ -79,7 +79,7 @@ abstract class $FederationShowInstanceResponseCopyWith<$Res> { String? softwareVersion, bool? openRegistrations, String name, - String description, + String? description, String? maintainerName, String? maintainerEmail, @NullableUriConverter() Uri? iconUrl, @@ -117,7 +117,7 @@ class _$FederationShowInstanceResponseCopyWithImpl<$Res, Object? softwareVersion = freezed, Object? openRegistrations = freezed, Object? name = null, - Object? description = null, + Object? description = freezed, Object? maintainerName = freezed, Object? maintainerEmail = freezed, Object? iconUrl = freezed, @@ -186,10 +186,10 @@ class _$FederationShowInstanceResponseCopyWithImpl<$Res, ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, - description: null == description + description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable - as String, + as String?, maintainerName: freezed == maintainerName ? _value.maintainerName : maintainerName // ignore: cast_nullable_to_non_nullable @@ -243,7 +243,7 @@ abstract class _$$FederationShowInstanceResponseImplCopyWith<$Res> String? softwareVersion, bool? openRegistrations, String name, - String description, + String? description, String? maintainerName, String? maintainerEmail, @NullableUriConverter() Uri? iconUrl, @@ -280,7 +280,7 @@ class __$$FederationShowInstanceResponseImplCopyWithImpl<$Res> Object? softwareVersion = freezed, Object? openRegistrations = freezed, Object? name = null, - Object? description = null, + Object? description = freezed, Object? maintainerName = freezed, Object? maintainerEmail = freezed, Object? iconUrl = freezed, @@ -349,10 +349,10 @@ class __$$FederationShowInstanceResponseImplCopyWithImpl<$Res> ? _value.name : name // ignore: cast_nullable_to_non_nullable as String, - description: null == description + description: freezed == description ? _value.description : description // ignore: cast_nullable_to_non_nullable - as String, + as String?, maintainerName: freezed == maintainerName ? _value.maintainerName : maintainerName // ignore: cast_nullable_to_non_nullable @@ -401,7 +401,7 @@ class _$FederationShowInstanceResponseImpl this.softwareVersion, this.openRegistrations, required this.name, - required this.description, + this.description, this.maintainerName, this.maintainerEmail, @NullableUriConverter() this.iconUrl, @@ -445,7 +445,7 @@ class _$FederationShowInstanceResponseImpl @override final String name; @override - final String description; + final String? description; @override final String? maintainerName; @override @@ -577,7 +577,7 @@ abstract class _FederationShowInstanceResponse final String? softwareVersion, final bool? openRegistrations, required final String name, - required final String description, + final String? description, final String? maintainerName, final String? maintainerEmail, @NullableUriConverter() final Uri? iconUrl, @@ -621,7 +621,7 @@ abstract class _FederationShowInstanceResponse @override String get name; @override - String get description; + String? get description; @override String? get maintainerName; @override diff --git a/lib/src/data/federation/federation_show_instance_response.g.dart b/lib/src/data/federation/federation_show_instance_response.g.dart index 0767adab..b6cd977e 100644 --- a/lib/src/data/federation/federation_show_instance_response.g.dart +++ b/lib/src/data/federation/federation_show_instance_response.g.dart @@ -25,7 +25,7 @@ _$FederationShowInstanceResponseImpl softwareVersion: json['softwareVersion'] as String?, openRegistrations: json['openRegistrations'] as bool?, name: json['name'] as String, - description: json['description'] as String, + description: json['description'] as String?, maintainerName: json['maintainerName'] as String?, maintainerEmail: json['maintainerEmail'] as String?, iconUrl: _$JsonConverterFromJson( diff --git a/lib/src/misskey_dart_base.dart b/lib/src/misskey_dart_base.dart index 2307273c..3480abd4 100644 --- a/lib/src/misskey_dart_base.dart +++ b/lib/src/misskey_dart_base.dart @@ -2,7 +2,6 @@ import 'dart:async'; import 'package:misskey_dart/misskey_dart.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'; class Misskey {