files: events: classes: - name: LoginSuccessfulEvent extends: BackgroundEvent implements: - JsonImplementation attributes: jid: String displayName: String - name: LoginFailureEvent extends: BackgroundEvent implements: - JsonImplementation attributes: reason: String - name: PreStartDoneEvent extends: BackgroundEvent implements: - JsonImplementation attributes: state: String permissionsToRequest: List preferences: type: PreferencesState deserialise: true jid: String? displayName: String? avatarUrl: String? avatarHash: String? conversations: type: List? deserialise: true roster: type: List? deserialise: true # Returned by [GetMessagesForJidCommand] - name: MessagesResultEvent extends: BackgroundEvent implements: - JsonImplementation attributes: messages: type: List deserialise: true # Triggered if a conversation has been added. # Also returned by [AddConversationCommand] - name: ConversationAddedEvent extends: BackgroundEvent implements: - JsonImplementation attributes: conversation: type: Conversation deserialise: true # Triggered if a conversation has been updated. # Also returned by [AddConversationCommand]. - name: ConversationUpdatedEvent extends: BackgroundEvent implements: - JsonImplementation attributes: conversation: type: Conversation deserialise: true # Returned by [AddConversationCommand] if no conversation was added or # updated. - name: NoConversationModifiedEvent extends: BackgroundEvent implements: - JsonImplementation # Send by the service if a message has been received or returned by # [SendMessageCommand]. - name: MessageAddedEvent extends: BackgroundEvent implements: - JsonImplementation attributes: message: type: Message deserialise: true # Send by the service if a message has been updated. - name: MessageUpdatedEvent extends: BackgroundEvent implements: - JsonImplementation attributes: message: type: Message deserialise: true # Send by the service if the blocklist has been modified by a blocklist push or # if [BlockJidCommand] or [UnblockJidCommand] have been invoked. - name: BlocklistPushEvent extends: BackgroundEvent implements: - JsonImplementation attributes: added: List removed: List # Triggered if we receive a blocklist push unblocking every JID - name: BlocklistUnblockAllEvent extends: BackgroundEvent implements: - JsonImplementation # Triggered by [DownloadService]. - name: DownloadProgressEvent extends: BackgroundEvent implements: - JsonImplementation attributes: id: int progress: double # Triggered by [RosterService] if we receive a roster push. - name: RosterDiffEvent extends: BackgroundEvent implements: - JsonImplementation attributes: added: type: List deserialise: true default: "[]" modified: type: List deserialise: true default: "[]" removed: type: List default: "[]" # Triggered by the service in response to an [AddContactCommand]. - name: AddContactResultEvent extends: BackgroundEvent implements: - JsonImplementation attributes: conversation: type: Conversation? deserialise: true # Indicate if the conversation is new (true) or modified (false). # Does not mean anything unless conversation != null. added: bool # Triggered by the service if our avatar changed - name: SelfAvatarChangedEvent extends: BackgroundEvent implements: - JsonImplementation attributes: path: String hash: String # Triggered by [CloseConversationCommand] - name: CloseConversationEvent extends: BackgroundEvent implements: - JsonImplementation # Returned by [GetFeaturesCommand] - name: GetFeaturesEvent extends: BackgroundEvent implements: - JsonImplementation attributes: streamFeatures: List serverFeatures: List # Returned by [SignOutCommand] - name: SignedOutEvent extends: BackgroundEvent implements: - JsonImplementation # Returned by the service once it is ready - name: ServiceReadyEvent extends: BackgroundEvent implements: - JsonImplementation generate_builder: true builder_name: "Event" builder_baseclass: "BackgroundEvent" partof: events.dart commands: classes: - name: LoginCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String password: String useDirectTLS: bool - name: PerformPreStartCommand extends: BackgroundCommand implements: - JsonImplementation - name: AddConversationCommand extends: BackgroundCommand implements: - JsonImplementation attributes: title: String lastMessageBody: String avatarUrl: String jid: String - name: GetMessagesForJidCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String - name: SetOpenConversationCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String? - name: SendMessageCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String body: String chatState: String quotedMessage: type: Message? deserialise: true - name: BlockJidCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String - name: UnblockJidCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String - name: UnblockAllCommand extends: BackgroundCommand implements: - JsonImplementation - name: SetCSIStateCommand extends: BackgroundCommand implements: - JsonImplementation attributes: active: bool - name: SetPreferencesCommand extends: BackgroundCommand implements: - JsonImplementation attributes: preferences: type: PreferencesState deserialise: true - name: AddContactCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String - name: RequestDownloadCommand extends: BackgroundCommand implements: - JsonImplementation attributes: message: type: Message deserialise: true - name: SetAvatarCommand extends: BackgroundCommand implements: - JsonImplementation attributes: path: String hash: String - name: SetShareOnlineStatusCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String share: bool - name: CloseConversationCommand extends: BackgroundCommand implements: - JsonImplementation attributes: jid: String - name: SendChatStateCommand extends: BackgroundCommand implements: - JsonImplementation attributes: state: String jid: String - name: GetFeaturesCommand extends: BackgroundCommand implements: - JsonImplementation - name: SignOutCommand extends: BackgroundCommand implements: - JsonImplementation generate_builder: true # get${builder_Name}FromJson builder_name: "Command" builder_baseclass: "BackgroundCommand" partof: commands.dart