Skip to content

Commit

Permalink
一部のサーバーの情報取得失敗に対応
Browse files Browse the repository at this point in the history
  • Loading branch information
shiosyakeyakini-info committed Oct 18, 2024
1 parent 6fcaf43 commit 8d0a0d5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -445,7 +445,7 @@ class _$FederationShowInstanceResponseImpl
@override
final String name;
@override
final String description;
final String? description;
@override
final String? maintainerName;
@override
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -621,7 +621,7 @@ abstract class _FederationShowInstanceResponse
@override
String get name;
@override
String get description;
String? get description;
@override
String? get maintainerName;
@override
Expand Down

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

1 change: 0 additions & 1 deletion lib/src/misskey_dart_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8d0a0d5

Please sign in to comment.