From 2e98dc2dda1949ed3626cbc4bbb3d6dbd0543ff6 Mon Sep 17 00:00:00 2001 From: Talha Date: Mon, 12 Aug 2024 21:36:02 +0100 Subject: [PATCH 1/4] compose draft state for the room message --- native/acter/api.rsh | 24 +++++++++++ native/acter/src/api.rs | 4 +- native/acter/src/api/common.rs | 73 ++++++++++++++++++++++++++++++++-- native/acter/src/api/room.rs | 66 +++++++++++++++++++++++++++++- 4 files changed, 161 insertions(+), 6 deletions(-) diff --git a/native/acter/api.rsh b/native/acter/api.rsh index 9a96dba96b38..2979862521d9 100644 --- a/native/acter/api.rsh +++ b/native/acter/api.rsh @@ -330,6 +330,21 @@ object MxcUri { fn to_string() -> string; } +object ComposeDraft { + /// plain body text, always available + fn plain_text() -> string; + + /// formatted text + fn html_text() -> Option; + + /// event id, only valid for edit and reply states + fn event_id() -> Option; + + /// compose message state type. + /// One of `new`, `edit`, `reply`. + fn draft_type() -> string; +} + object RoomId { fn to_string() -> string; } @@ -1099,6 +1114,15 @@ object Room { /// leave this room fn leave() -> Future>; + /// compose message state of the room + fn msg_draft() -> Future>>; + + /// save composed message state of the room + fn save_msg_draft(text: string, html: Option, draft_type: string, event_id: Option) -> Future>; + + /// clear composed message state of the room + fn clear_msg_draft() -> Future>; + } diff --git a/native/acter/src/api.rs b/native/acter/src/api.rs index 0ad7c4781f01..2a1b209793c5 100644 --- a/native/acter/src/api.rs +++ b/native/acter/src/api.rs @@ -84,8 +84,8 @@ pub use comments::{Comment, CommentDraft, CommentsManager}; pub use common::{ duration_from_secs, new_calendar_event_ref_builder, new_colorize_builder, new_link_ref_builder, new_obj_ref_builder, new_task_list_ref_builder, new_task_ref_builder, new_thumb_size, - DeviceRecord, MediaSource, MsgContent, OptionBuffer, OptionRsvpStatus, OptionString, - ReactionRecord, ThumbnailInfo, ThumbnailSize, + ComposeDraft, DeviceRecord, MediaSource, MsgContent, OptionBuffer, OptionRsvpStatus, + OptionString, ReactionRecord, ThumbnailInfo, ThumbnailSize, }; pub use convo::{ new_convo_settings_builder, Convo, ConvoDiff, CreateConvoSettings, CreateConvoSettingsBuilder, diff --git a/native/acter/src/api/common.rs b/native/acter/src/api/common.rs index 4a4f9748249c..e3685f4d189a 100644 --- a/native/acter/src/api/common.rs +++ b/native/acter/src/api/common.rs @@ -3,12 +3,17 @@ use acter_core::events::{ rsvp::RsvpStatus, ColorizeBuilder, ObjRefBuilder, Position, RefDetails, RefDetailsBuilder, }; -use anyhow::{Context, Result}; +use anyhow::{bail, Context, Result}; use core::time::Duration; -use matrix_sdk::media::{MediaFormat, MediaThumbnailSettings, MediaThumbnailSize}; +use matrix_sdk::{ + media::{MediaFormat, MediaThumbnailSettings, MediaThumbnailSize}, + ComposerDraft, ComposerDraftType, +}; use ruma::UInt; use ruma_client_api::media::get_content_thumbnail; -use ruma_common::{EventId, MilliSecondsSinceUnixEpoch, OwnedDeviceId, OwnedMxcUri, OwnedUserId}; +use ruma_common::{ + EventId, MilliSecondsSinceUnixEpoch, OwnedDeviceId, OwnedEventId, OwnedMxcUri, OwnedUserId, +}; use ruma_events::room::{ message::{ AudioInfo, AudioMessageEventContent, EmoteMessageEventContent, FileInfo, @@ -452,6 +457,68 @@ impl MsgContent { } } +pub struct ComposeDraft { + inner: ComposerDraft, +} + +impl ComposeDraft { + pub fn new( + plain_text: String, + html_text: Option, + msg_type: String, + event_id: Option, + ) -> Self { + let m_type = msg_type.clone(); + let draft_type = match (m_type.as_str(), event_id) { + ("new", _) => ComposerDraftType::NewMessage, + ("edit", Some(id)) => ComposerDraftType::Edit { + event_id: OwnedEventId::try_from(id).expect("should parse correctly"), + }, + ("reply", Some(id)) => ComposerDraftType::Reply { + event_id: OwnedEventId::try_from(id).expect("should parse correctly"), + }, + _ => ComposerDraftType::NewMessage, + }; + + ComposeDraft { + inner: ComposerDraft { + plain_text, + html_text, + draft_type, + }, + } + } + + pub fn inner(&self) -> ComposerDraft { + self.inner.clone() + } + + pub fn plain_text(&self) -> String { + self.inner.plain_text.clone() + } + + pub fn html_text(&self) -> Option { + self.inner.html_text.clone() + } + + // only valid for reply and edit drafts + pub fn event_id(&self) -> Option { + match &(self.inner.draft_type) { + ComposerDraftType::Edit { event_id } => Some(event_id.to_string()), + ComposerDraftType::Reply { event_id } => Some(event_id.to_string()), + ComposerDraftType::NewMessage => None, + } + } + + pub fn draft_type(&self) -> String { + match &(self.inner.draft_type) { + ComposerDraftType::NewMessage => "new".to_string(), + ComposerDraftType::Edit { event_id } => "edit".to_string(), + ComposerDraftType::Reply { event_id } => "reply".to_string(), + } + } +} + #[derive(Clone, Debug, Serialize, Deserialize)] pub struct ReactionRecord { sender_id: OwnedUserId, diff --git a/native/acter/src/api/room.rs b/native/acter/src/api/room.rs index 27d7ba7de360..79497d21a7e3 100644 --- a/native/acter/src/api/room.rs +++ b/native/acter/src/api/room.rs @@ -22,7 +22,7 @@ use matrix_sdk::{ media::{MediaFormat, MediaRequest}, notification_settings::{IsEncrypted, IsOneToOne}, room::{Room as SdkRoom, RoomMember}, - DisplayName, RoomMemberships, RoomState, + ComposerDraft, ComposerDraftType, DisplayName, RoomMemberships, RoomState, }; use ruma::{assign, Int}; use ruma_client_api::{ @@ -54,6 +54,7 @@ use crate::{OptionBuffer, OptionString, RoomMessage, ThumbnailSize, UserProfile, use super::{ api::FfiBuffer, + common::ComposeDraft, push::{notification_mode_from_input, room_notification_mode_name}, }; @@ -1106,6 +1107,69 @@ impl Room { .await? } + pub async fn msg_draft(&self) -> Result> { + if !self.is_joined() { + bail!("Unable to fetch composer draft of a room we are not in"); + } + let room = self.room.clone(); + RUNTIME + .spawn(async move { + let draft = room.load_composer_draft().await?; + + Ok(draft.map(|composer_draft| { + let (msg_type, event_id) = match composer_draft.draft_type { + ComposerDraftType::NewMessage => ("new".to_string(), None), + ComposerDraftType::Edit { event_id } => { + ("edit".to_string(), Some(event_id.to_string())) + } + ComposerDraftType::Reply { event_id } => { + ("reply".to_string(), Some(event_id.to_string())) + } + }; + ComposeDraft::new( + composer_draft.plain_text, + composer_draft.html_text, + msg_type, + event_id, + ) + })) + }) + .await? + } + + pub async fn save_msg_draft( + &self, + text: String, + html: Option, + draft_type: String, + event_id: Option, + ) -> Result { + if !self.is_joined() { + bail!("Unable to save composer draft of a room we are not in"); + } + let room = self.room.clone(); + let msg_draft = ComposeDraft::new(text, html, draft_type, event_id); + RUNTIME + .spawn(async move { + let draft = room.save_composer_draft(msg_draft.inner()).await?; + Ok(true) + }) + .await? + } + + pub async fn clear_msg_draft(&self) -> Result { + if !self.is_joined() { + bail!("Unable to remove composer draft of a room we are not in"); + } + let room = self.room.clone(); + RUNTIME + .spawn(async move { + let draft = room.clear_composer_draft(); + Ok(true) + }) + .await? + } + pub async fn media_binary( &self, event_id: String, From c5b7eb0adb03dacc4105def6baa750d91c9db2f0 Mon Sep 17 00:00:00 2001 From: Talha Date: Wed, 14 Aug 2024 11:36:29 +0100 Subject: [PATCH 2/4] use custom option wrapper for ComposerDraft --- native/acter/api.rsh | 7 +- native/acter/src/api.rs | 4 +- native/acter/src/api/common.rs | 27 +- native/acter/src/api/room.rs | 48 +- .../rust_sdk/lib/acter_flutter_sdk_ffi.dart | 3655 ++++++++++------- 5 files changed, 2232 insertions(+), 1509 deletions(-) diff --git a/native/acter/api.rsh b/native/acter/api.rsh index 2979862521d9..b59e17d1a19e 100644 --- a/native/acter/api.rsh +++ b/native/acter/api.rsh @@ -234,6 +234,11 @@ object OptionRsvpStatus { fn status_str() -> Option; } +object OptionComposeDraft { + /// get compose draft object + fn draft() -> Option; +} + object UserProfile { /// get user id fn user_id() -> UserId; @@ -1115,7 +1120,7 @@ object Room { fn leave() -> Future>; /// compose message state of the room - fn msg_draft() -> Future>>; + fn msg_draft() -> Future>; /// save composed message state of the room fn save_msg_draft(text: string, html: Option, draft_type: string, event_id: Option) -> Future>; diff --git a/native/acter/src/api.rs b/native/acter/src/api.rs index 2a1b209793c5..99beb7c5402b 100644 --- a/native/acter/src/api.rs +++ b/native/acter/src/api.rs @@ -84,8 +84,8 @@ pub use comments::{Comment, CommentDraft, CommentsManager}; pub use common::{ duration_from_secs, new_calendar_event_ref_builder, new_colorize_builder, new_link_ref_builder, new_obj_ref_builder, new_task_list_ref_builder, new_task_ref_builder, new_thumb_size, - ComposeDraft, DeviceRecord, MediaSource, MsgContent, OptionBuffer, OptionRsvpStatus, - OptionString, ReactionRecord, ThumbnailInfo, ThumbnailSize, + ComposeDraft, DeviceRecord, MediaSource, MsgContent, OptionBuffer, OptionComposeDraft, + OptionRsvpStatus, OptionString, ReactionRecord, ThumbnailInfo, ThumbnailSize, }; pub use convo::{ new_convo_settings_builder, Convo, ConvoDiff, CreateConvoSettings, CreateConvoSettingsBuilder, diff --git a/native/acter/src/api/common.rs b/native/acter/src/api/common.rs index e3685f4d189a..83acef423830 100644 --- a/native/acter/src/api/common.rs +++ b/native/acter/src/api/common.rs @@ -78,6 +78,20 @@ impl OptionRsvpStatus { self.status.as_ref().map(|x| x.to_string()) } } +#[derive(Clone)] +pub struct OptionComposeDraft { + draft: Option, +} + +impl OptionComposeDraft { + pub(crate) fn new(draft: Option) -> Self { + OptionComposeDraft { draft } + } + + pub fn draft(&self) -> Option { + self.draft.clone() + } +} pub struct MediaSource { inner: SdkMediaSource, @@ -457,6 +471,7 @@ impl MsgContent { } } +#[derive(Clone)] pub struct ComposeDraft { inner: ComposerDraft, } @@ -466,17 +481,13 @@ impl ComposeDraft { plain_text: String, html_text: Option, msg_type: String, - event_id: Option, + event_id: Option, ) -> Self { let m_type = msg_type.clone(); let draft_type = match (m_type.as_str(), event_id) { - ("new", _) => ComposerDraftType::NewMessage, - ("edit", Some(id)) => ComposerDraftType::Edit { - event_id: OwnedEventId::try_from(id).expect("should parse correctly"), - }, - ("reply", Some(id)) => ComposerDraftType::Reply { - event_id: OwnedEventId::try_from(id).expect("should parse correctly"), - }, + ("new", None) => ComposerDraftType::NewMessage, + ("edit", Some(id)) => ComposerDraftType::Edit { event_id: id }, + ("reply", Some(id)) => ComposerDraftType::Reply { event_id: id }, _ => ComposerDraftType::NewMessage, }; diff --git a/native/acter/src/api/room.rs b/native/acter/src/api/room.rs index 79497d21a7e3..6550ae907ace 100644 --- a/native/acter/src/api/room.rs +++ b/native/acter/src/api/room.rs @@ -44,7 +44,7 @@ use ruma_events::{ space::{child::HierarchySpaceChildEvent, parent::SpaceParentEventContent}, MessageLikeEventType, StateEvent, StateEventType, StaticEventContent, }; -use std::{io::Write, ops::Deref, path::PathBuf}; +use std::{io::Write, ops::Deref, path::PathBuf, str::FromStr}; use tokio_stream::{wrappers::BroadcastStream, StreamExt}; use tracing::{info, warn}; @@ -54,7 +54,7 @@ use crate::{OptionBuffer, OptionString, RoomMessage, ThumbnailSize, UserProfile, use super::{ api::FfiBuffer, - common::ComposeDraft, + common::{ComposeDraft, OptionComposeDraft}, push::{notification_mode_from_input, room_notification_mode_name}, }; @@ -1107,7 +1107,7 @@ impl Room { .await? } - pub async fn msg_draft(&self) -> Result> { + pub async fn msg_draft(&self) -> Result { if !self.is_joined() { bail!("Unable to fetch composer draft of a room we are not in"); } @@ -1116,14 +1116,14 @@ impl Room { .spawn(async move { let draft = room.load_composer_draft().await?; - Ok(draft.map(|composer_draft| { + Ok(OptionComposeDraft::new(draft.map(|composer_draft| { let (msg_type, event_id) = match composer_draft.draft_type { ComposerDraftType::NewMessage => ("new".to_string(), None), ComposerDraftType::Edit { event_id } => { - ("edit".to_string(), Some(event_id.to_string())) + ("edit".to_string(), Some(event_id)) } ComposerDraftType::Reply { event_id } => { - ("reply".to_string(), Some(event_id.to_string())) + ("reply".to_string(), Some(event_id)) } }; ComposeDraft::new( @@ -1132,7 +1132,7 @@ impl Room { msg_type, event_id, ) - })) + }))) }) .await? } @@ -1148,10 +1148,40 @@ impl Room { bail!("Unable to save composer draft of a room we are not in"); } let room = self.room.clone(); - let msg_draft = ComposeDraft::new(text, html, draft_type, event_id); + + let draft_type = match (draft_type.as_str(), event_id) { + ("new", None) => ComposerDraftType::NewMessage, + ("edit", id) => { + if let Some(id) = id { + ComposerDraftType::Edit { + event_id: OwnedEventId::try_from(id)?, + } + } else { + bail!("Invalid event id or not found"); + } + } + + ("reply", id) => { + if let Some(id) = id { + ComposerDraftType::Reply { + event_id: OwnedEventId::try_from(id)?, + } + } else { + bail!("Invalid event id or not found"); + } + } + _ => bail!("Invalid draft type"), + }; + + let msg_draft = ComposerDraft { + plain_text: text, + html_text: html, + draft_type, + }; + RUNTIME .spawn(async move { - let draft = room.save_composer_draft(msg_draft.inner()).await?; + room.save_composer_draft(msg_draft).await?; Ok(true) }) .await? diff --git a/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart b/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart index 75f4db7fc690..7d047e4ad772 100644 --- a/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart +++ b/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart @@ -5414,7 +5414,7 @@ class Api { return tmp7; } - RoomMessage? __timelineStreamGetMessageFuturePoll( + OptionComposeDraft? __roomMsgDraftFuturePoll( int boxed, int postCobject, int port, @@ -5428,7 +5428,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamGetMessageFuturePoll( + final tmp6 = _roomMsgDraftFuturePoll( tmp1, tmp3, tmp5, @@ -5455,13 +5455,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomMessage"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionComposeDraft"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = RoomMessage._(this, tmp13_1); + final tmp7 = OptionComposeDraft._(this, tmp13_1); return tmp7; } - bool? __timelineStreamPaginateBackwardsFuturePoll( + bool? __roomSaveMsgDraftFuturePoll( int boxed, int postCobject, int port, @@ -5475,7 +5475,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamPaginateBackwardsFuturePoll( + final tmp6 = _roomSaveMsgDraftFuturePoll( tmp1, tmp3, tmp5, @@ -5505,7 +5505,7 @@ class Api { return tmp7; } - bool? __timelineStreamSendMessageFuturePoll( + bool? __roomClearMsgDraftFuturePoll( int boxed, int postCobject, int port, @@ -5519,7 +5519,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamSendMessageFuturePoll( + final tmp6 = _roomClearMsgDraftFuturePoll( tmp1, tmp3, tmp5, @@ -5549,7 +5549,7 @@ class Api { return tmp7; } - bool? __timelineStreamEditMessageFuturePoll( + RoomMessage? __timelineStreamGetMessageFuturePoll( int boxed, int postCobject, int port, @@ -5563,7 +5563,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamEditMessageFuturePoll( + final tmp6 = _timelineStreamGetMessageFuturePoll( tmp1, tmp3, tmp5, @@ -5589,11 +5589,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomMessage"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = RoomMessage._(this, tmp13_1); return tmp7; } - bool? __timelineStreamReplyMessageFuturePoll( + bool? __timelineStreamPaginateBackwardsFuturePoll( int boxed, int postCobject, int port, @@ -5607,7 +5610,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamReplyMessageFuturePoll( + final tmp6 = _timelineStreamPaginateBackwardsFuturePoll( tmp1, tmp3, tmp5, @@ -5637,7 +5640,7 @@ class Api { return tmp7; } - bool? __timelineStreamSendSingleReceiptFuturePoll( + bool? __timelineStreamSendMessageFuturePoll( int boxed, int postCobject, int port, @@ -5651,7 +5654,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamSendSingleReceiptFuturePoll( + final tmp6 = _timelineStreamSendMessageFuturePoll( tmp1, tmp3, tmp5, @@ -5681,7 +5684,7 @@ class Api { return tmp7; } - bool? __timelineStreamSendMultipleReceiptsFuturePoll( + bool? __timelineStreamEditMessageFuturePoll( int boxed, int postCobject, int port, @@ -5695,7 +5698,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamSendMultipleReceiptsFuturePoll( + final tmp6 = _timelineStreamEditMessageFuturePoll( tmp1, tmp3, tmp5, @@ -5725,7 +5728,7 @@ class Api { return tmp7; } - bool? __timelineStreamMarkAsReadFuturePoll( + bool? __timelineStreamReplyMessageFuturePoll( int boxed, int postCobject, int port, @@ -5739,7 +5742,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamMarkAsReadFuturePoll( + final tmp6 = _timelineStreamReplyMessageFuturePoll( tmp1, tmp3, tmp5, @@ -5769,7 +5772,7 @@ class Api { return tmp7; } - bool? __timelineStreamToggleReactionFuturePoll( + bool? __timelineStreamSendSingleReceiptFuturePoll( int boxed, int postCobject, int port, @@ -5783,7 +5786,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _timelineStreamToggleReactionFuturePoll( + final tmp6 = _timelineStreamSendSingleReceiptFuturePoll( tmp1, tmp3, tmp5, @@ -5813,101 +5816,7 @@ class Api { return tmp7; } - SpaceRelations? __convoSpaceRelationsFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoSpaceRelationsFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_SpaceRelations"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = SpaceRelations._(this, tmp13_1); - return tmp7; - } - - MxcUri? __convoUploadAvatarFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoUploadAvatarFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = MxcUri._(this, tmp13_1); - return tmp7; - } - - EventId? __convoRemoveAvatarFuturePoll( + bool? __timelineStreamSendMultipleReceiptsFuturePoll( int boxed, int postCobject, int port, @@ -5921,7 +5830,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoRemoveAvatarFuturePoll( + final tmp6 = _timelineStreamSendMultipleReceiptsFuturePoll( tmp1, tmp3, tmp5, @@ -5947,14 +5856,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __convoSetNameFuturePoll( + bool? __timelineStreamMarkAsReadFuturePoll( int boxed, int postCobject, int port, @@ -5968,7 +5874,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoSetNameFuturePoll( + final tmp6 = _timelineStreamMarkAsReadFuturePoll( tmp1, tmp3, tmp5, @@ -5994,14 +5900,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __convoSetTopicFuturePoll( + bool? __timelineStreamToggleReactionFuturePoll( int boxed, int postCobject, int port, @@ -6015,7 +5918,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoSetTopicFuturePoll( + final tmp6 = _timelineStreamToggleReactionFuturePoll( tmp1, tmp3, tmp5, @@ -6041,14 +5944,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - FfiListFfiString? __convoActiveMembersIdsFuturePoll( + SpaceRelations? __convoSpaceRelationsFuturePoll( int boxed, int postCobject, int port, @@ -6062,7 +5962,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoActiveMembersIdsFuturePoll( + final tmp6 = _convoSpaceRelationsFuturePoll( tmp1, tmp3, tmp5, @@ -6089,14 +5989,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_SpaceRelations"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListFfiString._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = SpaceRelations._(this, tmp13_1); return tmp7; } - FfiListMember? __convoActiveMembersFuturePoll( + MxcUri? __convoUploadAvatarFuturePoll( int boxed, int postCobject, int port, @@ -6110,7 +6009,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoActiveMembersFuturePoll( + final tmp6 = _convoUploadAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -6137,14 +6036,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListMember._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = MxcUri._(this, tmp13_1); return tmp7; } - FfiListMember? __convoInvitedMembersFuturePoll( + EventId? __convoRemoveAvatarFuturePoll( int boxed, int postCobject, int port, @@ -6158,7 +6056,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoInvitedMembersFuturePoll( + final tmp6 = _convoRemoveAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -6185,14 +6083,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListMember._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - Member? __convoGetMemberFuturePoll( + EventId? __convoSetNameFuturePoll( int boxed, int postCobject, int port, @@ -6206,7 +6103,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoGetMemberFuturePoll( + final tmp6 = _convoSetNameFuturePoll( tmp1, tmp3, tmp5, @@ -6233,13 +6130,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Member._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - Member? __convoGetMyMembershipFuturePoll( + EventId? __convoSetTopicFuturePoll( int boxed, int postCobject, int port, @@ -6253,7 +6150,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoGetMyMembershipFuturePoll( + final tmp6 = _convoSetTopicFuturePoll( tmp1, tmp3, tmp5, @@ -6280,57 +6177,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Member._(this, tmp13_1); - return tmp7; - } - - bool? __convoTypingNoticeFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoTypingNoticeFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - FfiBufferUint8? __convoMediaBinaryFuturePoll( + FfiListFfiString? __convoActiveMembersIdsFuturePoll( int boxed, int postCobject, int port, @@ -6344,7 +6197,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoMediaBinaryFuturePoll( + final tmp6 = _convoActiveMembersIdsFuturePoll( tmp1, tmp3, tmp5, @@ -6371,14 +6224,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiBufferUint8._(this, tmp13_1); + final tmp14 = FfiListFfiString._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - bool? __convoSetBookmarkedFuturePoll( + FfiListMember? __convoActiveMembersFuturePoll( int boxed, int postCobject, int port, @@ -6392,7 +6245,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoSetBookmarkedFuturePoll( + final tmp6 = _convoActiveMembersFuturePoll( tmp1, tmp3, tmp5, @@ -6418,161 +6271,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; - return tmp7; - } - - bool? __convoInviteUserFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoInviteUserFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; - return tmp7; - } - - String? __convoPermalinkFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoPermalinkFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } - return tmp7; - } - - bool? __convoJoinFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _convoJoinFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListMember._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __convoLeaveFuturePoll( + FfiListMember? __convoInvitedMembersFuturePoll( int boxed, int postCobject, int port, @@ -6586,7 +6293,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoLeaveFuturePoll( + final tmp6 = _convoInvitedMembersFuturePoll( tmp1, tmp3, tmp5, @@ -6612,11 +6319,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListMember._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListMember? __convoGetInviteesFuturePoll( + Member? __convoGetMemberFuturePoll( int boxed, int postCobject, int port, @@ -6630,7 +6341,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoGetInviteesFuturePoll( + final tmp6 = _convoGetMemberFuturePoll( tmp1, tmp3, tmp5, @@ -6657,14 +6368,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListMember._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = Member._(this, tmp13_1); return tmp7; } - OptionString? __convoDownloadMediaFuturePoll( + Member? __convoGetMyMembershipFuturePoll( int boxed, int postCobject, int port, @@ -6678,7 +6388,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoDownloadMediaFuturePoll( + final tmp6 = _convoGetMyMembershipFuturePoll( tmp1, tmp3, tmp5, @@ -6705,13 +6415,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionString._(this, tmp13_1); + final tmp7 = Member._(this, tmp13_1); return tmp7; } - OptionString? __convoMediaPathFuturePoll( + bool? __convoTypingNoticeFuturePoll( int boxed, int postCobject, int port, @@ -6725,7 +6435,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoMediaPathFuturePoll( + final tmp6 = _convoTypingNoticeFuturePoll( tmp1, tmp3, tmp5, @@ -6751,14 +6461,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionString._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - FfiListReceiptRecord? __convoUserReceiptsFuturePoll( + FfiBufferUint8? __convoMediaBinaryFuturePoll( int boxed, int postCobject, int port, @@ -6772,7 +6479,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoUserReceiptsFuturePoll( + final tmp6 = _convoMediaBinaryFuturePoll( tmp1, tmp3, tmp5, @@ -6799,14 +6506,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListReceiptRecord"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListReceiptRecord._(this, tmp13_1); + final tmp14 = FfiBufferUint8._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - bool? __convoIsEncryptedFuturePoll( + bool? __convoSetBookmarkedFuturePoll( int boxed, int postCobject, int port, @@ -6820,7 +6527,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoIsEncryptedFuturePoll( + final tmp6 = _convoSetBookmarkedFuturePoll( tmp1, tmp3, tmp5, @@ -6850,7 +6557,7 @@ class Api { return tmp7; } - EventId? __convoRedactMessageFuturePoll( + bool? __convoInviteUserFuturePoll( int boxed, int postCobject, int port, @@ -6864,7 +6571,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoRedactMessageFuturePoll( + final tmp6 = _convoInviteUserFuturePoll( tmp1, tmp3, tmp5, @@ -6890,14 +6597,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __convoUpdatePowerLevelFuturePoll( + String? __convoPermalinkFuturePoll( int boxed, int postCobject, int port, @@ -6911,7 +6615,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoUpdatePowerLevelFuturePoll( + final tmp6 = _convoPermalinkFuturePoll( tmp1, tmp3, tmp5, @@ -6922,6 +6626,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -6937,14 +6643,27 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } return tmp7; } - bool? __convoReportContentFuturePoll( + bool? __convoJoinFuturePoll( int boxed, int postCobject, int port, @@ -6958,7 +6677,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoReportContentFuturePoll( + final tmp6 = _convoJoinFuturePoll( tmp1, tmp3, tmp5, @@ -6988,7 +6707,7 @@ class Api { return tmp7; } - EventId? __convoRedactContentFuturePoll( + bool? __convoLeaveFuturePoll( int boxed, int postCobject, int port, @@ -7002,7 +6721,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _convoRedactContentFuturePoll( + final tmp6 = _convoLeaveFuturePoll( tmp1, tmp3, tmp5, @@ -7028,14 +6747,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __commentDraftSendFuturePoll( + FfiListMember? __convoGetInviteesFuturePoll( int boxed, int postCobject, int port, @@ -7049,7 +6765,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _commentDraftSendFuturePoll( + final tmp6 = _convoGetInviteesFuturePoll( tmp1, tmp3, tmp5, @@ -7076,13 +6792,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp14 = FfiListMember._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __commentCanRedactFuturePoll( + OptionString? __convoDownloadMediaFuturePoll( int boxed, int postCobject, int port, @@ -7096,7 +6813,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _commentCanRedactFuturePoll( + final tmp6 = _convoDownloadMediaFuturePoll( tmp1, tmp3, tmp5, @@ -7122,11 +6839,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = OptionString._(this, tmp13_1); return tmp7; } - FfiListComment? __commentsManagerCommentsFuturePoll( + OptionString? __convoMediaPathFuturePoll( int boxed, int postCobject, int port, @@ -7140,7 +6860,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _commentsManagerCommentsFuturePoll( + final tmp6 = _convoMediaPathFuturePoll( tmp1, tmp3, tmp5, @@ -7167,14 +6887,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListComment"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListComment._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = OptionString._(this, tmp13_1); return tmp7; } - CommentsManager? __commentsManagerReloadFuturePoll( + FfiListReceiptRecord? __convoUserReceiptsFuturePoll( int boxed, int postCobject, int port, @@ -7188,7 +6907,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _commentsManagerReloadFuturePoll( + final tmp6 = _convoUserReceiptsFuturePoll( tmp1, tmp3, tmp5, @@ -7215,13 +6934,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListReceiptRecord"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = CommentsManager._(this, tmp13_1); + final tmp14 = FfiListReceiptRecord._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - EventId? __attachmentDraftSendFuturePoll( + bool? __convoIsEncryptedFuturePoll( int boxed, int postCobject, int port, @@ -7235,7 +6955,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentDraftSendFuturePoll( + final tmp6 = _convoIsEncryptedFuturePoll( tmp1, tmp3, tmp5, @@ -7261,14 +6981,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - OptionString? __attachmentDownloadMediaFuturePoll( + EventId? __convoRedactMessageFuturePoll( int boxed, int postCobject, int port, @@ -7282,7 +6999,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentDownloadMediaFuturePoll( + final tmp6 = _convoRedactMessageFuturePoll( tmp1, tmp3, tmp5, @@ -7309,13 +7026,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionString._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - OptionString? __attachmentMediaPathFuturePoll( + EventId? __convoUpdatePowerLevelFuturePoll( int boxed, int postCobject, int port, @@ -7329,7 +7046,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentMediaPathFuturePoll( + final tmp6 = _convoUpdatePowerLevelFuturePoll( tmp1, tmp3, tmp5, @@ -7356,13 +7073,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionString._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - bool? __attachmentCanRedactFuturePoll( + bool? __convoReportContentFuturePoll( int boxed, int postCobject, int port, @@ -7376,7 +7093,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentCanRedactFuturePoll( + final tmp6 = _convoReportContentFuturePoll( tmp1, tmp3, tmp5, @@ -7406,7 +7123,7 @@ class Api { return tmp7; } - FfiListAttachment? __attachmentsManagerAttachmentsFuturePoll( + EventId? __convoRedactContentFuturePoll( int boxed, int postCobject, int port, @@ -7420,7 +7137,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentsManagerAttachmentsFuturePoll( + final tmp6 = _convoRedactContentFuturePoll( tmp1, tmp3, tmp5, @@ -7447,14 +7164,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListAttachment"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListAttachment._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - AttachmentDraft? __attachmentsManagerContentDraftFuturePoll( + EventId? __commentDraftSendFuturePoll( int boxed, int postCobject, int port, @@ -7468,7 +7184,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentsManagerContentDraftFuturePoll( + final tmp6 = _commentDraftSendFuturePoll( tmp1, tmp3, tmp5, @@ -7495,13 +7211,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentDraft"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = AttachmentDraft._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - AttachmentsManager? __attachmentsManagerReloadFuturePoll( + bool? __commentCanRedactFuturePoll( int boxed, int postCobject, int port, @@ -7515,7 +7231,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentsManagerReloadFuturePoll( + final tmp6 = _commentCanRedactFuturePoll( tmp1, tmp3, tmp5, @@ -7541,14 +7257,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = AttachmentsManager._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __attachmentsManagerRedactFuturePoll( + FfiListComment? __commentsManagerCommentsFuturePoll( int boxed, int postCobject, int port, @@ -7562,7 +7275,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _attachmentsManagerRedactFuturePoll( + final tmp6 = _commentsManagerCommentsFuturePoll( tmp1, tmp3, tmp5, @@ -7589,13 +7302,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListComment"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp14 = FfiListComment._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - EventId? __taskAssignSelfFuturePoll( + CommentsManager? __commentsManagerReloadFuturePoll( int boxed, int postCobject, int port, @@ -7609,7 +7323,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskAssignSelfFuturePoll( + final tmp6 = _commentsManagerReloadFuturePoll( tmp1, tmp3, tmp5, @@ -7636,13 +7350,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = CommentsManager._(this, tmp13_1); return tmp7; } - EventId? __taskUnassignSelfFuturePoll( + EventId? __attachmentDraftSendFuturePoll( int boxed, int postCobject, int port, @@ -7656,7 +7370,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskUnassignSelfFuturePoll( + final tmp6 = _attachmentDraftSendFuturePoll( tmp1, tmp3, tmp5, @@ -7689,7 +7403,7 @@ class Api { return tmp7; } - Task? __taskRefreshFuturePoll( + OptionString? __attachmentDownloadMediaFuturePoll( int boxed, int postCobject, int port, @@ -7703,7 +7417,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskRefreshFuturePoll( + final tmp6 = _attachmentDownloadMediaFuturePoll( tmp1, tmp3, tmp5, @@ -7730,57 +7444,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Task._(this, tmp13_1); - return tmp7; - } - - bool? __taskCanRedactFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _taskCanRedactFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; + final tmp7 = OptionString._(this, tmp13_1); return tmp7; } - CommentsManager? __taskCommentsFuturePoll( + OptionString? __attachmentMediaPathFuturePoll( int boxed, int postCobject, int port, @@ -7794,7 +7464,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskCommentsFuturePoll( + final tmp6 = _attachmentMediaPathFuturePoll( tmp1, tmp3, tmp5, @@ -7821,13 +7491,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = CommentsManager._(this, tmp13_1); + final tmp7 = OptionString._(this, tmp13_1); return tmp7; } - AttachmentsManager? __taskAttachmentsFuturePoll( + bool? __attachmentCanRedactFuturePoll( int boxed, int postCobject, int port, @@ -7841,7 +7511,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskAttachmentsFuturePoll( + final tmp6 = _attachmentCanRedactFuturePoll( tmp1, tmp3, tmp5, @@ -7867,14 +7537,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = AttachmentsManager._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __taskUpdateBuilderSendFuturePoll( + FfiListAttachment? __attachmentsManagerAttachmentsFuturePoll( int boxed, int postCobject, int port, @@ -7888,7 +7555,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskUpdateBuilderSendFuturePoll( + final tmp6 = _attachmentsManagerAttachmentsFuturePoll( tmp1, tmp3, tmp5, @@ -7915,13 +7582,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListAttachment"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp14 = FfiListAttachment._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - EventId? __taskDraftSendFuturePoll( + AttachmentDraft? __attachmentsManagerContentDraftFuturePoll( int boxed, int postCobject, int port, @@ -7935,7 +7603,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskDraftSendFuturePoll( + final tmp6 = _attachmentsManagerContentDraftFuturePoll( tmp1, tmp3, tmp5, @@ -7962,13 +7630,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentDraft"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = AttachmentDraft._(this, tmp13_1); return tmp7; } - FfiListTask? __taskListTasksFuturePoll( + AttachmentsManager? __attachmentsManagerReloadFuturePoll( int boxed, int postCobject, int port, @@ -7982,7 +7650,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListTasksFuturePoll( + final tmp6 = _attachmentsManagerReloadFuturePoll( tmp1, tmp3, tmp5, @@ -8009,14 +7677,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTask"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListTask._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = AttachmentsManager._(this, tmp13_1); return tmp7; } - Task? __taskListTaskFuturePoll( + EventId? __attachmentsManagerRedactFuturePoll( int boxed, int postCobject, int port, @@ -8030,7 +7697,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListTaskFuturePoll( + final tmp6 = _attachmentsManagerRedactFuturePoll( tmp1, tmp3, tmp5, @@ -8057,13 +7724,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Task._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - TaskList? __taskListRefreshFuturePoll( + EventId? __taskAssignSelfFuturePoll( int boxed, int postCobject, int port, @@ -8077,7 +7744,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListRefreshFuturePoll( + final tmp6 = _taskAssignSelfFuturePoll( tmp1, tmp3, tmp5, @@ -8104,13 +7771,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = TaskList._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - bool? __taskListCanRedactFuturePoll( + EventId? __taskUnassignSelfFuturePoll( int boxed, int postCobject, int port, @@ -8124,7 +7791,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListCanRedactFuturePoll( + final tmp6 = _taskUnassignSelfFuturePoll( tmp1, tmp3, tmp5, @@ -8150,11 +7817,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - CommentsManager? __taskListCommentsFuturePoll( + Task? __taskRefreshFuturePoll( int boxed, int postCobject, int port, @@ -8168,7 +7838,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListCommentsFuturePoll( + final tmp6 = _taskRefreshFuturePoll( tmp1, tmp3, tmp5, @@ -8195,13 +7865,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = CommentsManager._(this, tmp13_1); + final tmp7 = Task._(this, tmp13_1); return tmp7; } - AttachmentsManager? __taskListAttachmentsFuturePoll( + bool? __taskCanRedactFuturePoll( int boxed, int postCobject, int port, @@ -8215,7 +7885,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListAttachmentsFuturePoll( + final tmp6 = _taskCanRedactFuturePoll( tmp1, tmp3, tmp5, @@ -8241,14 +7911,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = AttachmentsManager._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - EventId? __taskListDraftSendFuturePoll( + CommentsManager? __taskCommentsFuturePoll( int boxed, int postCobject, int port, @@ -8262,7 +7929,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListDraftSendFuturePoll( + final tmp6 = _taskCommentsFuturePoll( tmp1, tmp3, tmp5, @@ -8289,13 +7956,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = CommentsManager._(this, tmp13_1); return tmp7; } - EventId? __taskListUpdateBuilderSendFuturePoll( + AttachmentsManager? __taskAttachmentsFuturePoll( int boxed, int postCobject, int port, @@ -8309,7 +7976,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _taskListUpdateBuilderSendFuturePoll( + final tmp6 = _taskAttachmentsFuturePoll( tmp1, tmp3, tmp5, @@ -8336,13 +8003,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = AttachmentsManager._(this, tmp13_1); return tmp7; } - OptionBuffer? __spaceHierarchyRoomInfoGetAvatarFuturePoll( + EventId? __taskUpdateBuilderSendFuturePoll( int boxed, int postCobject, int port, @@ -8356,7 +8023,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceHierarchyRoomInfoGetAvatarFuturePoll( + final tmp6 = _taskUpdateBuilderSendFuturePoll( tmp1, tmp3, tmp5, @@ -8383,13 +8050,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionBuffer._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - FfiListSpaceHierarchyRoomInfo? __spaceRelationsQueryHierarchyFuturePoll( + EventId? __taskDraftSendFuturePoll( int boxed, int postCobject, int port, @@ -8403,7 +8070,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceRelationsQueryHierarchyFuturePoll( + final tmp6 = _taskDraftSendFuturePoll( tmp1, tmp3, tmp5, @@ -8430,15 +8097,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = - _Box(this, tmp13_0, "drop_box_FfiListSpaceHierarchyRoomInfo"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListSpaceHierarchyRoomInfo._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - SpaceRelations? __spaceSpaceRelationsFuturePoll( + FfiListTask? __taskListTasksFuturePoll( int boxed, int postCobject, int port, @@ -8452,7 +8117,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSpaceRelationsFuturePoll( + final tmp6 = _taskListTasksFuturePoll( tmp1, tmp3, tmp5, @@ -8479,41 +8144,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_SpaceRelations"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTask"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = SpaceRelations._(this, tmp13_1); - return tmp7; - } - - bool? __spaceIsChildSpaceOfFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _spaceIsChildSpaceOfFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - if (tmp8 == 0) { - return null; - } - final tmp7 = tmp9 > 0; + final tmp14 = FfiListTask._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - String? __spaceAddChildRoomFuturePoll( + Task? __taskListTaskFuturePoll( int boxed, int postCobject, int port, @@ -8527,7 +8165,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceAddChildRoomFuturePoll( + final tmp6 = _taskListTaskFuturePoll( tmp1, tmp3, tmp5, @@ -8538,8 +8176,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -8555,27 +8191,14 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = Task._(this, tmp13_1); return tmp7; } - bool? __spaceRemoveChildRoomFuturePoll( + TaskList? __taskListRefreshFuturePoll( int boxed, int postCobject, int port, @@ -8589,7 +8212,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceRemoveChildRoomFuturePoll( + final tmp6 = _taskListRefreshFuturePoll( tmp1, tmp3, tmp5, @@ -8615,11 +8238,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = TaskList._(this, tmp13_1); return tmp7; } - MxcUri? __spaceUploadAvatarFuturePoll( + bool? __taskListCanRedactFuturePoll( int boxed, int postCobject, int port, @@ -8633,7 +8259,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceUploadAvatarFuturePoll( + final tmp6 = _taskListCanRedactFuturePoll( tmp1, tmp3, tmp5, @@ -8659,14 +8285,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = MxcUri._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - bool? __spaceSetActerSpaceStatesFuturePoll( + CommentsManager? __taskListCommentsFuturePoll( int boxed, int postCobject, int port, @@ -8680,7 +8303,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSetActerSpaceStatesFuturePoll( + final tmp6 = _taskListCommentsFuturePoll( tmp1, tmp3, tmp5, @@ -8706,11 +8329,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_CommentsManager"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = CommentsManager._(this, tmp13_1); return tmp7; } - EventId? __spaceRemoveAvatarFuturePoll( + AttachmentsManager? __taskListAttachmentsFuturePoll( int boxed, int postCobject, int port, @@ -8724,7 +8350,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceRemoveAvatarFuturePoll( + final tmp6 = _taskListAttachmentsFuturePoll( tmp1, tmp3, tmp5, @@ -8751,13 +8377,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_AttachmentsManager"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = AttachmentsManager._(this, tmp13_1); return tmp7; } - EventId? __spaceSetTopicFuturePoll( + EventId? __taskListDraftSendFuturePoll( int boxed, int postCobject, int port, @@ -8771,7 +8397,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSetTopicFuturePoll( + final tmp6 = _taskListDraftSendFuturePoll( tmp1, tmp3, tmp5, @@ -8804,7 +8430,7 @@ class Api { return tmp7; } - EventId? __spaceSetNameFuturePoll( + EventId? __taskListUpdateBuilderSendFuturePoll( int boxed, int postCobject, int port, @@ -8818,7 +8444,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSetNameFuturePoll( + final tmp6 = _taskListUpdateBuilderSendFuturePoll( tmp1, tmp3, tmp5, @@ -8851,7 +8477,7 @@ class Api { return tmp7; } - bool? __spaceSetBookmarkedFuturePoll( + OptionBuffer? __spaceHierarchyRoomInfoGetAvatarFuturePoll( int boxed, int postCobject, int port, @@ -8865,7 +8491,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSetBookmarkedFuturePoll( + final tmp6 = _spaceHierarchyRoomInfoGetAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -8891,11 +8517,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = OptionBuffer._(this, tmp13_1); return tmp7; } - FfiListFfiString? __spaceActiveMembersIdsFuturePoll( + FfiListSpaceHierarchyRoomInfo? __spaceRelationsQueryHierarchyFuturePoll( int boxed, int postCobject, int port, @@ -8909,7 +8538,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceActiveMembersIdsFuturePoll( + final tmp6 = _spaceRelationsQueryHierarchyFuturePoll( tmp1, tmp3, tmp5, @@ -8936,14 +8565,15 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); + final tmp13_1 = + _Box(this, tmp13_0, "drop_box_FfiListSpaceHierarchyRoomInfo"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListFfiString._(this, tmp13_1); + final tmp14 = FfiListSpaceHierarchyRoomInfo._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiListMember? __spaceActiveMembersFuturePoll( + SpaceRelations? __spaceSpaceRelationsFuturePoll( int boxed, int postCobject, int port, @@ -8957,7 +8587,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceActiveMembersFuturePoll( + final tmp6 = _spaceSpaceRelationsFuturePoll( tmp1, tmp3, tmp5, @@ -8984,14 +8614,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_SpaceRelations"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListMember._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = SpaceRelations._(this, tmp13_1); return tmp7; } - FfiListMember? __spaceInvitedMembersFuturePoll( + bool? __spaceIsChildSpaceOfFuturePoll( int boxed, int postCobject, int port, @@ -9005,41 +8634,21 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceInvitedMembersFuturePoll( + final tmp6 = _spaceIsChildSpaceOfFuturePoll( tmp1, tmp3, tmp5, ); final tmp8 = tmp6.arg0; final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; if (tmp8 == 0) { return null; } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListMember._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp9 > 0; return tmp7; } - bool? __spaceInviteUserFuturePoll( + String? __spaceAddChildRoomFuturePoll( int boxed, int postCobject, int port, @@ -9053,7 +8662,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceInviteUserFuturePoll( + final tmp6 = _spaceAddChildRoomFuturePoll( tmp1, tmp3, tmp5, @@ -9064,6 +8673,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -9079,11 +8690,27 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } return tmp7; } - Member? __spaceGetMemberFuturePoll( + bool? __spaceRemoveChildRoomFuturePoll( int boxed, int postCobject, int port, @@ -9097,7 +8724,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceGetMemberFuturePoll( + final tmp6 = _spaceRemoveChildRoomFuturePoll( tmp1, tmp3, tmp5, @@ -9123,14 +8750,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Member._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - Member? __spaceGetMyMembershipFuturePoll( + MxcUri? __spaceUploadAvatarFuturePoll( int boxed, int postCobject, int port, @@ -9144,7 +8768,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceGetMyMembershipFuturePoll( + final tmp6 = _spaceUploadAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -9171,13 +8795,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Member._(this, tmp13_1); + final tmp7 = MxcUri._(this, tmp13_1); return tmp7; } - bool? __spaceIsEncryptedFuturePoll( + bool? __spaceSetActerSpaceStatesFuturePoll( int boxed, int postCobject, int port, @@ -9191,7 +8815,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceIsEncryptedFuturePoll( + final tmp6 = _spaceSetActerSpaceStatesFuturePoll( tmp1, tmp3, tmp5, @@ -9221,7 +8845,7 @@ class Api { return tmp7; } - bool? __spaceIsActerSpaceFuturePoll( + EventId? __spaceRemoveAvatarFuturePoll( int boxed, int postCobject, int port, @@ -9235,7 +8859,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceIsActerSpaceFuturePoll( + final tmp6 = _spaceRemoveAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -9261,11 +8885,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - FfiListTaskList? __spaceTaskListsFuturePoll( + EventId? __spaceSetTopicFuturePoll( int boxed, int postCobject, int port, @@ -9279,7 +8906,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceTaskListsFuturePoll( + final tmp6 = _spaceSetTopicFuturePoll( tmp1, tmp3, tmp5, @@ -9306,14 +8933,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTaskList"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListTaskList._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - TaskList? __spaceTaskListFuturePoll( + EventId? __spaceSetNameFuturePoll( int boxed, int postCobject, int port, @@ -9327,7 +8953,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceTaskListFuturePoll( + final tmp6 = _spaceSetNameFuturePoll( tmp1, tmp3, tmp5, @@ -9354,13 +8980,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = TaskList._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - FfiListNewsEntry? __spaceLatestNewsEntriesFuturePoll( + bool? __spaceSetBookmarkedFuturePoll( int boxed, int postCobject, int port, @@ -9374,7 +9000,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceLatestNewsEntriesFuturePoll( + final tmp6 = _spaceSetBookmarkedFuturePoll( tmp1, tmp3, tmp5, @@ -9400,15 +9026,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListNewsEntry"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListNewsEntry._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - FfiListCalendarEvent? __spaceCalendarEventsFuturePoll( + FfiListFfiString? __spaceActiveMembersIdsFuturePoll( int boxed, int postCobject, int port, @@ -9422,7 +9044,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceCalendarEventsFuturePoll( + final tmp6 = _spaceActiveMembersIdsFuturePoll( tmp1, tmp3, tmp5, @@ -9449,14 +9071,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListCalendarEvent._(this, tmp13_1); + final tmp14 = FfiListFfiString._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiListActerPin? __spacePinsFuturePoll( + FfiListMember? __spaceActiveMembersFuturePoll( int boxed, int postCobject, int port, @@ -9470,7 +9092,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spacePinsFuturePoll( + final tmp6 = _spaceActiveMembersFuturePoll( tmp1, tmp3, tmp5, @@ -9497,14 +9119,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListActerPin._(this, tmp13_1); + final tmp14 = FfiListMember._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiListActerPin? __spacePinnedLinksFuturePoll( + FfiListMember? __spaceInvitedMembersFuturePoll( int boxed, int postCobject, int port, @@ -9518,7 +9140,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spacePinnedLinksFuturePoll( + final tmp6 = _spaceInvitedMembersFuturePoll( tmp1, tmp3, tmp5, @@ -9545,58 +9167,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListMember"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListActerPin._(this, tmp13_1); + final tmp14 = FfiListMember._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - bool? __spaceJoinFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _spaceJoinFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; - return tmp7; - } - - bool? __spaceLeaveFuturePoll( + bool? __spaceInviteUserFuturePoll( int boxed, int postCobject, int port, @@ -9610,7 +9188,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceLeaveFuturePoll( + final tmp6 = _spaceInviteUserFuturePoll( tmp1, tmp3, tmp5, @@ -9640,7 +9218,7 @@ class Api { return tmp7; } - RoomPowerLevels? __spacePowerLevelsFuturePoll( + Member? __spaceGetMemberFuturePoll( int boxed, int postCobject, int port, @@ -9654,7 +9232,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spacePowerLevelsFuturePoll( + final tmp6 = _spaceGetMemberFuturePoll( tmp1, tmp3, tmp5, @@ -9681,13 +9259,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomPowerLevels"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = RoomPowerLevels._(this, tmp13_1); + final tmp7 = Member._(this, tmp13_1); return tmp7; } - ActerAppSettings? __spaceAppSettingsFuturePoll( + Member? __spaceGetMyMembershipFuturePoll( int boxed, int postCobject, int port, @@ -9701,7 +9279,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceAppSettingsFuturePoll( + final tmp6 = _spaceGetMyMembershipFuturePoll( tmp1, tmp3, tmp5, @@ -9728,13 +9306,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerAppSettings"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Member"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = ActerAppSettings._(this, tmp13_1); + final tmp7 = Member._(this, tmp13_1); return tmp7; } - String? __spaceUpdateAppSettingsFuturePoll( + bool? __spaceIsEncryptedFuturePoll( int boxed, int postCobject, int port, @@ -9748,7 +9326,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceUpdateAppSettingsFuturePoll( + final tmp6 = _spaceIsEncryptedFuturePoll( tmp1, tmp3, tmp5, @@ -9759,8 +9337,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -9776,27 +9352,11 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } + final tmp7 = tmp13 > 0; return tmp7; } - bool? __spaceUpdateFeaturePowerLevelsFuturePoll( + bool? __spaceIsActerSpaceFuturePoll( int boxed, int postCobject, int port, @@ -9810,7 +9370,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceUpdateFeaturePowerLevelsFuturePoll( + final tmp6 = _spaceIsActerSpaceFuturePoll( tmp1, tmp3, tmp5, @@ -9840,7 +9400,7 @@ class Api { return tmp7; } - bool? __spaceReportContentFuturePoll( + FfiListTaskList? __spaceTaskListsFuturePoll( int boxed, int postCobject, int port, @@ -9854,7 +9414,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceReportContentFuturePoll( + final tmp6 = _spaceTaskListsFuturePoll( tmp1, tmp3, tmp5, @@ -9880,11 +9440,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTaskList"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListTaskList._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - EventId? __spaceRedactContentFuturePoll( + TaskList? __spaceTaskListFuturePoll( int boxed, int postCobject, int port, @@ -9898,7 +9462,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceRedactContentFuturePoll( + final tmp6 = _spaceTaskListFuturePoll( tmp1, tmp3, tmp5, @@ -9925,13 +9489,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = EventId._(this, tmp13_1); + final tmp7 = TaskList._(this, tmp13_1); return tmp7; } - Categories? __spaceCategoriesFuturePoll( + FfiListNewsEntry? __spaceLatestNewsEntriesFuturePoll( int boxed, int postCobject, int port, @@ -9945,7 +9509,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceCategoriesFuturePoll( + final tmp6 = _spaceLatestNewsEntriesFuturePoll( tmp1, tmp3, tmp5, @@ -9972,13 +9536,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Categories"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListNewsEntry"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Categories._(this, tmp13_1); + final tmp14 = FfiListNewsEntry._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __spaceSetCategoriesFuturePoll( + FfiListCalendarEvent? __spaceCalendarEventsFuturePoll( int boxed, int postCobject, int port, @@ -9992,7 +9557,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _spaceSetCategoriesFuturePoll( + final tmp6 = _spaceCalendarEventsFuturePoll( tmp1, tmp3, tmp5, @@ -10018,11 +9583,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListCalendarEvent._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __memberIgnoreFuturePoll( + FfiListActerPin? __spacePinsFuturePoll( int boxed, int postCobject, int port, @@ -10036,7 +9605,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _memberIgnoreFuturePoll( + final tmp6 = _spacePinsFuturePoll( tmp1, tmp3, tmp5, @@ -10062,11 +9631,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListActerPin._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __memberUnignoreFuturePoll( + FfiListActerPin? __spacePinnedLinksFuturePoll( int boxed, int postCobject, int port, @@ -10080,7 +9653,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _memberUnignoreFuturePoll( + final tmp6 = _spacePinnedLinksFuturePoll( tmp1, tmp3, tmp5, @@ -10106,11 +9679,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListActerPin._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __memberKickFuturePoll( + bool? __spaceJoinFuturePoll( int boxed, int postCobject, int port, @@ -10124,7 +9701,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _memberKickFuturePoll( + final tmp6 = _spaceJoinFuturePoll( tmp1, tmp3, tmp5, @@ -10154,7 +9731,7 @@ class Api { return tmp7; } - bool? __memberBanFuturePoll( + bool? __spaceLeaveFuturePoll( int boxed, int postCobject, int port, @@ -10168,7 +9745,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _memberBanFuturePoll( + final tmp6 = _spaceLeaveFuturePoll( tmp1, tmp3, tmp5, @@ -10198,7 +9775,7 @@ class Api { return tmp7; } - bool? __memberUnbanFuturePoll( + RoomPowerLevels? __spacePowerLevelsFuturePoll( int boxed, int postCobject, int port, @@ -10212,7 +9789,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _memberUnbanFuturePoll( + final tmp6 = _spacePowerLevelsFuturePoll( tmp1, tmp3, tmp5, @@ -10238,11 +9815,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomPowerLevels"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = RoomPowerLevels._(this, tmp13_1); return tmp7; } - bool? __acterUserAppSettingsBuilderSendFuturePoll( + ActerAppSettings? __spaceAppSettingsFuturePoll( int boxed, int postCobject, int port, @@ -10256,7 +9836,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _acterUserAppSettingsBuilderSendFuturePoll( + final tmp6 = _spaceAppSettingsFuturePoll( tmp1, tmp3, tmp5, @@ -10282,11 +9862,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerAppSettings"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = ActerAppSettings._(this, tmp13_1); return tmp7; } - OptionString? __accountDisplayNameFuturePoll( + String? __spaceUpdateAppSettingsFuturePoll( int boxed, int postCobject, int port, @@ -10300,7 +9883,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountDisplayNameFuturePoll( + final tmp6 = _spaceUpdateAppSettingsFuturePoll( tmp1, tmp3, tmp5, @@ -10311,6 +9894,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -10326,14 +9911,27 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionString._(this, tmp13_1); + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } return tmp7; } - bool? __accountSetDisplayNameFuturePoll( + bool? __spaceUpdateFeaturePowerLevelsFuturePoll( int boxed, int postCobject, int port, @@ -10347,7 +9945,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountSetDisplayNameFuturePoll( + final tmp6 = _spaceUpdateFeaturePowerLevelsFuturePoll( tmp1, tmp3, tmp5, @@ -10377,7 +9975,7 @@ class Api { return tmp7; } - OptionBuffer? __accountAvatarFuturePoll( + bool? __spaceReportContentFuturePoll( int boxed, int postCobject, int port, @@ -10391,7 +9989,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountAvatarFuturePoll( + final tmp6 = _spaceReportContentFuturePoll( tmp1, tmp3, tmp5, @@ -10417,14 +10015,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionBuffer._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - MxcUri? __accountUploadAvatarFuturePoll( + EventId? __spaceRedactContentFuturePoll( int boxed, int postCobject, int port, @@ -10438,7 +10033,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountUploadAvatarFuturePoll( + final tmp6 = _spaceRedactContentFuturePoll( tmp1, tmp3, tmp5, @@ -10465,13 +10060,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_EventId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = MxcUri._(this, tmp13_1); + final tmp7 = EventId._(this, tmp13_1); return tmp7; } - FfiListUserId? __accountIgnoredUsersFuturePoll( + Categories? __spaceCategoriesFuturePoll( int boxed, int postCobject, int port, @@ -10485,7 +10080,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountIgnoredUsersFuturePoll( + final tmp6 = _spaceCategoriesFuturePoll( tmp1, tmp3, tmp5, @@ -10512,14 +10107,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Categories"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListUserId._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = Categories._(this, tmp13_1); return tmp7; } - bool? __accountIgnoreUserFuturePoll( + bool? __spaceSetCategoriesFuturePoll( int boxed, int postCobject, int port, @@ -10533,7 +10127,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountIgnoreUserFuturePoll( + final tmp6 = _spaceSetCategoriesFuturePoll( tmp1, tmp3, tmp5, @@ -10563,7 +10157,7 @@ class Api { return tmp7; } - bool? __accountUnignoreUserFuturePoll( + bool? __memberIgnoreFuturePoll( int boxed, int postCobject, int port, @@ -10577,7 +10171,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountUnignoreUserFuturePoll( + final tmp6 = _memberIgnoreFuturePoll( tmp1, tmp3, tmp5, @@ -10607,7 +10201,7 @@ class Api { return tmp7; } - ActerUserAppSettings? __accountActerAppSettingsFuturePoll( + bool? __memberUnignoreFuturePoll( int boxed, int postCobject, int port, @@ -10621,7 +10215,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountActerAppSettingsFuturePoll( + final tmp6 = _memberUnignoreFuturePoll( tmp1, tmp3, tmp5, @@ -10647,14 +10241,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerUserAppSettings"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = ActerUserAppSettings._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - bool? __accountDeactivateFuturePoll( + bool? __memberKickFuturePoll( int boxed, int postCobject, int port, @@ -10668,7 +10259,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountDeactivateFuturePoll( + final tmp6 = _memberKickFuturePoll( tmp1, tmp3, tmp5, @@ -10698,7 +10289,7 @@ class Api { return tmp7; } - bool? __accountChangePasswordFuturePoll( + bool? __memberBanFuturePoll( int boxed, int postCobject, int port, @@ -10712,7 +10303,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountChangePasswordFuturePoll( + final tmp6 = _memberBanFuturePoll( tmp1, tmp3, tmp5, @@ -10742,7 +10333,7 @@ class Api { return tmp7; } - FfiListFfiString? __accountConfirmedEmailAddressesFuturePoll( + bool? __memberUnbanFuturePoll( int boxed, int postCobject, int port, @@ -10756,7 +10347,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountConfirmedEmailAddressesFuturePoll( + final tmp6 = _memberUnbanFuturePoll( tmp1, tmp3, tmp5, @@ -10782,15 +10373,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListFfiString._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - FfiListFfiString? __accountRequestedEmailAddressesFuturePoll( + bool? __acterUserAppSettingsBuilderSendFuturePoll( int boxed, int postCobject, int port, @@ -10804,7 +10391,51 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountRequestedEmailAddressesFuturePoll( + final tmp6 = _acterUserAppSettingsBuilderSendFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + OptionString? __accountDisplayNameFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _accountDisplayNameFuturePoll( tmp1, tmp3, tmp5, @@ -10831,15 +10462,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListFfiString._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = OptionString._(this, tmp13_1); return tmp7; } - ThreePidEmailTokenResponse? - __accountRequest3pidManagementTokenViaEmailFuturePoll( + bool? __accountSetDisplayNameFuturePoll( int boxed, int postCobject, int port, @@ -10853,7 +10482,51 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountRequest3pidManagementTokenViaEmailFuturePoll( + final tmp6 = _accountSetDisplayNameFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + OptionBuffer? __accountAvatarFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _accountAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -10880,13 +10553,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_ThreePidEmailTokenResponse"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = ThreePidEmailTokenResponse._(this, tmp13_1); + final tmp7 = OptionBuffer._(this, tmp13_1); return tmp7; } - FfiListExternalId? __accountExternalIdsFuturePoll( + MxcUri? __accountUploadAvatarFuturePoll( int boxed, int postCobject, int port, @@ -10900,7 +10573,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountExternalIdsFuturePoll( + final tmp6 = _accountUploadAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -10927,14 +10600,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListExternalId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListExternalId._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = MxcUri._(this, tmp13_1); return tmp7; } - bool? __accountTryConfirmEmailStatusFuturePoll( + FfiListUserId? __accountIgnoredUsersFuturePoll( int boxed, int postCobject, int port, @@ -10948,7 +10620,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountTryConfirmEmailStatusFuturePoll( + final tmp6 = _accountIgnoredUsersFuturePoll( tmp1, tmp3, tmp5, @@ -10974,11 +10646,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserId"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListUserId._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __accountSubmitTokenFromEmailFuturePoll( + bool? __accountIgnoreUserFuturePoll( int boxed, int postCobject, int port, @@ -10992,7 +10668,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountSubmitTokenFromEmailFuturePoll( + final tmp6 = _accountIgnoreUserFuturePoll( tmp1, tmp3, tmp5, @@ -11022,7 +10698,7 @@ class Api { return tmp7; } - bool? __accountRemoveEmailAddressFuturePoll( + bool? __accountUnignoreUserFuturePoll( int boxed, int postCobject, int port, @@ -11036,7 +10712,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountRemoveEmailAddressFuturePoll( + final tmp6 = _accountUnignoreUserFuturePoll( tmp1, tmp3, tmp5, @@ -11066,7 +10742,7 @@ class Api { return tmp7; } - Bookmarks? __accountBookmarksFuturePoll( + ActerUserAppSettings? __accountActerAppSettingsFuturePoll( int boxed, int postCobject, int port, @@ -11080,7 +10756,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _accountBookmarksFuturePoll( + final tmp6 = _accountActerAppSettingsFuturePoll( tmp1, tmp3, tmp5, @@ -11107,13 +10783,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Bookmarks"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerUserAppSettings"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Bookmarks._(this, tmp13_1); + final tmp7 = ActerUserAppSettings._(this, tmp13_1); return tmp7; } - bool? __bookmarksAddFuturePoll( + bool? __accountDeactivateFuturePoll( int boxed, int postCobject, int port, @@ -11127,7 +10803,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _bookmarksAddFuturePoll( + final tmp6 = _accountDeactivateFuturePoll( tmp1, tmp3, tmp5, @@ -11157,7 +10833,7 @@ class Api { return tmp7; } - bool? __bookmarksRemoveFuturePoll( + bool? __accountChangePasswordFuturePoll( int boxed, int postCobject, int port, @@ -11171,7 +10847,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _bookmarksRemoveFuturePoll( + final tmp6 = _accountChangePasswordFuturePoll( tmp1, tmp3, tmp5, @@ -11201,7 +10877,7 @@ class Api { return tmp7; } - OptionBuffer? __publicSearchResultItemGetAvatarFuturePoll( + FfiListFfiString? __accountConfirmedEmailAddressesFuturePoll( int boxed, int postCobject, int port, @@ -11215,7 +10891,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _publicSearchResultItemGetAvatarFuturePoll( + final tmp6 = _accountConfirmedEmailAddressesFuturePoll( tmp1, tmp3, tmp5, @@ -11242,13 +10918,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionBuffer._(this, tmp13_1); + final tmp14 = FfiListFfiString._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiBufferUint8? __notificationSenderImageFuturePoll( + FfiListFfiString? __accountRequestedEmailAddressesFuturePoll( int boxed, int postCobject, int port, @@ -11262,7 +10939,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationSenderImageFuturePoll( + final tmp6 = _accountRequestedEmailAddressesFuturePoll( tmp1, tmp3, tmp5, @@ -11289,14 +10966,15 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiBufferUint8._(this, tmp13_1); + final tmp14 = FfiListFfiString._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiBufferUint8? __notificationRoomImageFuturePoll( + ThreePidEmailTokenResponse? + __accountRequest3pidManagementTokenViaEmailFuturePoll( int boxed, int postCobject, int port, @@ -11310,7 +10988,54 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationRoomImageFuturePoll( + final tmp6 = _accountRequest3pidManagementTokenViaEmailFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_ThreePidEmailTokenResponse"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = ThreePidEmailTokenResponse._(this, tmp13_1); + return tmp7; + } + + FfiListExternalId? __accountExternalIdsFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _accountExternalIdsFuturePoll( tmp1, tmp3, tmp5, @@ -11337,14 +11062,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListExternalId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiBufferUint8._(this, tmp13_1); + final tmp14 = FfiListExternalId._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiBufferUint8? __notificationItemImageFuturePoll( + bool? __accountTryConfirmEmailStatusFuturePoll( int boxed, int postCobject, int port, @@ -11358,7 +11083,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationItemImageFuturePoll( + final tmp6 = _accountTryConfirmEmailStatusFuturePoll( tmp1, tmp3, tmp5, @@ -11384,15 +11109,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiBufferUint8._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - String? __notificationItemImagePathFuturePoll( + bool? __accountSubmitTokenFromEmailFuturePoll( int boxed, int postCobject, int port, @@ -11406,7 +11127,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationItemImagePathFuturePoll( + final tmp6 = _accountSubmitTokenFromEmailFuturePoll( tmp1, tmp3, tmp5, @@ -11417,8 +11138,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -11434,27 +11153,11 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } + final tmp7 = tmp13 > 0; return tmp7; } - bool? __pusherDeleteFuturePoll( + bool? __accountRemoveEmailAddressFuturePoll( int boxed, int postCobject, int port, @@ -11468,7 +11171,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _pusherDeleteFuturePoll( + final tmp6 = _accountRemoveEmailAddressFuturePoll( tmp1, tmp3, tmp5, @@ -11498,7 +11201,7 @@ class Api { return tmp7; } - String? __clientRestoreTokenFuturePoll( + Bookmarks? __accountBookmarksFuturePoll( int boxed, int postCobject, int port, @@ -11512,7 +11215,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientRestoreTokenFuturePoll( + final tmp6 = _accountBookmarksFuturePoll( tmp1, tmp3, tmp5, @@ -11523,8 +11226,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -11540,27 +11241,14 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Bookmarks"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = Bookmarks._(this, tmp13_1); return tmp7; } - Room? __clientRoomFuturePoll( + bool? __bookmarksAddFuturePoll( int boxed, int postCobject, int port, @@ -11574,7 +11262,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientRoomFuturePoll( + final tmp6 = _bookmarksAddFuturePoll( tmp1, tmp3, tmp5, @@ -11600,14 +11288,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Room"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Room._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - Convo? __clientConvoFuturePoll( + bool? __bookmarksRemoveFuturePoll( int boxed, int postCobject, int port, @@ -11621,7 +11306,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientConvoFuturePoll( + final tmp6 = _bookmarksRemoveFuturePoll( tmp1, tmp3, tmp5, @@ -11647,42 +11332,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Convo"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Convo._(this, tmp13_1); - return tmp7; - } - - bool? __clientHasConvoFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _clientHasConvoFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - if (tmp8 == 0) { - return null; - } - final tmp7 = tmp9 > 0; + final tmp7 = tmp13 > 0; return tmp7; } - Convo? __clientConvoWithRetryFuturePoll( + OptionBuffer? __publicSearchResultItemGetAvatarFuturePoll( int boxed, int postCobject, int port, @@ -11696,7 +11350,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientConvoWithRetryFuturePoll( + final tmp6 = _publicSearchResultItemGetAvatarFuturePoll( tmp1, tmp3, tmp5, @@ -11723,13 +11377,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Convo"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Convo._(this, tmp13_1); + final tmp7 = OptionBuffer._(this, tmp13_1); return tmp7; } - MxcUri? __clientUploadMediaFuturePoll( + FfiBufferUint8? __notificationSenderImageFuturePoll( int boxed, int postCobject, int port, @@ -11743,7 +11397,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientUploadMediaFuturePoll( + final tmp6 = _notificationSenderImageFuturePoll( tmp1, tmp3, tmp5, @@ -11770,13 +11424,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = MxcUri._(this, tmp13_1); + final tmp14 = FfiBufferUint8._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListSpace? __clientSpacesFuturePoll( + FfiBufferUint8? __notificationRoomImageFuturePoll( int boxed, int postCobject, int port, @@ -11790,7 +11445,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientSpacesFuturePoll( + final tmp6 = _notificationRoomImageFuturePoll( tmp1, tmp3, tmp5, @@ -11817,14 +11472,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListSpace"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListSpace._(this, tmp13_1); + final tmp14 = FfiBufferUint8._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - Room? __clientJoinRoomFuturePoll( + FfiBufferUint8? __notificationItemImageFuturePoll( int boxed, int postCobject, int port, @@ -11838,7 +11493,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientJoinRoomFuturePoll( + final tmp6 = _notificationItemImageFuturePoll( tmp1, tmp3, tmp5, @@ -11865,13 +11520,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Room"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiBuffer"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Room._(this, tmp13_1); + final tmp14 = FfiBufferUint8._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - Space? __clientSpaceFuturePoll( + String? __notificationItemImagePathFuturePoll( int boxed, int postCobject, int port, @@ -11885,7 +11541,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientSpaceFuturePoll( + final tmp6 = _notificationItemImagePathFuturePoll( tmp1, tmp3, tmp5, @@ -11896,6 +11552,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -11911,14 +11569,27 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Space"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Space._(this, tmp13_1); + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } return tmp7; } - FfiListActerPin? __clientPinnedLinksFuturePoll( + bool? __pusherDeleteFuturePoll( int boxed, int postCobject, int port, @@ -11932,7 +11603,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientPinnedLinksFuturePoll( + final tmp6 = _pusherDeleteFuturePoll( tmp1, tmp3, tmp5, @@ -11958,15 +11629,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListActerPin._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - FfiListUserProfile? __clientSuggestedUsersToInviteFuturePoll( + String? __clientRestoreTokenFuturePoll( int boxed, int postCobject, int port, @@ -11980,7 +11647,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientSuggestedUsersToInviteFuturePoll( + final tmp6 = _clientRestoreTokenFuturePoll( tmp1, tmp3, tmp5, @@ -11991,6 +11658,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -12006,15 +11675,27 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserProfile"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListUserProfile._(this, tmp13_1); - final tmp7 = tmp14; + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } return tmp7; } - FfiListUserProfile? __clientSearchUsersFuturePoll( + Room? __clientRoomFuturePoll( int boxed, int postCobject, int port, @@ -12028,7 +11709,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientSearchUsersFuturePoll( + final tmp6 = _clientRoomFuturePoll( tmp1, tmp3, tmp5, @@ -12055,14 +11736,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserProfile"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Room"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListUserProfile._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = Room._(this, tmp13_1); return tmp7; } - PublicSearchResult? __clientSearchPublicRoomFuturePoll( + Convo? __clientConvoFuturePoll( int boxed, int postCobject, int port, @@ -12076,7 +11756,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientSearchPublicRoomFuturePoll( + final tmp6 = _clientConvoFuturePoll( tmp1, tmp3, tmp5, @@ -12103,13 +11783,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_PublicSearchResult"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Convo"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = PublicSearchResult._(this, tmp13_1); + final tmp7 = Convo._(this, tmp13_1); return tmp7; } - bool? __clientVerifiedDeviceFuturePoll( + bool? __clientHasConvoFuturePoll( int boxed, int postCobject, int port, @@ -12123,37 +11803,21 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientVerifiedDeviceFuturePoll( + final tmp6 = _clientHasConvoFuturePoll( tmp1, tmp3, tmp5, ); final tmp8 = tmp6.arg0; final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; if (tmp8 == 0) { return null; } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; + final tmp7 = tmp9 > 0; return tmp7; } - bool? __clientLogoutFuturePoll( + Convo? __clientConvoWithRetryFuturePoll( int boxed, int postCobject, int port, @@ -12167,51 +11831,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientLogoutFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; - return tmp7; - } - - VerificationEvent? __clientRequestVerificationFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _clientRequestVerificationFuturePoll( + final tmp6 = _clientConvoWithRetryFuturePoll( tmp1, tmp3, tmp5, @@ -12238,57 +11858,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_VerificationEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Convo"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = VerificationEvent._(this, tmp13_1); - return tmp7; - } - - bool? __clientInstallRequestEventHandlerFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _clientInstallRequestEventHandlerFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; + final tmp7 = Convo._(this, tmp13_1); return tmp7; } - bool? __clientInstallSasEventHandlerFuturePoll( + MxcUri? __clientUploadMediaFuturePoll( int boxed, int postCobject, int port, @@ -12302,7 +11878,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientInstallSasEventHandlerFuturePoll( + final tmp6 = _clientUploadMediaFuturePoll( tmp1, tmp3, tmp5, @@ -12328,11 +11904,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_MxcUri"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = MxcUri._(this, tmp13_1); return tmp7; } - RoomId? __clientCreateConvoFuturePoll( + FfiListSpace? __clientSpacesFuturePoll( int boxed, int postCobject, int port, @@ -12346,7 +11925,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientCreateConvoFuturePoll( + final tmp6 = _clientSpacesFuturePoll( tmp1, tmp3, tmp5, @@ -12373,13 +11952,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListSpace"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = RoomId._(this, tmp13_1); + final tmp14 = FfiListSpace._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - RoomId? __clientCreateActerSpaceFuturePoll( + Room? __clientJoinRoomFuturePoll( int boxed, int postCobject, int port, @@ -12393,7 +11973,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientCreateActerSpaceFuturePoll( + final tmp6 = _clientJoinRoomFuturePoll( tmp1, tmp3, tmp5, @@ -12420,13 +12000,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomId"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Room"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = RoomId._(this, tmp13_1); + final tmp7 = Room._(this, tmp13_1); return tmp7; } - bool? __clientWaitForRoomFuturePoll( + Space? __clientSpaceFuturePoll( int boxed, int postCobject, int port, @@ -12440,7 +12020,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForRoomFuturePoll( + final tmp6 = _clientSpaceFuturePoll( tmp1, tmp3, tmp5, @@ -12466,11 +12046,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Space"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = Space._(this, tmp13_1); return tmp7; } - Comment? __clientWaitForCommentFuturePoll( + FfiListActerPin? __clientPinnedLinksFuturePoll( int boxed, int postCobject, int port, @@ -12484,7 +12067,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForCommentFuturePoll( + final tmp6 = _clientPinnedLinksFuturePoll( tmp1, tmp3, tmp5, @@ -12511,13 +12094,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Comment"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Comment._(this, tmp13_1); + final tmp14 = FfiListActerPin._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - NewsEntry? __clientWaitForNewsFuturePoll( + FfiListUserProfile? __clientSuggestedUsersToInviteFuturePoll( int boxed, int postCobject, int port, @@ -12531,7 +12115,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForNewsFuturePoll( + final tmp6 = _clientSuggestedUsersToInviteFuturePoll( tmp1, tmp3, tmp5, @@ -12558,13 +12142,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_NewsEntry"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserProfile"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = NewsEntry._(this, tmp13_1); + final tmp14 = FfiListUserProfile._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListNewsEntry? __clientLatestNewsEntriesFuturePoll( + FfiListUserProfile? __clientSearchUsersFuturePoll( int boxed, int postCobject, int port, @@ -12578,7 +12163,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientLatestNewsEntriesFuturePoll( + final tmp6 = _clientSearchUsersFuturePoll( tmp1, tmp3, tmp5, @@ -12605,14 +12190,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListNewsEntry"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListUserProfile"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListNewsEntry._(this, tmp13_1); + final tmp14 = FfiListUserProfile._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - ActerPin? __clientWaitForPinFuturePoll( + PublicSearchResult? __clientSearchPublicRoomFuturePoll( int boxed, int postCobject, int port, @@ -12626,7 +12211,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForPinFuturePoll( + final tmp6 = _clientSearchPublicRoomFuturePoll( tmp1, tmp3, tmp5, @@ -12653,13 +12238,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerPin"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_PublicSearchResult"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = ActerPin._(this, tmp13_1); + final tmp7 = PublicSearchResult._(this, tmp13_1); return tmp7; } - FfiListActerPin? __clientPinsFuturePoll( + bool? __clientVerifiedDeviceFuturePoll( int boxed, int postCobject, int port, @@ -12673,7 +12258,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientPinsFuturePoll( + final tmp6 = _clientVerifiedDeviceFuturePoll( tmp1, tmp3, tmp5, @@ -12699,15 +12284,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListActerPin._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - ActerPin? __clientPinFuturePoll( + bool? __clientLogoutFuturePoll( int boxed, int postCobject, int port, @@ -12721,7 +12302,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientPinFuturePoll( + final tmp6 = _clientLogoutFuturePoll( tmp1, tmp3, tmp5, @@ -12747,14 +12328,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerPin"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = ActerPin._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - TaskList? __clientTaskListFuturePoll( + VerificationEvent? __clientRequestVerificationFuturePoll( int boxed, int postCobject, int port, @@ -12768,7 +12346,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientTaskListFuturePoll( + final tmp6 = _clientRequestVerificationFuturePoll( tmp1, tmp3, tmp5, @@ -12795,13 +12373,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_VerificationEvent"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = TaskList._(this, tmp13_1); + final tmp7 = VerificationEvent._(this, tmp13_1); return tmp7; } - FfiListTaskList? __clientTaskListsFuturePoll( + bool? __clientInstallRequestEventHandlerFuturePoll( int boxed, int postCobject, int port, @@ -12815,7 +12393,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientTaskListsFuturePoll( + final tmp6 = _clientInstallRequestEventHandlerFuturePoll( tmp1, tmp3, tmp5, @@ -12841,15 +12419,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTaskList"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListTaskList._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = tmp13 > 0; return tmp7; } - Task? __clientWaitForTaskFuturePoll( + bool? __clientInstallSasEventHandlerFuturePoll( int boxed, int postCobject, int port, @@ -12863,7 +12437,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForTaskFuturePoll( + final tmp6 = _clientInstallSasEventHandlerFuturePoll( tmp1, tmp3, tmp5, @@ -12889,14 +12463,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Task._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - FfiListTask? __clientMyOpenTasksFuturePoll( + RoomId? __clientCreateConvoFuturePoll( int boxed, int postCobject, int port, @@ -12910,7 +12481,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientMyOpenTasksFuturePoll( + final tmp6 = _clientCreateConvoFuturePoll( tmp1, tmp3, tmp5, @@ -12937,14 +12508,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTask"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListTask._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = RoomId._(this, tmp13_1); return tmp7; } - FfiListCalendarEvent? __clientCalendarEventsFuturePoll( + RoomId? __clientCreateActerSpaceFuturePoll( int boxed, int postCobject, int port, @@ -12958,7 +12528,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientCalendarEventsFuturePoll( + final tmp6 = _clientCreateActerSpaceFuturePoll( tmp1, tmp3, tmp5, @@ -12985,14 +12555,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_RoomId"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListCalendarEvent._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = RoomId._(this, tmp13_1); return tmp7; } - CalendarEvent? __clientCalendarEventFuturePoll( + bool? __clientWaitForRoomFuturePoll( int boxed, int postCobject, int port, @@ -13006,7 +12575,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientCalendarEventFuturePoll( + final tmp6 = _clientWaitForRoomFuturePoll( tmp1, tmp3, tmp5, @@ -13032,14 +12601,11 @@ class Api { } throw tmp9_0; } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_CalendarEvent"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = CalendarEvent._(this, tmp13_1); + final tmp7 = tmp13 > 0; return tmp7; } - CalendarEvent? __clientWaitForCalendarEventFuturePoll( + Comment? __clientWaitForCommentFuturePoll( int boxed, int postCobject, int port, @@ -13053,7 +12619,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForCalendarEventFuturePoll( + final tmp6 = _clientWaitForCommentFuturePoll( tmp1, tmp3, tmp5, @@ -13080,13 +12646,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_CalendarEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Comment"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = CalendarEvent._(this, tmp13_1); + final tmp7 = Comment._(this, tmp13_1); return tmp7; } - Reaction? __clientWaitForReactionFuturePoll( + NewsEntry? __clientWaitForNewsFuturePoll( int boxed, int postCobject, int port, @@ -13100,7 +12666,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForReactionFuturePoll( + final tmp6 = _clientWaitForNewsFuturePoll( tmp1, tmp3, tmp5, @@ -13127,13 +12693,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Reaction"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_NewsEntry"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Reaction._(this, tmp13_1); + final tmp7 = NewsEntry._(this, tmp13_1); return tmp7; } - Rsvp? __clientWaitForRsvpFuturePoll( + FfiListNewsEntry? __clientLatestNewsEntriesFuturePoll( int boxed, int postCobject, int port, @@ -13147,7 +12713,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientWaitForRsvpFuturePoll( + final tmp6 = _clientLatestNewsEntriesFuturePoll( tmp1, tmp3, tmp5, @@ -13174,13 +12740,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_Rsvp"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListNewsEntry"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = Rsvp._(this, tmp13_1); + final tmp14 = FfiListNewsEntry._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __clientInstallDefaultActerPushRulesFuturePoll( + ActerPin? __clientWaitForPinFuturePoll( int boxed, int postCobject, int port, @@ -13194,7 +12761,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientInstallDefaultActerPushRulesFuturePoll( + final tmp6 = _clientWaitForPinFuturePoll( tmp1, tmp3, tmp5, @@ -13220,11 +12787,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerPin"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = ActerPin._(this, tmp13_1); return tmp7; } - FfiListPusher? __clientPushersFuturePoll( + FfiListActerPin? __clientPinsFuturePoll( int boxed, int postCobject, int port, @@ -13238,7 +12808,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientPushersFuturePoll( + final tmp6 = _clientPinsFuturePoll( tmp1, tmp3, tmp5, @@ -13265,14 +12835,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListPusher"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListActerPin"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListPusher._(this, tmp13_1); + final tmp14 = FfiListActerPin._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - bool? __clientAddPusherFuturePoll( + ActerPin? __clientPinFuturePoll( int boxed, int postCobject, int port, @@ -13286,7 +12856,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientAddPusherFuturePoll( + final tmp6 = _clientPinFuturePoll( tmp1, tmp3, tmp5, @@ -13312,11 +12882,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_ActerPin"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = ActerPin._(this, tmp13_1); return tmp7; } - bool? __clientAddEmailPusherFuturePoll( + TaskList? __clientTaskListFuturePoll( int boxed, int postCobject, int port, @@ -13330,7 +12903,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientAddEmailPusherFuturePoll( + final tmp6 = _clientTaskListFuturePoll( tmp1, tmp3, tmp5, @@ -13356,11 +12929,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_TaskList"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = TaskList._(this, tmp13_1); return tmp7; } - NotificationItem? __clientGetNotificationItemFuturePoll( + FfiListTaskList? __clientTaskListsFuturePoll( int boxed, int postCobject, int port, @@ -13374,7 +12950,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientGetNotificationItemFuturePoll( + final tmp6 = _clientTaskListsFuturePoll( tmp1, tmp3, tmp5, @@ -13401,13 +12977,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_NotificationItem"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTaskList"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = NotificationItem._(this, tmp13_1); + final tmp14 = FfiListTaskList._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListCalendarEvent? __clientAllUpcomingEventsFuturePoll( + Task? __clientWaitForTaskFuturePoll( int boxed, int postCobject, int port, @@ -13421,7 +12998,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientAllUpcomingEventsFuturePoll( + final tmp6 = _clientWaitForTaskFuturePoll( tmp1, tmp3, tmp5, @@ -13448,14 +13025,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Task"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListCalendarEvent._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = Task._(this, tmp13_1); return tmp7; } - FfiListCalendarEvent? __clientMyUpcomingEventsFuturePoll( + FfiListTask? __clientMyOpenTasksFuturePoll( int boxed, int postCobject, int port, @@ -13469,7 +13045,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientMyUpcomingEventsFuturePoll( + final tmp6 = _clientMyOpenTasksFuturePoll( tmp1, tmp3, tmp5, @@ -13496,14 +13072,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListTask"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListCalendarEvent._(this, tmp13_1); + final tmp14 = FfiListTask._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - FfiListCalendarEvent? __clientMyPastEventsFuturePoll( + FfiListCalendarEvent? __clientCalendarEventsFuturePoll( int boxed, int postCobject, int port, @@ -13517,7 +13093,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientMyPastEventsFuturePoll( + final tmp6 = _clientCalendarEventsFuturePoll( tmp1, tmp3, tmp5, @@ -13551,7 +13127,7 @@ class Api { return tmp7; } - NotificationSettings? __clientNotificationSettingsFuturePoll( + CalendarEvent? __clientCalendarEventFuturePoll( int boxed, int postCobject, int port, @@ -13565,7 +13141,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientNotificationSettingsFuturePoll( + final tmp6 = _clientCalendarEventFuturePoll( tmp1, tmp3, tmp5, @@ -13592,13 +13168,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_NotificationSettings"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_CalendarEvent"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = NotificationSettings._(this, tmp13_1); + final tmp7 = CalendarEvent._(this, tmp13_1); return tmp7; } - FfiListDeviceRecord? __clientDeviceRecordsFuturePoll( + CalendarEvent? __clientWaitForCalendarEventFuturePoll( int boxed, int postCobject, int port, @@ -13612,7 +13188,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _clientDeviceRecordsFuturePoll( + final tmp6 = _clientWaitForCalendarEventFuturePoll( tmp1, tmp3, tmp5, @@ -13639,14 +13215,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListDeviceRecord"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_CalendarEvent"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListDeviceRecord._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = CalendarEvent._(this, tmp13_1); return tmp7; } - String? __notificationSettingsDefaultNotificationModeFuturePoll( + Reaction? __clientWaitForReactionFuturePoll( int boxed, int postCobject, int port, @@ -13660,7 +13235,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationSettingsDefaultNotificationModeFuturePoll( + final tmp6 = _clientWaitForReactionFuturePoll( tmp1, tmp3, tmp5, @@ -13671,8 +13246,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -13688,27 +13261,14 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); - } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); - } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Reaction"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = Reaction._(this, tmp13_1); return tmp7; } - bool? __notificationSettingsSetDefaultNotificationModeFuturePoll( + Rsvp? __clientWaitForRsvpFuturePoll( int boxed, int postCobject, int port, @@ -13722,7 +13282,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationSettingsSetDefaultNotificationModeFuturePoll( + final tmp6 = _clientWaitForRsvpFuturePoll( tmp1, tmp3, tmp5, @@ -13748,11 +13308,14 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_Rsvp"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = Rsvp._(this, tmp13_1); return tmp7; } - bool? __notificationSettingsGlobalContentSettingFuturePoll( + bool? __clientInstallDefaultActerPushRulesFuturePoll( int boxed, int postCobject, int port, @@ -13766,7 +13329,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationSettingsGlobalContentSettingFuturePoll( + final tmp6 = _clientInstallDefaultActerPushRulesFuturePoll( tmp1, tmp3, tmp5, @@ -13796,7 +13359,7 @@ class Api { return tmp7; } - bool? __notificationSettingsSetGlobalContentSettingFuturePoll( + FfiListPusher? __clientPushersFuturePoll( int boxed, int postCobject, int port, @@ -13810,7 +13373,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _notificationSettingsSetGlobalContentSettingFuturePoll( + final tmp6 = _clientPushersFuturePoll( tmp1, tmp3, tmp5, @@ -13836,11 +13399,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListPusher"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListPusher._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __invitationAcceptFuturePoll( + bool? __clientAddPusherFuturePoll( int boxed, int postCobject, int port, @@ -13854,7 +13421,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _invitationAcceptFuturePoll( + final tmp6 = _clientAddPusherFuturePoll( tmp1, tmp3, tmp5, @@ -13884,7 +13451,7 @@ class Api { return tmp7; } - bool? __invitationRejectFuturePoll( + bool? __clientAddEmailPusherFuturePoll( int boxed, int postCobject, int port, @@ -13898,7 +13465,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _invitationRejectFuturePoll( + final tmp6 = _clientAddEmailPusherFuturePoll( tmp1, tmp3, tmp5, @@ -13928,7 +13495,7 @@ class Api { return tmp7; } - FfiListSuperInviteToken? __superInvitesTokensFuturePoll( + NotificationItem? __clientGetNotificationItemFuturePoll( int boxed, int postCobject, int port, @@ -13942,7 +13509,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _superInvitesTokensFuturePoll( + final tmp6 = _clientGetNotificationItemFuturePoll( tmp1, tmp3, tmp5, @@ -13969,14 +13536,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListSuperInviteToken"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_NotificationItem"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListSuperInviteToken._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = NotificationItem._(this, tmp13_1); return tmp7; } - SuperInviteToken? __superInvitesCreateOrUpdateTokenFuturePoll( + FfiListCalendarEvent? __clientAllUpcomingEventsFuturePoll( int boxed, int postCobject, int port, @@ -13990,7 +13556,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _superInvitesCreateOrUpdateTokenFuturePoll( + final tmp6 = _clientAllUpcomingEventsFuturePoll( tmp1, tmp3, tmp5, @@ -14017,13 +13583,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_SuperInviteToken"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = SuperInviteToken._(this, tmp13_1); + final tmp14 = FfiListCalendarEvent._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - bool? __superInvitesDeleteFuturePoll( + FfiListCalendarEvent? __clientMyUpcomingEventsFuturePoll( int boxed, int postCobject, int port, @@ -14037,7 +13604,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _superInvitesDeleteFuturePoll( + final tmp6 = _clientMyUpcomingEventsFuturePoll( tmp1, tmp3, tmp5, @@ -14063,11 +13630,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListCalendarEvent._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListFfiString? __superInvitesRedeemFuturePoll( + FfiListCalendarEvent? __clientMyPastEventsFuturePoll( int boxed, int postCobject, int port, @@ -14081,7 +13652,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _superInvitesRedeemFuturePoll( + final tmp6 = _clientMyPastEventsFuturePoll( tmp1, tmp3, tmp5, @@ -14108,14 +13679,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListCalendarEvent"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListFfiString._(this, tmp13_1); + final tmp14 = FfiListCalendarEvent._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - SuperInviteInfo? __superInvitesInfoFuturePoll( + NotificationSettings? __clientNotificationSettingsFuturePoll( int boxed, int postCobject, int port, @@ -14129,7 +13700,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _superInvitesInfoFuturePoll( + final tmp6 = _clientNotificationSettingsFuturePoll( tmp1, tmp3, tmp5, @@ -14156,13 +13727,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_SuperInviteInfo"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_NotificationSettings"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = SuperInviteInfo._(this, tmp13_1); + final tmp7 = NotificationSettings._(this, tmp13_1); return tmp7; } - FfiListVerificationEmoji? __verificationEventGetEmojisFuturePoll( + FfiListDeviceRecord? __clientDeviceRecordsFuturePoll( int boxed, int postCobject, int port, @@ -14176,7 +13747,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventGetEmojisFuturePoll( + final tmp6 = _clientDeviceRecordsFuturePoll( tmp1, tmp3, tmp5, @@ -14203,14 +13774,14 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListVerificationEmoji"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListDeviceRecord"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListVerificationEmoji._(this, tmp13_1); + final tmp14 = FfiListDeviceRecord._(this, tmp13_1); final tmp7 = tmp14; return tmp7; } - bool? __verificationEventAcceptVerificationRequestFuturePoll( + String? __notificationSettingsDefaultNotificationModeFuturePoll( int boxed, int postCobject, int port, @@ -14224,7 +13795,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventAcceptVerificationRequestFuturePoll( + final tmp6 = _notificationSettingsDefaultNotificationModeFuturePoll( tmp1, tmp3, tmp5, @@ -14235,6 +13806,8 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -14250,55 +13823,27 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; - return tmp7; - } - - bool? __verificationEventCancelVerificationRequestFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _verificationEventCancelVerificationRequestFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; + if (tmp14 == 0) { + print("returning empty string"); + return ""; } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); } - final tmp7 = tmp13 > 0; return tmp7; } - bool? __verificationEventAcceptVerificationRequestWithMethodFuturePoll( + bool? __notificationSettingsSetDefaultNotificationModeFuturePoll( int boxed, int postCobject, int port, @@ -14312,8 +13857,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = - _verificationEventAcceptVerificationRequestWithMethodFuturePoll( + final tmp6 = _notificationSettingsSetDefaultNotificationModeFuturePoll( tmp1, tmp3, tmp5, @@ -14343,7 +13887,7 @@ class Api { return tmp7; } - bool? __verificationEventStartSasVerificationFuturePoll( + bool? __notificationSettingsGlobalContentSettingFuturePoll( int boxed, int postCobject, int port, @@ -14357,7 +13901,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventStartSasVerificationFuturePoll( + final tmp6 = _notificationSettingsGlobalContentSettingFuturePoll( tmp1, tmp3, tmp5, @@ -14387,7 +13931,7 @@ class Api { return tmp7; } - bool? __verificationEventAcceptSasVerificationFuturePoll( + bool? __notificationSettingsSetGlobalContentSettingFuturePoll( int boxed, int postCobject, int port, @@ -14401,7 +13945,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventAcceptSasVerificationFuturePoll( + final tmp6 = _notificationSettingsSetGlobalContentSettingFuturePoll( tmp1, tmp3, tmp5, @@ -14431,7 +13975,7 @@ class Api { return tmp7; } - bool? __verificationEventCancelSasVerificationFuturePoll( + bool? __invitationAcceptFuturePoll( int boxed, int postCobject, int port, @@ -14445,7 +13989,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventCancelSasVerificationFuturePoll( + final tmp6 = _invitationAcceptFuturePoll( tmp1, tmp3, tmp5, @@ -14475,7 +14019,7 @@ class Api { return tmp7; } - bool? __verificationEventConfirmSasVerificationFuturePoll( + bool? __invitationRejectFuturePoll( int boxed, int postCobject, int port, @@ -14489,7 +14033,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventConfirmSasVerificationFuturePoll( + final tmp6 = _invitationRejectFuturePoll( tmp1, tmp3, tmp5, @@ -14519,7 +14063,7 @@ class Api { return tmp7; } - bool? __verificationEventMismatchSasVerificationFuturePoll( + FfiListSuperInviteToken? __superInvitesTokensFuturePoll( int boxed, int postCobject, int port, @@ -14533,7 +14077,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _verificationEventMismatchSasVerificationFuturePoll( + final tmp6 = _superInvitesTokensFuturePoll( tmp1, tmp3, tmp5, @@ -14559,11 +14103,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListSuperInviteToken"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListSuperInviteToken._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - FfiListDeviceRecord? __sessionManagerAllSessionsFuturePoll( + SuperInviteToken? __superInvitesCreateOrUpdateTokenFuturePoll( int boxed, int postCobject, int port, @@ -14577,7 +14125,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _sessionManagerAllSessionsFuturePoll( + final tmp6 = _superInvitesCreateOrUpdateTokenFuturePoll( tmp1, tmp3, tmp5, @@ -14604,14 +14152,13 @@ class Api { throw tmp9_0; } final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListDeviceRecord"); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_SuperInviteToken"); tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp14 = FfiListDeviceRecord._(this, tmp13_1); - final tmp7 = tmp14; + final tmp7 = SuperInviteToken._(this, tmp13_1); return tmp7; } - bool? __sessionManagerDeleteDeviceFuturePoll( + bool? __superInvitesDeleteFuturePoll( int boxed, int postCobject, int port, @@ -14625,7 +14172,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _sessionManagerDeleteDeviceFuturePoll( + final tmp6 = _superInvitesDeleteFuturePoll( tmp1, tmp3, tmp5, @@ -14655,7 +14202,7 @@ class Api { return tmp7; } - String? __sessionManagerRequestVerificationFuturePoll( + FfiListFfiString? __superInvitesRedeemFuturePoll( int boxed, int postCobject, int port, @@ -14669,7 +14216,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _sessionManagerRequestVerificationFuturePoll( + final tmp6 = _superInvitesRedeemFuturePoll( tmp1, tmp3, tmp5, @@ -14680,8 +14227,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -14697,27 +14242,62 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListFfiString"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListFfiString._(this, tmp13_1); + final tmp7 = tmp14; + return tmp7; + } + + SuperInviteInfo? __superInvitesInfoFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _superInvitesInfoFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_SuperInviteInfo"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = SuperInviteInfo._(this, tmp13_1); return tmp7; } - bool? __sessionManagerTerminateVerificationFuturePoll( + FfiListVerificationEmoji? __verificationEventGetEmojisFuturePoll( int boxed, int postCobject, int port, @@ -14731,7 +14311,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _sessionManagerTerminateVerificationFuturePoll( + final tmp6 = _verificationEventGetEmojisFuturePoll( tmp1, tmp3, tmp5, @@ -14757,11 +14337,15 @@ class Api { } throw tmp9_0; } - final tmp7 = tmp13 > 0; + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListVerificationEmoji"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListVerificationEmoji._(this, tmp13_1); + final tmp7 = tmp14; return tmp7; } - String? __backupManagerEnableFuturePoll( + bool? __verificationEventAcceptVerificationRequestFuturePoll( int boxed, int postCobject, int port, @@ -14775,7 +14359,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _backupManagerEnableFuturePoll( + final tmp6 = _verificationEventAcceptVerificationRequestFuturePoll( tmp1, tmp3, tmp5, @@ -14786,8 +14370,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -14803,27 +14385,55 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __verificationEventCancelVerificationRequestFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _verificationEventCancelVerificationRequestFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; } + final tmp7 = tmp13 > 0; return tmp7; } - String? __backupManagerResetFuturePoll( + bool? __verificationEventAcceptVerificationRequestWithMethodFuturePoll( int boxed, int postCobject, int port, @@ -14837,7 +14447,8 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _backupManagerResetFuturePoll( + final tmp6 = + _verificationEventAcceptVerificationRequestWithMethodFuturePoll( tmp1, tmp3, tmp5, @@ -14848,8 +14459,6 @@ class Api { final tmp11 = tmp6.arg3; final tmp12 = tmp6.arg4; final tmp13 = tmp6.arg5; - final tmp14 = tmp6.arg6; - final tmp15 = tmp6.arg7; if (tmp8 == 0) { return null; } @@ -14865,27 +14474,55 @@ class Api { } throw tmp9_0; } - if (tmp14 == 0) { - print("returning empty string"); - return ""; - } - final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); - List tmp13_buf = []; - final tmp13_precast = tmp13_ptr.cast(); - for (int i = 0; i < tmp14; i++) { - int char = tmp13_precast.elementAt(i).value; - tmp13_buf.add(char); + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __verificationEventStartSasVerificationFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _verificationEventStartSasVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; } - final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); - if (tmp15 > 0) { - final ffi.Pointer tmp13_0; - tmp13_0 = ffi.Pointer.fromAddress(tmp13); - this.__deallocate(tmp13_0, tmp15 * 1, 1); + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; } + final tmp7 = tmp13 > 0; return tmp7; } - bool? __backupManagerDisableFuturePoll( + bool? __verificationEventAcceptSasVerificationFuturePoll( int boxed, int postCobject, int port, @@ -14899,7 +14536,7 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _backupManagerDisableFuturePoll( + final tmp6 = _verificationEventAcceptSasVerificationFuturePoll( tmp1, tmp3, tmp5, @@ -14929,7 +14566,7 @@ class Api { return tmp7; } - bool? __backupManagerRecoverFuturePoll( + bool? __verificationEventCancelSasVerificationFuturePoll( int boxed, int postCobject, int port, @@ -14943,7 +14580,505 @@ class Api { tmp1 = tmp0; tmp3 = tmp2; tmp5 = tmp4; - final tmp6 = _backupManagerRecoverFuturePoll( + final tmp6 = _verificationEventCancelSasVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __verificationEventConfirmSasVerificationFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _verificationEventConfirmSasVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __verificationEventMismatchSasVerificationFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _verificationEventMismatchSasVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + FfiListDeviceRecord? __sessionManagerAllSessionsFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _sessionManagerAllSessionsFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_FfiListDeviceRecord"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp14 = FfiListDeviceRecord._(this, tmp13_1); + final tmp7 = tmp14; + return tmp7; + } + + bool? __sessionManagerDeleteDeviceFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _sessionManagerDeleteDeviceFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + String? __sessionManagerRequestVerificationFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _sessionManagerRequestVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } + return tmp7; + } + + bool? __sessionManagerTerminateVerificationFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _sessionManagerTerminateVerificationFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + String? __backupManagerEnableFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _backupManagerEnableFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } + return tmp7; + } + + String? __backupManagerResetFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _backupManagerResetFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + final tmp14 = tmp6.arg6; + final tmp15 = tmp6.arg7; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + if (tmp14 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp13_ptr = ffi.Pointer.fromAddress(tmp13); + List tmp13_buf = []; + final tmp13_precast = tmp13_ptr.cast(); + for (int i = 0; i < tmp14; i++) { + int char = tmp13_precast.elementAt(i).value; + tmp13_buf.add(char); + } + final tmp7 = utf8.decode(tmp13_buf, allowMalformed: true); + if (tmp15 > 0) { + final ffi.Pointer tmp13_0; + tmp13_0 = ffi.Pointer.fromAddress(tmp13); + this.__deallocate(tmp13_0, tmp15 * 1, 1); + } + return tmp7; + } + + bool? __backupManagerDisableFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _backupManagerDisableFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __backupManagerRecoverFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _backupManagerRecoverFuturePoll( tmp1, tmp3, tmp5, @@ -16831,6 +16966,16 @@ class Api { _OptionRsvpStatusStatusStrReturn Function( int, )>(); + late final _optionComposeDraftDraftPtr = _lookup< + ffi.NativeFunction< + _OptionComposeDraftDraftReturn Function( + ffi.IntPtr, + )>>("__OptionComposeDraft_draft"); + + late final _optionComposeDraftDraft = _optionComposeDraftDraftPtr.asFunction< + _OptionComposeDraftDraftReturn Function( + int, + )>(); late final _userProfileUserIdPtr = _lookup< ffi.NativeFunction< ffi.IntPtr Function( @@ -17091,6 +17236,46 @@ class Api { _MxcUriToStringReturn Function( int, )>(); + late final _composeDraftPlainTextPtr = _lookup< + ffi.NativeFunction< + _ComposeDraftPlainTextReturn Function( + ffi.IntPtr, + )>>("__ComposeDraft_plain_text"); + + late final _composeDraftPlainText = _composeDraftPlainTextPtr.asFunction< + _ComposeDraftPlainTextReturn Function( + int, + )>(); + late final _composeDraftHtmlTextPtr = _lookup< + ffi.NativeFunction< + _ComposeDraftHtmlTextReturn Function( + ffi.IntPtr, + )>>("__ComposeDraft_html_text"); + + late final _composeDraftHtmlText = _composeDraftHtmlTextPtr.asFunction< + _ComposeDraftHtmlTextReturn Function( + int, + )>(); + late final _composeDraftEventIdPtr = _lookup< + ffi.NativeFunction< + _ComposeDraftEventIdReturn Function( + ffi.IntPtr, + )>>("__ComposeDraft_event_id"); + + late final _composeDraftEventId = _composeDraftEventIdPtr.asFunction< + _ComposeDraftEventIdReturn Function( + int, + )>(); + late final _composeDraftDraftTypePtr = _lookup< + ffi.NativeFunction< + _ComposeDraftDraftTypeReturn Function( + ffi.IntPtr, + )>>("__ComposeDraft_draft_type"); + + late final _composeDraftDraftType = _composeDraftDraftTypePtr.asFunction< + _ComposeDraftDraftTypeReturn Function( + int, + )>(); late final _roomIdToStringPtr = _lookup< ffi.NativeFunction< _RoomIdToStringReturn Function( @@ -19906,6 +20091,64 @@ class Api { int Function( int, )>(); + late final _roomMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + )>>("__Room_msg_draft"); + + late final _roomMsgDraft = _roomMsgDraftPtr.asFunction< + int Function( + int, + )>(); + late final _roomSaveMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.Uint8, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.Uint8, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + )>>("__Room_save_msg_draft"); + + late final _roomSaveMsgDraft = _roomSaveMsgDraftPtr.asFunction< + int Function( + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + )>(); + late final _roomClearMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + )>>("__Room_clear_msg_draft"); + + late final _roomClearMsgDraft = _roomClearMsgDraftPtr.asFunction< + int Function( + int, + )>(); late final _convoDiffActionPtr = _lookup< ffi.NativeFunction< _ConvoDiffActionReturn Function( @@ -28705,6 +28948,50 @@ class Api { int, int, )>(); + late final _roomMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _RoomMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Room_msg_draft_future_poll"); + + late final _roomMsgDraftFuturePoll = _roomMsgDraftFuturePollPtr.asFunction< + _RoomMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); + late final _roomSaveMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _RoomSaveMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Room_save_msg_draft_future_poll"); + + late final _roomSaveMsgDraftFuturePoll = + _roomSaveMsgDraftFuturePollPtr.asFunction< + _RoomSaveMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); + late final _roomClearMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _RoomClearMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Room_clear_msg_draft_future_poll"); + + late final _roomClearMsgDraftFuturePoll = + _roomClearMsgDraftFuturePollPtr.asFunction< + _RoomClearMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); late final _timelineStreamGetMessageFuturePollPtr = _lookup< ffi.NativeFunction< _TimelineStreamGetMessageFuturePollReturn Function( @@ -34716,6 +35003,37 @@ class OptionRsvpStatus { } } +class OptionComposeDraft { + final Api _api; + final _Box _box; + + OptionComposeDraft._(this._api, this._box); + + /// get compose draft object + ComposeDraft? draft() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._optionComposeDraftDraft( + tmp0, + ); + final tmp3 = tmp1.arg0; + final tmp4 = tmp1.arg1; + if (tmp3 == 0) { + return null; + } + final ffi.Pointer tmp4_0 = ffi.Pointer.fromAddress(tmp4); + final tmp4_1 = _Box(_api, tmp4_0, "drop_box_ComposeDraft"); + tmp4_1._finalizer = _api._registerFinalizer(tmp4_1); + final tmp2 = ComposeDraft._(_api, tmp4_1); + return tmp2; + } + + /// Manually drops the object and unregisters the FinalizableHandle. + void drop() { + _box.drop(); + } +} + class UserProfile { final Api _api; final _Box _box; @@ -35345,16 +35663,99 @@ class DeviceId { } } -class EventId { +class EventId { + final Api _api; + final _Box _box; + + EventId._(this._api, this._box); + + String toString() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._eventIdToString( + tmp0, + ); + final tmp3 = tmp1.arg0; + final tmp4 = tmp1.arg1; + final tmp5 = tmp1.arg2; + if (tmp4 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp3_ptr = ffi.Pointer.fromAddress(tmp3); + List tmp3_buf = []; + final tmp3_precast = tmp3_ptr.cast(); + for (int i = 0; i < tmp4; i++) { + int char = tmp3_precast.elementAt(i).value; + tmp3_buf.add(char); + } + final tmp2 = utf8.decode(tmp3_buf, allowMalformed: true); + if (tmp5 > 0) { + final ffi.Pointer tmp3_0; + tmp3_0 = ffi.Pointer.fromAddress(tmp3); + _api.__deallocate(tmp3_0, tmp5 * 1, 1); + } + return tmp2; + } + + /// Manually drops the object and unregisters the FinalizableHandle. + void drop() { + _box.drop(); + } +} + +class MxcUri { + final Api _api; + final _Box _box; + + MxcUri._(this._api, this._box); + + String toString() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._mxcUriToString( + tmp0, + ); + final tmp3 = tmp1.arg0; + final tmp4 = tmp1.arg1; + final tmp5 = tmp1.arg2; + if (tmp4 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp3_ptr = ffi.Pointer.fromAddress(tmp3); + List tmp3_buf = []; + final tmp3_precast = tmp3_ptr.cast(); + for (int i = 0; i < tmp4; i++) { + int char = tmp3_precast.elementAt(i).value; + tmp3_buf.add(char); + } + final tmp2 = utf8.decode(tmp3_buf, allowMalformed: true); + if (tmp5 > 0) { + final ffi.Pointer tmp3_0; + tmp3_0 = ffi.Pointer.fromAddress(tmp3); + _api.__deallocate(tmp3_0, tmp5 * 1, 1); + } + return tmp2; + } + + /// Manually drops the object and unregisters the FinalizableHandle. + void drop() { + _box.drop(); + } +} + +class ComposeDraft { final Api _api; final _Box _box; - EventId._(this._api, this._box); + ComposeDraft._(this._api, this._box); - String toString() { + /// plain body text, always available + String plainText() { var tmp0 = 0; tmp0 = _box.borrow(); - final tmp1 = _api._eventIdToString( + final tmp1 = _api._composeDraftPlainText( tmp0, ); final tmp3 = tmp1.arg0; @@ -35380,22 +35781,80 @@ class EventId { return tmp2; } - /// Manually drops the object and unregisters the FinalizableHandle. - void drop() { - _box.drop(); + /// formatted text + String? htmlText() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._composeDraftHtmlText( + tmp0, + ); + final tmp3 = tmp1.arg0; + final tmp4 = tmp1.arg1; + final tmp5 = tmp1.arg2; + final tmp6 = tmp1.arg3; + if (tmp3 == 0) { + return null; + } + if (tmp5 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp4_ptr = ffi.Pointer.fromAddress(tmp4); + List tmp4_buf = []; + final tmp4_precast = tmp4_ptr.cast(); + for (int i = 0; i < tmp5; i++) { + int char = tmp4_precast.elementAt(i).value; + tmp4_buf.add(char); + } + final tmp2 = utf8.decode(tmp4_buf, allowMalformed: true); + if (tmp6 > 0) { + final ffi.Pointer tmp4_0; + tmp4_0 = ffi.Pointer.fromAddress(tmp4); + _api.__deallocate(tmp4_0, tmp6 * 1, 1); + } + return tmp2; } -} - -class MxcUri { - final Api _api; - final _Box _box; - MxcUri._(this._api, this._box); + /// event id, only valid for edit and reply states + String? eventId() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._composeDraftEventId( + tmp0, + ); + final tmp3 = tmp1.arg0; + final tmp4 = tmp1.arg1; + final tmp5 = tmp1.arg2; + final tmp6 = tmp1.arg3; + if (tmp3 == 0) { + return null; + } + if (tmp5 == 0) { + print("returning empty string"); + return ""; + } + final ffi.Pointer tmp4_ptr = ffi.Pointer.fromAddress(tmp4); + List tmp4_buf = []; + final tmp4_precast = tmp4_ptr.cast(); + for (int i = 0; i < tmp5; i++) { + int char = tmp4_precast.elementAt(i).value; + tmp4_buf.add(char); + } + final tmp2 = utf8.decode(tmp4_buf, allowMalformed: true); + if (tmp6 > 0) { + final ffi.Pointer tmp4_0; + tmp4_0 = ffi.Pointer.fromAddress(tmp4); + _api.__deallocate(tmp4_0, tmp6 * 1, 1); + } + return tmp2; + } - String toString() { + /// compose message state type. + /// One of `new`, `edit`, `reply`. + String draftType() { var tmp0 = 0; tmp0 = _box.borrow(); - final tmp1 = _api._mxcUriToString( + final tmp1 = _api._composeDraftDraftType( tmp0, ); final tmp3 = tmp1.arg0; @@ -41344,6 +41803,132 @@ class Room { return tmp2; } + /// compose message state of the room + Future msgDraft() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._roomMsgDraft( + tmp0, + ); + final tmp3 = tmp1; + final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); + final tmp3_1 = _Box(_api, tmp3_0, "__Room_msg_draft_future_drop"); + tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); + final tmp2 = _nativeFuture(tmp3_1, _api.__roomMsgDraftFuturePoll); + return tmp2; + } + + /// save composed message state of the room + Future saveMsgDraft( + String text, + String? html, + String draftType, + String? eventId, + ) { + final tmp1 = text; + final tmp5 = html; + final tmp11 = draftType; + final tmp15 = eventId; + var tmp0 = 0; + var tmp2 = 0; + var tmp3 = 0; + var tmp4 = 0; + var tmp6 = 0; + var tmp8 = 0; + var tmp9 = 0; + var tmp10 = 0; + var tmp12 = 0; + var tmp13 = 0; + var tmp14 = 0; + var tmp16 = 0; + var tmp18 = 0; + var tmp19 = 0; + var tmp20 = 0; + tmp0 = _box.borrow(); + final tmp1_0 = utf8.encode(tmp1); + tmp3 = tmp1_0.length; + + final ffi.Pointer tmp2_0 = _api.__allocate(tmp3 * 1, 1); + final Uint8List tmp2_1 = tmp2_0.asTypedList(tmp3); + tmp2_1.setAll(0, tmp1_0); + tmp2 = tmp2_0.address; + tmp4 = tmp3; + if (tmp5 == null) { + tmp6 = 0; + } else { + tmp6 = 1; + final tmp7 = tmp5; + final tmp7_0 = utf8.encode(tmp7); + tmp9 = tmp7_0.length; + + final ffi.Pointer tmp8_0 = _api.__allocate(tmp9 * 1, 1); + final Uint8List tmp8_1 = tmp8_0.asTypedList(tmp9); + tmp8_1.setAll(0, tmp7_0); + tmp8 = tmp8_0.address; + tmp10 = tmp9; + } + final tmp11_0 = utf8.encode(tmp11); + tmp13 = tmp11_0.length; + + final ffi.Pointer tmp12_0 = _api.__allocate(tmp13 * 1, 1); + final Uint8List tmp12_1 = tmp12_0.asTypedList(tmp13); + tmp12_1.setAll(0, tmp11_0); + tmp12 = tmp12_0.address; + tmp14 = tmp13; + if (tmp15 == null) { + tmp16 = 0; + } else { + tmp16 = 1; + final tmp17 = tmp15; + final tmp17_0 = utf8.encode(tmp17); + tmp19 = tmp17_0.length; + + final ffi.Pointer tmp18_0 = _api.__allocate(tmp19 * 1, 1); + final Uint8List tmp18_1 = tmp18_0.asTypedList(tmp19); + tmp18_1.setAll(0, tmp17_0); + tmp18 = tmp18_0.address; + tmp20 = tmp19; + } + final tmp21 = _api._roomSaveMsgDraft( + tmp0, + tmp2, + tmp3, + tmp4, + tmp6, + tmp8, + tmp9, + tmp10, + tmp12, + tmp13, + tmp14, + tmp16, + tmp18, + tmp19, + tmp20, + ); + final tmp23 = tmp21; + final ffi.Pointer tmp23_0 = ffi.Pointer.fromAddress(tmp23); + final tmp23_1 = _Box(_api, tmp23_0, "__Room_save_msg_draft_future_drop"); + tmp23_1._finalizer = _api._registerFinalizer(tmp23_1); + final tmp22 = _nativeFuture(tmp23_1, _api.__roomSaveMsgDraftFuturePoll); + return tmp22; + } + + /// clear composed message state of the room + Future clearMsgDraft() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._roomClearMsgDraft( + tmp0, + ); + final tmp3 = tmp1; + final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); + final tmp3_1 = _Box(_api, tmp3_0, "__Room_clear_msg_draft_future_drop"); + tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); + final tmp2 = _nativeFuture(tmp3_1, _api.__roomClearMsgDraftFuturePoll); + return tmp2; + } + /// Manually drops the object and unregisters the FinalizableHandle. void drop() { _box.drop(); @@ -57368,6 +57953,13 @@ class _OptionRsvpStatusStatusStrReturn extends ffi.Struct { external int arg3; } +class _OptionComposeDraftDraftReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.IntPtr() + external int arg1; +} + class _UserProfileGetDisplayNameReturn extends ffi.Struct { @ffi.Uint8() external int arg0; @@ -57508,6 +58100,46 @@ class _MxcUriToStringReturn extends ffi.Struct { external int arg2; } +class _ComposeDraftPlainTextReturn extends ffi.Struct { + @ffi.IntPtr() + external int arg0; + @ffi.UintPtr() + external int arg1; + @ffi.UintPtr() + external int arg2; +} + +class _ComposeDraftHtmlTextReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.IntPtr() + external int arg1; + @ffi.UintPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; +} + +class _ComposeDraftEventIdReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.IntPtr() + external int arg1; + @ffi.UintPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; +} + +class _ComposeDraftDraftTypeReturn extends ffi.Struct { + @ffi.IntPtr() + external int arg0; + @ffi.UintPtr() + external int arg1; + @ffi.UintPtr() + external int arg2; +} + class _RoomIdToStringReturn extends ffi.Struct { @ffi.IntPtr() external int arg0; @@ -60698,6 +61330,51 @@ class _RoomLeaveFuturePollReturn extends ffi.Struct { external int arg5; } +class _RoomMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.IntPtr() + external int arg5; +} + +class _RoomSaveMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.Uint8() + external int arg5; +} + +class _RoomClearMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.Uint8() + external int arg5; +} + class _TimelineStreamGetMessageFuturePollReturn extends ffi.Struct { @ffi.Uint8() external int arg0; From e7d339092a548340b19cbb1730c9187fd43fa954 Mon Sep 17 00:00:00 2001 From: Talha Date: Wed, 14 Aug 2024 11:58:57 +0100 Subject: [PATCH 3/4] move compose draft fns over to convo object --- native/acter/api.rsh | 19 +- native/acter/src/api/common.rs | 2 +- native/acter/src/api/convo.rs | 101 ++- native/acter/src/api/room.rs | 98 +-- .../rust_sdk/lib/acter_flutter_sdk_ffi.dart | 816 +++++++++--------- 5 files changed, 517 insertions(+), 519 deletions(-) diff --git a/native/acter/api.rsh b/native/acter/api.rsh index b59e17d1a19e..aff03d4fa322 100644 --- a/native/acter/api.rsh +++ b/native/acter/api.rsh @@ -1118,16 +1118,6 @@ object Room { /// leave this room fn leave() -> Future>; - - /// compose message state of the room - fn msg_draft() -> Future>; - - /// save composed message state of the room - fn save_msg_draft(text: string, html: Option, draft_type: string, event_id: Option) -> Future>; - - /// clear composed message state of the room - fn clear_msg_draft() -> Future>; - } @@ -1385,6 +1375,15 @@ object Convo { fn redact_content(event_id: string, reason: Option) -> Future>; fn is_joined() -> bool; + + /// compose message state of the room + fn msg_draft() -> Future>; + + /// save composed message state of the room + fn save_msg_draft(text: string, html: Option, draft_type: string, event_id: Option) -> Future>; + + /// clear composed message state of the room + fn clear_msg_draft() -> Future>; } diff --git a/native/acter/src/api/common.rs b/native/acter/src/api/common.rs index 83acef423830..873fe9b0d1dc 100644 --- a/native/acter/src/api/common.rs +++ b/native/acter/src/api/common.rs @@ -3,7 +3,7 @@ use acter_core::events::{ rsvp::RsvpStatus, ColorizeBuilder, ObjRefBuilder, Position, RefDetails, RefDetailsBuilder, }; -use anyhow::{bail, Context, Result}; +use anyhow::{Context, Result}; use core::time::Duration; use matrix_sdk::{ media::{MediaFormat, MediaThumbnailSettings, MediaThumbnailSize}, diff --git a/native/acter/src/api/convo.rs b/native/acter/src/api/convo.rs index eff3e2410163..7589789b5d2d 100644 --- a/native/acter/src/api/convo.rs +++ b/native/acter/src/api/convo.rs @@ -2,13 +2,13 @@ use acter_core::{statics::default_acter_convo_states, Error}; use anyhow::{bail, Context, Result}; use derive_builder::Builder; use futures::stream::{Stream, StreamExt}; -use matrix_sdk::{executor::JoinHandle, RoomMemberships}; +use matrix_sdk::{executor::JoinHandle, ComposerDraft, ComposerDraftType, RoomMemberships}; use matrix_sdk_ui::{timeline::RoomExt, Timeline}; use ruma::assign; use ruma_client_api::room::{create_room, Visibility}; use ruma_common::{ - serde::Raw, MxcUri, OwnedRoomAliasId, OwnedRoomId, OwnedUserId, RoomAliasId, RoomId, - RoomOrAliasId, ServerName, UserId, + serde::Raw, MxcUri, OwnedEventId, OwnedRoomAliasId, OwnedRoomId, OwnedUserId, RoomAliasId, + RoomId, RoomOrAliasId, ServerName, UserId, }; use ruma_events::{ receipt::{ReceiptThread, ReceiptType}, @@ -35,7 +35,7 @@ use super::{ receipt::ReceiptRecord, room::Room, utils::{remap_for_diff, ApiVectorDiff}, - RUNTIME, + ComposeDraft, OptionComposeDraft, RUNTIME, }; pub type ConvoDiff = ApiVectorDiff; @@ -313,6 +313,99 @@ impl Convo { }) .await? } + + pub async fn msg_draft(&self) -> Result { + if !self.is_joined() { + bail!("Unable to fetch composer draft of a room we are not in"); + } + let room = self.room.clone(); + RUNTIME + .spawn(async move { + let draft = room.load_composer_draft().await?; + + Ok(OptionComposeDraft::new(draft.map(|composer_draft| { + let (msg_type, event_id) = match composer_draft.draft_type { + ComposerDraftType::NewMessage => ("new".to_string(), None), + ComposerDraftType::Edit { event_id } => { + ("edit".to_string(), Some(event_id)) + } + ComposerDraftType::Reply { event_id } => { + ("reply".to_string(), Some(event_id)) + } + }; + ComposeDraft::new( + composer_draft.plain_text, + composer_draft.html_text, + msg_type, + event_id, + ) + }))) + }) + .await? + } + + pub async fn save_msg_draft( + &self, + text: String, + html: Option, + draft_type: String, + event_id: Option, + ) -> Result { + if !self.is_joined() { + bail!("Unable to save composer draft of a room we are not in"); + } + let room = self.room.clone(); + + let draft_type = match (draft_type.as_str(), event_id) { + ("new", None) => ComposerDraftType::NewMessage, + ("edit", id) => { + if let Some(id) = id { + ComposerDraftType::Edit { + event_id: OwnedEventId::try_from(id)?, + } + } else { + bail!("Invalid event id or not found"); + } + } + + ("reply", id) => { + if let Some(id) = id { + ComposerDraftType::Reply { + event_id: OwnedEventId::try_from(id)?, + } + } else { + bail!("Invalid event id or not found"); + } + } + _ => bail!("Invalid draft type"), + }; + + let msg_draft = ComposerDraft { + plain_text: text, + html_text: html, + draft_type, + }; + + RUNTIME + .spawn(async move { + room.save_composer_draft(msg_draft).await?; + Ok(true) + }) + .await? + } + + pub async fn clear_msg_draft(&self) -> Result { + if !self.is_joined() { + bail!("Unable to remove composer draft of a room we are not in"); + } + let room = self.room.clone(); + RUNTIME + .spawn(async move { + let draft = room.clear_composer_draft(); + Ok(true) + }) + .await? + } } impl Deref for Convo { diff --git a/native/acter/src/api/room.rs b/native/acter/src/api/room.rs index 6550ae907ace..27d7ba7de360 100644 --- a/native/acter/src/api/room.rs +++ b/native/acter/src/api/room.rs @@ -22,7 +22,7 @@ use matrix_sdk::{ media::{MediaFormat, MediaRequest}, notification_settings::{IsEncrypted, IsOneToOne}, room::{Room as SdkRoom, RoomMember}, - ComposerDraft, ComposerDraftType, DisplayName, RoomMemberships, RoomState, + DisplayName, RoomMemberships, RoomState, }; use ruma::{assign, Int}; use ruma_client_api::{ @@ -44,7 +44,7 @@ use ruma_events::{ space::{child::HierarchySpaceChildEvent, parent::SpaceParentEventContent}, MessageLikeEventType, StateEvent, StateEventType, StaticEventContent, }; -use std::{io::Write, ops::Deref, path::PathBuf, str::FromStr}; +use std::{io::Write, ops::Deref, path::PathBuf}; use tokio_stream::{wrappers::BroadcastStream, StreamExt}; use tracing::{info, warn}; @@ -54,7 +54,6 @@ use crate::{OptionBuffer, OptionString, RoomMessage, ThumbnailSize, UserProfile, use super::{ api::FfiBuffer, - common::{ComposeDraft, OptionComposeDraft}, push::{notification_mode_from_input, room_notification_mode_name}, }; @@ -1107,99 +1106,6 @@ impl Room { .await? } - pub async fn msg_draft(&self) -> Result { - if !self.is_joined() { - bail!("Unable to fetch composer draft of a room we are not in"); - } - let room = self.room.clone(); - RUNTIME - .spawn(async move { - let draft = room.load_composer_draft().await?; - - Ok(OptionComposeDraft::new(draft.map(|composer_draft| { - let (msg_type, event_id) = match composer_draft.draft_type { - ComposerDraftType::NewMessage => ("new".to_string(), None), - ComposerDraftType::Edit { event_id } => { - ("edit".to_string(), Some(event_id)) - } - ComposerDraftType::Reply { event_id } => { - ("reply".to_string(), Some(event_id)) - } - }; - ComposeDraft::new( - composer_draft.plain_text, - composer_draft.html_text, - msg_type, - event_id, - ) - }))) - }) - .await? - } - - pub async fn save_msg_draft( - &self, - text: String, - html: Option, - draft_type: String, - event_id: Option, - ) -> Result { - if !self.is_joined() { - bail!("Unable to save composer draft of a room we are not in"); - } - let room = self.room.clone(); - - let draft_type = match (draft_type.as_str(), event_id) { - ("new", None) => ComposerDraftType::NewMessage, - ("edit", id) => { - if let Some(id) = id { - ComposerDraftType::Edit { - event_id: OwnedEventId::try_from(id)?, - } - } else { - bail!("Invalid event id or not found"); - } - } - - ("reply", id) => { - if let Some(id) = id { - ComposerDraftType::Reply { - event_id: OwnedEventId::try_from(id)?, - } - } else { - bail!("Invalid event id or not found"); - } - } - _ => bail!("Invalid draft type"), - }; - - let msg_draft = ComposerDraft { - plain_text: text, - html_text: html, - draft_type, - }; - - RUNTIME - .spawn(async move { - room.save_composer_draft(msg_draft).await?; - Ok(true) - }) - .await? - } - - pub async fn clear_msg_draft(&self) -> Result { - if !self.is_joined() { - bail!("Unable to remove composer draft of a room we are not in"); - } - let room = self.room.clone(); - RUNTIME - .spawn(async move { - let draft = room.clear_composer_draft(); - Ok(true) - }) - .await? - } - pub async fn media_binary( &self, event_id: String, diff --git a/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart b/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart index 7d047e4ad772..836bea9c1feb 100644 --- a/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart +++ b/packages/rust_sdk/lib/acter_flutter_sdk_ffi.dart @@ -5414,141 +5414,6 @@ class Api { return tmp7; } - OptionComposeDraft? __roomMsgDraftFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _roomMsgDraftFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); - final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionComposeDraft"); - tmp13_1._finalizer = this._registerFinalizer(tmp13_1); - final tmp7 = OptionComposeDraft._(this, tmp13_1); - return tmp7; - } - - bool? __roomSaveMsgDraftFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _roomSaveMsgDraftFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; - return tmp7; - } - - bool? __roomClearMsgDraftFuturePoll( - int boxed, - int postCobject, - int port, - ) { - final tmp0 = boxed; - final tmp2 = postCobject; - final tmp4 = port; - var tmp1 = 0; - var tmp3 = 0; - var tmp5 = 0; - tmp1 = tmp0; - tmp3 = tmp2; - tmp5 = tmp4; - final tmp6 = _roomClearMsgDraftFuturePoll( - tmp1, - tmp3, - tmp5, - ); - final tmp8 = tmp6.arg0; - final tmp9 = tmp6.arg1; - final tmp10 = tmp6.arg2; - final tmp11 = tmp6.arg3; - final tmp12 = tmp6.arg4; - final tmp13 = tmp6.arg5; - if (tmp8 == 0) { - return null; - } - if (tmp9 == 0) { - debugAllocation("handle error", tmp10, tmp11); - final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); - final tmp9_0 = - utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); - if (tmp11 > 0) { - final ffi.Pointer tmp10_0; - tmp10_0 = ffi.Pointer.fromAddress(tmp10); - this.__deallocate(tmp10_0, tmp12, 1); - } - throw tmp9_0; - } - final tmp7 = tmp13 > 0; - return tmp7; - } - RoomMessage? __timelineStreamGetMessageFuturePoll( int boxed, int postCobject, @@ -7170,6 +7035,141 @@ class Api { return tmp7; } + OptionComposeDraft? __convoMsgDraftFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _convoMsgDraftFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final ffi.Pointer tmp13_0 = ffi.Pointer.fromAddress(tmp13); + final tmp13_1 = _Box(this, tmp13_0, "drop_box_OptionComposeDraft"); + tmp13_1._finalizer = this._registerFinalizer(tmp13_1); + final tmp7 = OptionComposeDraft._(this, tmp13_1); + return tmp7; + } + + bool? __convoSaveMsgDraftFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _convoSaveMsgDraftFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + + bool? __convoClearMsgDraftFuturePoll( + int boxed, + int postCobject, + int port, + ) { + final tmp0 = boxed; + final tmp2 = postCobject; + final tmp4 = port; + var tmp1 = 0; + var tmp3 = 0; + var tmp5 = 0; + tmp1 = tmp0; + tmp3 = tmp2; + tmp5 = tmp4; + final tmp6 = _convoClearMsgDraftFuturePoll( + tmp1, + tmp3, + tmp5, + ); + final tmp8 = tmp6.arg0; + final tmp9 = tmp6.arg1; + final tmp10 = tmp6.arg2; + final tmp11 = tmp6.arg3; + final tmp12 = tmp6.arg4; + final tmp13 = tmp6.arg5; + if (tmp8 == 0) { + return null; + } + if (tmp9 == 0) { + debugAllocation("handle error", tmp10, tmp11); + final ffi.Pointer tmp10_0 = ffi.Pointer.fromAddress(tmp10); + final tmp9_0 = + utf8.decode(tmp10_0.asTypedList(tmp11), allowMalformed: true); + if (tmp11 > 0) { + final ffi.Pointer tmp10_0; + tmp10_0 = ffi.Pointer.fromAddress(tmp10); + this.__deallocate(tmp10_0, tmp12, 1); + } + throw tmp9_0; + } + final tmp7 = tmp13 > 0; + return tmp7; + } + EventId? __commentDraftSendFuturePoll( int boxed, int postCobject, @@ -20091,64 +20091,6 @@ class Api { int Function( int, )>(); - late final _roomMsgDraftPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - ffi.IntPtr, - )>>("__Room_msg_draft"); - - late final _roomMsgDraft = _roomMsgDraftPtr.asFunction< - int Function( - int, - )>(); - late final _roomSaveMsgDraftPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - ffi.IntPtr, - ffi.IntPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.Uint8, - ffi.IntPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.IntPtr, - ffi.UintPtr, - ffi.UintPtr, - ffi.Uint8, - ffi.IntPtr, - ffi.UintPtr, - ffi.UintPtr, - )>>("__Room_save_msg_draft"); - - late final _roomSaveMsgDraft = _roomSaveMsgDraftPtr.asFunction< - int Function( - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - int, - )>(); - late final _roomClearMsgDraftPtr = _lookup< - ffi.NativeFunction< - ffi.IntPtr Function( - ffi.IntPtr, - )>>("__Room_clear_msg_draft"); - - late final _roomClearMsgDraft = _roomClearMsgDraftPtr.asFunction< - int Function( - int, - )>(); late final _convoDiffActionPtr = _lookup< ffi.NativeFunction< _ConvoDiffActionReturn Function( @@ -21103,6 +21045,64 @@ class Api { int Function( int, )>(); + late final _convoMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + )>>("__Convo_msg_draft"); + + late final _convoMsgDraft = _convoMsgDraftPtr.asFunction< + int Function( + int, + )>(); + late final _convoSaveMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.Uint8, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + ffi.Uint8, + ffi.IntPtr, + ffi.UintPtr, + ffi.UintPtr, + )>>("__Convo_save_msg_draft"); + + late final _convoSaveMsgDraft = _convoSaveMsgDraftPtr.asFunction< + int Function( + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + int, + )>(); + late final _convoClearMsgDraftPtr = _lookup< + ffi.NativeFunction< + ffi.IntPtr Function( + ffi.IntPtr, + )>>("__Convo_clear_msg_draft"); + + late final _convoClearMsgDraft = _convoClearMsgDraftPtr.asFunction< + int Function( + int, + )>(); late final _commentDraftContentTextPtr = _lookup< ffi.NativeFunction< ffi.Void Function( @@ -28948,50 +28948,6 @@ class Api { int, int, )>(); - late final _roomMsgDraftFuturePollPtr = _lookup< - ffi.NativeFunction< - _RoomMsgDraftFuturePollReturn Function( - ffi.IntPtr, - ffi.IntPtr, - ffi.Int64, - )>>("__Room_msg_draft_future_poll"); - - late final _roomMsgDraftFuturePoll = _roomMsgDraftFuturePollPtr.asFunction< - _RoomMsgDraftFuturePollReturn Function( - int, - int, - int, - )>(); - late final _roomSaveMsgDraftFuturePollPtr = _lookup< - ffi.NativeFunction< - _RoomSaveMsgDraftFuturePollReturn Function( - ffi.IntPtr, - ffi.IntPtr, - ffi.Int64, - )>>("__Room_save_msg_draft_future_poll"); - - late final _roomSaveMsgDraftFuturePoll = - _roomSaveMsgDraftFuturePollPtr.asFunction< - _RoomSaveMsgDraftFuturePollReturn Function( - int, - int, - int, - )>(); - late final _roomClearMsgDraftFuturePollPtr = _lookup< - ffi.NativeFunction< - _RoomClearMsgDraftFuturePollReturn Function( - ffi.IntPtr, - ffi.IntPtr, - ffi.Int64, - )>>("__Room_clear_msg_draft_future_poll"); - - late final _roomClearMsgDraftFuturePoll = - _roomClearMsgDraftFuturePollPtr.asFunction< - _RoomClearMsgDraftFuturePollReturn Function( - int, - int, - int, - )>(); late final _timelineStreamGetMessageFuturePollPtr = _lookup< ffi.NativeFunction< _TimelineStreamGetMessageFuturePollReturn Function( @@ -29513,6 +29469,50 @@ class Api { int, int, )>(); + late final _convoMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _ConvoMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Convo_msg_draft_future_poll"); + + late final _convoMsgDraftFuturePoll = _convoMsgDraftFuturePollPtr.asFunction< + _ConvoMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); + late final _convoSaveMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _ConvoSaveMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Convo_save_msg_draft_future_poll"); + + late final _convoSaveMsgDraftFuturePoll = + _convoSaveMsgDraftFuturePollPtr.asFunction< + _ConvoSaveMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); + late final _convoClearMsgDraftFuturePollPtr = _lookup< + ffi.NativeFunction< + _ConvoClearMsgDraftFuturePollReturn Function( + ffi.IntPtr, + ffi.IntPtr, + ffi.Int64, + )>>("__Convo_clear_msg_draft_future_poll"); + + late final _convoClearMsgDraftFuturePoll = + _convoClearMsgDraftFuturePollPtr.asFunction< + _ConvoClearMsgDraftFuturePollReturn Function( + int, + int, + int, + )>(); late final _commentDraftSendFuturePollPtr = _lookup< ffi.NativeFunction< _CommentDraftSendFuturePollReturn Function( @@ -41803,132 +41803,6 @@ class Room { return tmp2; } - /// compose message state of the room - Future msgDraft() { - var tmp0 = 0; - tmp0 = _box.borrow(); - final tmp1 = _api._roomMsgDraft( - tmp0, - ); - final tmp3 = tmp1; - final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); - final tmp3_1 = _Box(_api, tmp3_0, "__Room_msg_draft_future_drop"); - tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); - final tmp2 = _nativeFuture(tmp3_1, _api.__roomMsgDraftFuturePoll); - return tmp2; - } - - /// save composed message state of the room - Future saveMsgDraft( - String text, - String? html, - String draftType, - String? eventId, - ) { - final tmp1 = text; - final tmp5 = html; - final tmp11 = draftType; - final tmp15 = eventId; - var tmp0 = 0; - var tmp2 = 0; - var tmp3 = 0; - var tmp4 = 0; - var tmp6 = 0; - var tmp8 = 0; - var tmp9 = 0; - var tmp10 = 0; - var tmp12 = 0; - var tmp13 = 0; - var tmp14 = 0; - var tmp16 = 0; - var tmp18 = 0; - var tmp19 = 0; - var tmp20 = 0; - tmp0 = _box.borrow(); - final tmp1_0 = utf8.encode(tmp1); - tmp3 = tmp1_0.length; - - final ffi.Pointer tmp2_0 = _api.__allocate(tmp3 * 1, 1); - final Uint8List tmp2_1 = tmp2_0.asTypedList(tmp3); - tmp2_1.setAll(0, tmp1_0); - tmp2 = tmp2_0.address; - tmp4 = tmp3; - if (tmp5 == null) { - tmp6 = 0; - } else { - tmp6 = 1; - final tmp7 = tmp5; - final tmp7_0 = utf8.encode(tmp7); - tmp9 = tmp7_0.length; - - final ffi.Pointer tmp8_0 = _api.__allocate(tmp9 * 1, 1); - final Uint8List tmp8_1 = tmp8_0.asTypedList(tmp9); - tmp8_1.setAll(0, tmp7_0); - tmp8 = tmp8_0.address; - tmp10 = tmp9; - } - final tmp11_0 = utf8.encode(tmp11); - tmp13 = tmp11_0.length; - - final ffi.Pointer tmp12_0 = _api.__allocate(tmp13 * 1, 1); - final Uint8List tmp12_1 = tmp12_0.asTypedList(tmp13); - tmp12_1.setAll(0, tmp11_0); - tmp12 = tmp12_0.address; - tmp14 = tmp13; - if (tmp15 == null) { - tmp16 = 0; - } else { - tmp16 = 1; - final tmp17 = tmp15; - final tmp17_0 = utf8.encode(tmp17); - tmp19 = tmp17_0.length; - - final ffi.Pointer tmp18_0 = _api.__allocate(tmp19 * 1, 1); - final Uint8List tmp18_1 = tmp18_0.asTypedList(tmp19); - tmp18_1.setAll(0, tmp17_0); - tmp18 = tmp18_0.address; - tmp20 = tmp19; - } - final tmp21 = _api._roomSaveMsgDraft( - tmp0, - tmp2, - tmp3, - tmp4, - tmp6, - tmp8, - tmp9, - tmp10, - tmp12, - tmp13, - tmp14, - tmp16, - tmp18, - tmp19, - tmp20, - ); - final tmp23 = tmp21; - final ffi.Pointer tmp23_0 = ffi.Pointer.fromAddress(tmp23); - final tmp23_1 = _Box(_api, tmp23_0, "__Room_save_msg_draft_future_drop"); - tmp23_1._finalizer = _api._registerFinalizer(tmp23_1); - final tmp22 = _nativeFuture(tmp23_1, _api.__roomSaveMsgDraftFuturePoll); - return tmp22; - } - - /// clear composed message state of the room - Future clearMsgDraft() { - var tmp0 = 0; - tmp0 = _box.borrow(); - final tmp1 = _api._roomClearMsgDraft( - tmp0, - ); - final tmp3 = tmp1; - final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); - final tmp3_1 = _Box(_api, tmp3_0, "__Room_clear_msg_draft_future_drop"); - tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); - final tmp2 = _nativeFuture(tmp3_1, _api.__roomClearMsgDraftFuturePoll); - return tmp2; - } - /// Manually drops the object and unregisters the FinalizableHandle. void drop() { _box.drop(); @@ -43906,6 +43780,132 @@ class Convo { return tmp2; } + /// compose message state of the room + Future msgDraft() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._convoMsgDraft( + tmp0, + ); + final tmp3 = tmp1; + final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); + final tmp3_1 = _Box(_api, tmp3_0, "__Convo_msg_draft_future_drop"); + tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); + final tmp2 = _nativeFuture(tmp3_1, _api.__convoMsgDraftFuturePoll); + return tmp2; + } + + /// save composed message state of the room + Future saveMsgDraft( + String text, + String? html, + String draftType, + String? eventId, + ) { + final tmp1 = text; + final tmp5 = html; + final tmp11 = draftType; + final tmp15 = eventId; + var tmp0 = 0; + var tmp2 = 0; + var tmp3 = 0; + var tmp4 = 0; + var tmp6 = 0; + var tmp8 = 0; + var tmp9 = 0; + var tmp10 = 0; + var tmp12 = 0; + var tmp13 = 0; + var tmp14 = 0; + var tmp16 = 0; + var tmp18 = 0; + var tmp19 = 0; + var tmp20 = 0; + tmp0 = _box.borrow(); + final tmp1_0 = utf8.encode(tmp1); + tmp3 = tmp1_0.length; + + final ffi.Pointer tmp2_0 = _api.__allocate(tmp3 * 1, 1); + final Uint8List tmp2_1 = tmp2_0.asTypedList(tmp3); + tmp2_1.setAll(0, tmp1_0); + tmp2 = tmp2_0.address; + tmp4 = tmp3; + if (tmp5 == null) { + tmp6 = 0; + } else { + tmp6 = 1; + final tmp7 = tmp5; + final tmp7_0 = utf8.encode(tmp7); + tmp9 = tmp7_0.length; + + final ffi.Pointer tmp8_0 = _api.__allocate(tmp9 * 1, 1); + final Uint8List tmp8_1 = tmp8_0.asTypedList(tmp9); + tmp8_1.setAll(0, tmp7_0); + tmp8 = tmp8_0.address; + tmp10 = tmp9; + } + final tmp11_0 = utf8.encode(tmp11); + tmp13 = tmp11_0.length; + + final ffi.Pointer tmp12_0 = _api.__allocate(tmp13 * 1, 1); + final Uint8List tmp12_1 = tmp12_0.asTypedList(tmp13); + tmp12_1.setAll(0, tmp11_0); + tmp12 = tmp12_0.address; + tmp14 = tmp13; + if (tmp15 == null) { + tmp16 = 0; + } else { + tmp16 = 1; + final tmp17 = tmp15; + final tmp17_0 = utf8.encode(tmp17); + tmp19 = tmp17_0.length; + + final ffi.Pointer tmp18_0 = _api.__allocate(tmp19 * 1, 1); + final Uint8List tmp18_1 = tmp18_0.asTypedList(tmp19); + tmp18_1.setAll(0, tmp17_0); + tmp18 = tmp18_0.address; + tmp20 = tmp19; + } + final tmp21 = _api._convoSaveMsgDraft( + tmp0, + tmp2, + tmp3, + tmp4, + tmp6, + tmp8, + tmp9, + tmp10, + tmp12, + tmp13, + tmp14, + tmp16, + tmp18, + tmp19, + tmp20, + ); + final tmp23 = tmp21; + final ffi.Pointer tmp23_0 = ffi.Pointer.fromAddress(tmp23); + final tmp23_1 = _Box(_api, tmp23_0, "__Convo_save_msg_draft_future_drop"); + tmp23_1._finalizer = _api._registerFinalizer(tmp23_1); + final tmp22 = _nativeFuture(tmp23_1, _api.__convoSaveMsgDraftFuturePoll); + return tmp22; + } + + /// clear composed message state of the room + Future clearMsgDraft() { + var tmp0 = 0; + tmp0 = _box.borrow(); + final tmp1 = _api._convoClearMsgDraft( + tmp0, + ); + final tmp3 = tmp1; + final ffi.Pointer tmp3_0 = ffi.Pointer.fromAddress(tmp3); + final tmp3_1 = _Box(_api, tmp3_0, "__Convo_clear_msg_draft_future_drop"); + tmp3_1._finalizer = _api._registerFinalizer(tmp3_1); + final tmp2 = _nativeFuture(tmp3_1, _api.__convoClearMsgDraftFuturePoll); + return tmp2; + } + /// Manually drops the object and unregisters the FinalizableHandle. void drop() { _box.drop(); @@ -61330,51 +61330,6 @@ class _RoomLeaveFuturePollReturn extends ffi.Struct { external int arg5; } -class _RoomMsgDraftFuturePollReturn extends ffi.Struct { - @ffi.Uint8() - external int arg0; - @ffi.Uint8() - external int arg1; - @ffi.IntPtr() - external int arg2; - @ffi.UintPtr() - external int arg3; - @ffi.UintPtr() - external int arg4; - @ffi.IntPtr() - external int arg5; -} - -class _RoomSaveMsgDraftFuturePollReturn extends ffi.Struct { - @ffi.Uint8() - external int arg0; - @ffi.Uint8() - external int arg1; - @ffi.IntPtr() - external int arg2; - @ffi.UintPtr() - external int arg3; - @ffi.UintPtr() - external int arg4; - @ffi.Uint8() - external int arg5; -} - -class _RoomClearMsgDraftFuturePollReturn extends ffi.Struct { - @ffi.Uint8() - external int arg0; - @ffi.Uint8() - external int arg1; - @ffi.IntPtr() - external int arg2; - @ffi.UintPtr() - external int arg3; - @ffi.UintPtr() - external int arg4; - @ffi.Uint8() - external int arg5; -} - class _TimelineStreamGetMessageFuturePollReturn extends ffi.Struct { @ffi.Uint8() external int arg0; @@ -61904,6 +61859,51 @@ class _ConvoRedactContentFuturePollReturn extends ffi.Struct { external int arg5; } +class _ConvoMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.IntPtr() + external int arg5; +} + +class _ConvoSaveMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.Uint8() + external int arg5; +} + +class _ConvoClearMsgDraftFuturePollReturn extends ffi.Struct { + @ffi.Uint8() + external int arg0; + @ffi.Uint8() + external int arg1; + @ffi.IntPtr() + external int arg2; + @ffi.UintPtr() + external int arg3; + @ffi.UintPtr() + external int arg4; + @ffi.Uint8() + external int arg5; +} + class _CommentDraftSendFuturePollReturn extends ffi.Struct { @ffi.Uint8() external int arg0; From 53cdef2d64bf683b71974aa73a3199b4a72d6bbc Mon Sep 17 00:00:00 2001 From: Talha Date: Wed, 14 Aug 2024 13:33:32 +0100 Subject: [PATCH 4/4] simplify match case --- native/acter/src/api/convo.rs | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/native/acter/src/api/convo.rs b/native/acter/src/api/convo.rs index 7589789b5d2d..62717da52098 100644 --- a/native/acter/src/api/convo.rs +++ b/native/acter/src/api/convo.rs @@ -358,26 +358,17 @@ impl Convo { let draft_type = match (draft_type.as_str(), event_id) { ("new", None) => ComposerDraftType::NewMessage, - ("edit", id) => { - if let Some(id) = id { - ComposerDraftType::Edit { - event_id: OwnedEventId::try_from(id)?, - } - } else { - bail!("Invalid event id or not found"); - } - } + ("edit", Some(id)) => ComposerDraftType::Edit { + event_id: OwnedEventId::try_from(id)?, + }, - ("reply", id) => { - if let Some(id) = id { - ComposerDraftType::Reply { - event_id: OwnedEventId::try_from(id)?, - } - } else { - bail!("Invalid event id or not found"); - } - } - _ => bail!("Invalid draft type"), + ("reply", Some(id)) => ComposerDraftType::Reply { + event_id: OwnedEventId::try_from(id)?, + }, + + ("reply", _) | ("edit", _) => bail!("Invalid event id"), + + (draft_type, _) => bail!("Invalid draft type {draft_type}"), }; let msg_draft = ComposerDraft {