Skip to content

Commit

Permalink
Merge pull request #69 from poppingmoon/followed-message
Browse files Browse the repository at this point in the history
フォローされた際のメッセージを追加
  • Loading branch information
shiosyakeyakini-info authored Oct 14, 2024
2 parents afac1ef + e945c3e commit 7355fe1
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 11 deletions.
2 changes: 2 additions & 0 deletions lib/src/data/base/user.dart
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class UserDetailedNotMeWithRelations
required bool isRenoteMuted,
Notify? notify,
bool? withReplies,
String? followedMessage,
}) = _UserDetailedNotMeWithRelations;

factory UserDetailedNotMeWithRelations.fromJson(Map<String, Object?> json) =>
Expand Down Expand Up @@ -291,6 +292,7 @@ class MeDetailed with _$MeDetailed implements UserDetailed {
String? moderationNote,
String? avatarId,
String? bannerId,
String? followedMessage,
required bool isModerator,
required bool isAdmin,
required bool injectFeaturedNote,
Expand Down
62 changes: 52 additions & 10 deletions lib/src/data/base/user.freezed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@ mixin _$UserDetailedNotMeWithRelations {
bool get isRenoteMuted => throw _privateConstructorUsedError;
Notify? get notify => throw _privateConstructorUsedError;
bool? get withReplies => throw _privateConstructorUsedError;
String? get followedMessage => throw _privateConstructorUsedError;

Map<String, dynamic> toJson() => throw _privateConstructorUsedError;
@JsonKey(ignore: true)
Expand Down Expand Up @@ -1925,7 +1926,8 @@ abstract class $UserDetailedNotMeWithRelationsCopyWith<$Res> {
bool isMuted,
bool isRenoteMuted,
Notify? notify,
bool? withReplies});
bool? withReplies,
String? followedMessage});

$UserInstanceInfoCopyWith<$Res>? get instance;
}
Expand Down Expand Up @@ -2002,6 +2004,7 @@ class _$UserDetailedNotMeWithRelationsCopyWithImpl<$Res,
Object? isRenoteMuted = null,
Object? notify = freezed,
Object? withReplies = freezed,
Object? followedMessage = freezed,
}) {
return _then(_value.copyWith(
id: null == id
Expand Down Expand Up @@ -2236,6 +2239,10 @@ class _$UserDetailedNotMeWithRelationsCopyWithImpl<$Res,
? _value.withReplies
: withReplies // ignore: cast_nullable_to_non_nullable
as bool?,
followedMessage: freezed == followedMessage
? _value.followedMessage
: followedMessage // ignore: cast_nullable_to_non_nullable
as String?,
) as $Val);
}

Expand Down Expand Up @@ -2319,7 +2326,8 @@ abstract class _$$UserDetailedNotMeWithRelationsImplCopyWith<$Res>
bool isMuted,
bool isRenoteMuted,
Notify? notify,
bool? withReplies});
bool? withReplies,
String? followedMessage});

@override
$UserInstanceInfoCopyWith<$Res>? get instance;
Expand Down Expand Up @@ -2396,6 +2404,7 @@ class __$$UserDetailedNotMeWithRelationsImplCopyWithImpl<$Res>
Object? isRenoteMuted = null,
Object? notify = freezed,
Object? withReplies = freezed,
Object? followedMessage = freezed,
}) {
return _then(_$UserDetailedNotMeWithRelationsImpl(
id: null == id
Expand Down Expand Up @@ -2630,6 +2639,10 @@ class __$$UserDetailedNotMeWithRelationsImplCopyWithImpl<$Res>
? _value.withReplies
: withReplies // ignore: cast_nullable_to_non_nullable
as bool?,
followedMessage: freezed == followedMessage
? _value.followedMessage
: followedMessage // ignore: cast_nullable_to_non_nullable
as String?,
));
}
}
Expand Down Expand Up @@ -2696,7 +2709,8 @@ class _$UserDetailedNotMeWithRelationsImpl
required this.isMuted,
required this.isRenoteMuted,
this.notify,
this.withReplies})
this.withReplies,
this.followedMessage})
: _avatarDecorations = avatarDecorations,
_emojis = emojis,
_badgeRoles = badgeRoles,
Expand Down Expand Up @@ -2917,10 +2931,12 @@ class _$UserDetailedNotMeWithRelationsImpl
final Notify? notify;
@override
final bool? withReplies;
@override
final String? followedMessage;

@override
String toString() {
return 'UserDetailedNotMeWithRelations(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, instance: $instance, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, movedTo: $movedTo, alsoKnownAs: $alsoKnownAs, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, verifiedLinks: $verifiedLinks, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedNotes: $pinnedNotes, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, followersVisibility: $followersVisibility, followingVisibility: $followingVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, roles: $roles, memo: $memo, moderationNote: $moderationNote, isFollowing: $isFollowing, isFollowed: $isFollowed, hasPendingFollowRequestFromYou: $hasPendingFollowRequestFromYou, hasPendingFollowRequestToYou: $hasPendingFollowRequestToYou, isBlocking: $isBlocking, isBlocked: $isBlocked, isMuted: $isMuted, isRenoteMuted: $isRenoteMuted, notify: $notify, withReplies: $withReplies)';
return 'UserDetailedNotMeWithRelations(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, instance: $instance, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, movedTo: $movedTo, alsoKnownAs: $alsoKnownAs, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, verifiedLinks: $verifiedLinks, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedNotes: $pinnedNotes, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, followersVisibility: $followersVisibility, followingVisibility: $followingVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, roles: $roles, memo: $memo, moderationNote: $moderationNote, isFollowing: $isFollowing, isFollowed: $isFollowed, hasPendingFollowRequestFromYou: $hasPendingFollowRequestFromYou, hasPendingFollowRequestToYou: $hasPendingFollowRequestToYou, isBlocking: $isBlocking, isBlocked: $isBlocked, isMuted: $isMuted, isRenoteMuted: $isRenoteMuted, notify: $notify, withReplies: $withReplies, followedMessage: $followedMessage)';
}

@override
Expand Down Expand Up @@ -3028,7 +3044,8 @@ class _$UserDetailedNotMeWithRelationsImpl
(identical(other.isMuted, isMuted) || other.isMuted == isMuted) &&
(identical(other.isRenoteMuted, isRenoteMuted) || other.isRenoteMuted == isRenoteMuted) &&
(identical(other.notify, notify) || other.notify == notify) &&
(identical(other.withReplies, withReplies) || other.withReplies == withReplies));
(identical(other.withReplies, withReplies) || other.withReplies == withReplies) &&
(identical(other.followedMessage, followedMessage) || other.followedMessage == followedMessage));
}

@JsonKey(ignore: true)
Expand Down Expand Up @@ -3092,7 +3109,8 @@ class _$UserDetailedNotMeWithRelationsImpl
isMuted,
isRenoteMuted,
notify,
withReplies
withReplies,
followedMessage
]);

@JsonKey(ignore: true)
Expand Down Expand Up @@ -3171,7 +3189,8 @@ abstract class _UserDetailedNotMeWithRelations
required final bool isMuted,
required final bool isRenoteMuted,
final Notify? notify,
final bool? withReplies}) = _$UserDetailedNotMeWithRelationsImpl;
final bool? withReplies,
final String? followedMessage}) = _$UserDetailedNotMeWithRelationsImpl;

factory _UserDetailedNotMeWithRelations.fromJson(Map<String, dynamic> json) =
_$UserDetailedNotMeWithRelationsImpl.fromJson;
Expand Down Expand Up @@ -3305,6 +3324,8 @@ abstract class _UserDetailedNotMeWithRelations
@override
bool? get withReplies;
@override
String? get followedMessage;
@override
@JsonKey(ignore: true)
_$$UserDetailedNotMeWithRelationsImplCopyWith<
_$UserDetailedNotMeWithRelationsImpl>
Expand Down Expand Up @@ -3380,6 +3401,7 @@ mixin _$MeDetailed {
String? get moderationNote => throw _privateConstructorUsedError;
String? get avatarId => throw _privateConstructorUsedError;
String? get bannerId => throw _privateConstructorUsedError;
String? get followedMessage => throw _privateConstructorUsedError;
bool get isModerator => throw _privateConstructorUsedError;
bool get isAdmin => throw _privateConstructorUsedError;
bool get injectFeaturedNote => throw _privateConstructorUsedError;
Expand Down Expand Up @@ -3484,6 +3506,7 @@ abstract class $MeDetailedCopyWith<$Res> {
String? moderationNote,
String? avatarId,
String? bannerId,
String? followedMessage,
bool isModerator,
bool isAdmin,
bool injectFeaturedNote,
Expand Down Expand Up @@ -3586,6 +3609,7 @@ class _$MeDetailedCopyWithImpl<$Res, $Val extends MeDetailed>
Object? moderationNote = freezed,
Object? avatarId = freezed,
Object? bannerId = freezed,
Object? followedMessage = freezed,
Object? isModerator = null,
Object? isAdmin = null,
Object? injectFeaturedNote = null,
Expand Down Expand Up @@ -3820,6 +3844,10 @@ class _$MeDetailedCopyWithImpl<$Res, $Val extends MeDetailed>
? _value.bannerId
: bannerId // ignore: cast_nullable_to_non_nullable
as String?,
followedMessage: freezed == followedMessage
? _value.followedMessage
: followedMessage // ignore: cast_nullable_to_non_nullable
as String?,
isModerator: null == isModerator
? _value.isModerator
: isModerator // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -4040,6 +4068,7 @@ abstract class _$$MeDetailedImplCopyWith<$Res>
String? moderationNote,
String? avatarId,
String? bannerId,
String? followedMessage,
bool isModerator,
bool isAdmin,
bool injectFeaturedNote,
Expand Down Expand Up @@ -4143,6 +4172,7 @@ class __$$MeDetailedImplCopyWithImpl<$Res>
Object? moderationNote = freezed,
Object? avatarId = freezed,
Object? bannerId = freezed,
Object? followedMessage = freezed,
Object? isModerator = null,
Object? isAdmin = null,
Object? injectFeaturedNote = null,
Expand Down Expand Up @@ -4377,6 +4407,10 @@ class __$$MeDetailedImplCopyWithImpl<$Res>
? _value.bannerId
: bannerId // ignore: cast_nullable_to_non_nullable
as String?,
followedMessage: freezed == followedMessage
? _value.followedMessage
: followedMessage // ignore: cast_nullable_to_non_nullable
as String?,
isModerator: null == isModerator
? _value.isModerator
: isModerator // ignore: cast_nullable_to_non_nullable
Expand Down Expand Up @@ -4563,6 +4597,7 @@ class _$MeDetailedImpl implements _MeDetailed {
this.moderationNote,
this.avatarId,
this.bannerId,
this.followedMessage,
required this.isModerator,
required this.isAdmin,
required this.injectFeaturedNote,
Expand Down Expand Up @@ -4807,6 +4842,8 @@ class _$MeDetailedImpl implements _MeDetailed {
@override
final String? bannerId;
@override
final String? followedMessage;
@override
final bool isModerator;
@override
final bool isAdmin;
Expand Down Expand Up @@ -4926,7 +4963,7 @@ class _$MeDetailedImpl implements _MeDetailed {

@override
String toString() {
return 'MeDetailed(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, instance: $instance, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, movedTo: $movedTo, alsoKnownAs: $alsoKnownAs, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, verifiedLinks: $verifiedLinks, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedNotes: $pinnedNotes, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, followersVisibility: $followersVisibility, followingVisibility: $followingVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, roles: $roles, memo: $memo, moderationNote: $moderationNote, avatarId: $avatarId, bannerId: $bannerId, isModerator: $isModerator, isAdmin: $isAdmin, injectFeaturedNote: $injectFeaturedNote, receiveAnnouncementEmail: $receiveAnnouncementEmail, alwaysMarkNsfw: $alwaysMarkNsfw, autoSensitive: $autoSensitive, carefulBot: $carefulBot, autoAcceptFollowed: $autoAcceptFollowed, preventAiLearning: $preventAiLearning, noCrawle: $noCrawle, isExplorable: $isExplorable, isDeleted: $isDeleted, twoFactorBackupCodesStock: $twoFactorBackupCodesStock, hideOnlineStatus: $hideOnlineStatus, hasUnreadSpecifiedNotes: $hasUnreadSpecifiedNotes, hasUnreadMentions: $hasUnreadMentions, hasUnreadAnnouncement: $hasUnreadAnnouncement, hasUnreadAntenna: $hasUnreadAntenna, hasUnreadChannel: $hasUnreadChannel, hasUnreadNotification: $hasUnreadNotification, hasPendingReceivedFollowRequest: $hasPendingReceivedFollowRequest, unreadNotificationsCount: $unreadNotificationsCount, unreadAnnouncements: $unreadAnnouncements, mutedWords: $mutedWords, hardMutedWords: $hardMutedWords, mutedInstances: $mutedInstances, mutingNotificationTypes: $mutingNotificationTypes, notificationRecieveConfig: $notificationRecieveConfig, emailNotificationTypes: $emailNotificationTypes, achievements: $achievements, loggedInDays: $loggedInDays, policies: $policies)';
return 'MeDetailed(id: $id, name: $name, username: $username, host: $host, avatarUrl: $avatarUrl, avatarBlurhash: $avatarBlurhash, avatarDecorations: $avatarDecorations, isBot: $isBot, isCat: $isCat, instance: $instance, emojis: $emojis, onlineStatus: $onlineStatus, badgeRoles: $badgeRoles, url: $url, uri: $uri, movedTo: $movedTo, alsoKnownAs: $alsoKnownAs, createdAt: $createdAt, updatedAt: $updatedAt, lastFetchedAt: $lastFetchedAt, bannerUrl: $bannerUrl, bannerBlurhash: $bannerBlurhash, isLocked: $isLocked, isSilenced: $isSilenced, isSuspended: $isSuspended, description: $description, location: $location, birthday: $birthday, lang: $lang, fields: $fields, verifiedLinks: $verifiedLinks, followersCount: $followersCount, followingCount: $followingCount, notesCount: $notesCount, pinnedNoteIds: $pinnedNoteIds, pinnedNotes: $pinnedNotes, pinnedPageId: $pinnedPageId, pinnedPage: $pinnedPage, publicReactions: $publicReactions, ffVisibility: $ffVisibility, followersVisibility: $followersVisibility, followingVisibility: $followingVisibility, twoFactorEnabled: $twoFactorEnabled, usePasswordLessLogin: $usePasswordLessLogin, securityKeys: $securityKeys, roles: $roles, memo: $memo, moderationNote: $moderationNote, avatarId: $avatarId, bannerId: $bannerId, followedMessage: $followedMessage, isModerator: $isModerator, isAdmin: $isAdmin, injectFeaturedNote: $injectFeaturedNote, receiveAnnouncementEmail: $receiveAnnouncementEmail, alwaysMarkNsfw: $alwaysMarkNsfw, autoSensitive: $autoSensitive, carefulBot: $carefulBot, autoAcceptFollowed: $autoAcceptFollowed, preventAiLearning: $preventAiLearning, noCrawle: $noCrawle, isExplorable: $isExplorable, isDeleted: $isDeleted, twoFactorBackupCodesStock: $twoFactorBackupCodesStock, hideOnlineStatus: $hideOnlineStatus, hasUnreadSpecifiedNotes: $hasUnreadSpecifiedNotes, hasUnreadMentions: $hasUnreadMentions, hasUnreadAnnouncement: $hasUnreadAnnouncement, hasUnreadAntenna: $hasUnreadAntenna, hasUnreadChannel: $hasUnreadChannel, hasUnreadNotification: $hasUnreadNotification, hasPendingReceivedFollowRequest: $hasPendingReceivedFollowRequest, unreadNotificationsCount: $unreadNotificationsCount, unreadAnnouncements: $unreadAnnouncements, mutedWords: $mutedWords, hardMutedWords: $hardMutedWords, mutedInstances: $mutedInstances, mutingNotificationTypes: $mutingNotificationTypes, notificationRecieveConfig: $notificationRecieveConfig, emailNotificationTypes: $emailNotificationTypes, achievements: $achievements, loggedInDays: $loggedInDays, policies: $policies)';
}

@override
Expand Down Expand Up @@ -5021,6 +5058,8 @@ class _$MeDetailedImpl implements _MeDetailed {
other.avatarId == avatarId) &&
(identical(other.bannerId, bannerId) ||
other.bannerId == bannerId) &&
(identical(other.followedMessage, followedMessage) ||
other.followedMessage == followedMessage) &&
(identical(other.isModerator, isModerator) ||
other.isModerator == isModerator) &&
(identical(other.isAdmin, isAdmin) || other.isAdmin == isAdmin) &&
Expand All @@ -5032,8 +5071,7 @@ class _$MeDetailedImpl implements _MeDetailed {
other.alwaysMarkNsfw == alwaysMarkNsfw) &&
(identical(other.autoSensitive, autoSensitive) ||
other.autoSensitive == autoSensitive) &&
(identical(other.carefulBot, carefulBot) ||
other.carefulBot == carefulBot) &&
(identical(other.carefulBot, carefulBot) || other.carefulBot == carefulBot) &&
(identical(other.autoAcceptFollowed, autoAcceptFollowed) || other.autoAcceptFollowed == autoAcceptFollowed) &&
(identical(other.preventAiLearning, preventAiLearning) || other.preventAiLearning == preventAiLearning) &&
(identical(other.noCrawle, noCrawle) || other.noCrawle == noCrawle) &&
Expand Down Expand Up @@ -5115,6 +5153,7 @@ class _$MeDetailedImpl implements _MeDetailed {
moderationNote,
avatarId,
bannerId,
followedMessage,
isModerator,
isAdmin,
injectFeaturedNote,
Expand Down Expand Up @@ -5215,6 +5254,7 @@ abstract class _MeDetailed implements MeDetailed {
final String? moderationNote,
final String? avatarId,
final String? bannerId,
final String? followedMessage,
required final bool isModerator,
required final bool isAdmin,
required final bool injectFeaturedNote,
Expand Down Expand Up @@ -5365,6 +5405,8 @@ abstract class _MeDetailed implements MeDetailed {
@override
String? get bannerId;
@override
String? get followedMessage;
@override
bool get isModerator;
@override
bool get isAdmin;
Expand Down
Loading

0 comments on commit 7355fe1

Please sign in to comment.