mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-02 19:26:16 -04:00
State machine work
This commit is contained in:
parent
61855521dc
commit
be8014c97a
34 changed files with 703 additions and 505 deletions
|
@ -101,7 +101,7 @@ abstract mixin class $PerAccountCollectionStateCopyWith<$Res> {
|
|||
@useResult
|
||||
$Res call(
|
||||
{AccountInfo accountInfo,
|
||||
AsyncValue<Account>? avAccountRecordState,
|
||||
AsyncValue<AccountRecordState>? avAccountRecordState,
|
||||
AccountInfoCubit? accountInfoCubit,
|
||||
AccountRecordCubit? accountRecordCubit,
|
||||
ContactInvitationListCubit? contactInvitationListCubit,
|
||||
|
@ -147,9 +147,9 @@ class _$PerAccountCollectionStateCopyWithImpl<$Res>
|
|||
: accountInfo // ignore: cast_nullable_to_non_nullable
|
||||
as AccountInfo,
|
||||
avAccountRecordState: freezed == avAccountRecordState
|
||||
? _self.avAccountRecordState!
|
||||
? _self.avAccountRecordState
|
||||
: avAccountRecordState // ignore: cast_nullable_to_non_nullable
|
||||
as AsyncValue<Account>?,
|
||||
as AsyncValue<AccountRecordState>?,
|
||||
accountInfoCubit: freezed == accountInfoCubit
|
||||
? _self.accountInfoCubit
|
||||
: accountInfoCubit // ignore: cast_nullable_to_non_nullable
|
||||
|
@ -227,7 +227,7 @@ class _PerAccountCollectionState extends PerAccountCollectionState {
|
|||
@override
|
||||
final AccountInfo accountInfo;
|
||||
@override
|
||||
final AsyncValue<Account>? avAccountRecordState;
|
||||
final AsyncValue<AccountRecordState>? avAccountRecordState;
|
||||
@override
|
||||
final AccountInfoCubit? accountInfoCubit;
|
||||
@override
|
||||
|
@ -326,7 +326,7 @@ abstract mixin class _$PerAccountCollectionStateCopyWith<$Res>
|
|||
@useResult
|
||||
$Res call(
|
||||
{AccountInfo accountInfo,
|
||||
AsyncValue<Account>? avAccountRecordState,
|
||||
AsyncValue<AccountRecordState>? avAccountRecordState,
|
||||
AccountInfoCubit? accountInfoCubit,
|
||||
AccountRecordCubit? accountRecordCubit,
|
||||
ContactInvitationListCubit? contactInvitationListCubit,
|
||||
|
@ -375,7 +375,7 @@ class __$PerAccountCollectionStateCopyWithImpl<$Res>
|
|||
avAccountRecordState: freezed == avAccountRecordState
|
||||
? _self.avAccountRecordState
|
||||
: avAccountRecordState // ignore: cast_nullable_to_non_nullable
|
||||
as AsyncValue<Account>?,
|
||||
as AsyncValue<AccountRecordState>?,
|
||||
accountInfoCubit: freezed == accountInfoCubit
|
||||
? _self.accountInfoCubit
|
||||
: accountInfoCubit // ignore: cast_nullable_to_non_nullable
|
||||
|
|
|
@ -67,8 +67,8 @@ abstract mixin class $UserLoginCopyWith<$Res> {
|
|||
_$UserLoginCopyWithImpl;
|
||||
@useResult
|
||||
$Res call(
|
||||
{Typed<FixedEncodedString43> superIdentityRecordKey,
|
||||
Typed<FixedEncodedString43> identitySecret,
|
||||
{TypedKey superIdentityRecordKey,
|
||||
TypedSecret identitySecret,
|
||||
AccountRecordInfo accountRecordInfo,
|
||||
Timestamp lastActive});
|
||||
|
||||
|
@ -94,13 +94,13 @@ class _$UserLoginCopyWithImpl<$Res> implements $UserLoginCopyWith<$Res> {
|
|||
}) {
|
||||
return _then(_self.copyWith(
|
||||
superIdentityRecordKey: null == superIdentityRecordKey
|
||||
? _self.superIdentityRecordKey!
|
||||
? _self.superIdentityRecordKey
|
||||
: superIdentityRecordKey // ignore: cast_nullable_to_non_nullable
|
||||
as Typed<FixedEncodedString43>,
|
||||
as TypedKey,
|
||||
identitySecret: null == identitySecret
|
||||
? _self.identitySecret!
|
||||
? _self.identitySecret
|
||||
: identitySecret // ignore: cast_nullable_to_non_nullable
|
||||
as Typed<FixedEncodedString43>,
|
||||
as TypedSecret,
|
||||
accountRecordInfo: null == accountRecordInfo
|
||||
? _self.accountRecordInfo
|
||||
: accountRecordInfo // ignore: cast_nullable_to_non_nullable
|
||||
|
@ -136,10 +136,10 @@ class _UserLogin implements UserLogin {
|
|||
// SuperIdentity record key for the user
|
||||
// used to index the local accounts table
|
||||
@override
|
||||
final Typed<FixedEncodedString43> superIdentityRecordKey;
|
||||
final TypedKey superIdentityRecordKey;
|
||||
// The identity secret as unlocked from the local accounts table
|
||||
@override
|
||||
final Typed<FixedEncodedString43> identitySecret;
|
||||
final TypedSecret identitySecret;
|
||||
// The account record key, owner key and secret pulled from the identity
|
||||
@override
|
||||
final AccountRecordInfo accountRecordInfo;
|
||||
|
@ -197,8 +197,8 @@ abstract mixin class _$UserLoginCopyWith<$Res>
|
|||
@override
|
||||
@useResult
|
||||
$Res call(
|
||||
{Typed<FixedEncodedString43> superIdentityRecordKey,
|
||||
Typed<FixedEncodedString43> identitySecret,
|
||||
{TypedKey superIdentityRecordKey,
|
||||
TypedSecret identitySecret,
|
||||
AccountRecordInfo accountRecordInfo,
|
||||
Timestamp lastActive});
|
||||
|
||||
|
@ -227,11 +227,11 @@ class __$UserLoginCopyWithImpl<$Res> implements _$UserLoginCopyWith<$Res> {
|
|||
superIdentityRecordKey: null == superIdentityRecordKey
|
||||
? _self.superIdentityRecordKey
|
||||
: superIdentityRecordKey // ignore: cast_nullable_to_non_nullable
|
||||
as Typed<FixedEncodedString43>,
|
||||
as TypedKey,
|
||||
identitySecret: null == identitySecret
|
||||
? _self.identitySecret
|
||||
: identitySecret // ignore: cast_nullable_to_non_nullable
|
||||
as Typed<FixedEncodedString43>,
|
||||
as TypedSecret,
|
||||
accountRecordInfo: null == accountRecordInfo
|
||||
? _self.accountRecordInfo
|
||||
: accountRecordInfo // ignore: cast_nullable_to_non_nullable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue