- Updated the application namespace and ID from "net.ypchat.app" to "de.ypchat.android" for better alignment with branding. - Increased Gradle heap size settings to optimize build performance. - Disabled dependency constraints to simplify dependency management. - Removed obsolete files related to the previous application structure, including MainActivity, YpChatApp, and various core components, streamlining the codebase. These changes collectively enhance the application's configuration and structure, improving maintainability and performance.
22 lines
844 B
Swift
22 lines
844 B
Swift
import Foundation
|
|
|
|
/// Entspricht `SocketEvent.kt` (Android).
|
|
enum SocketEvent: Sendable {
|
|
case connected(sessionId: String?, loggedIn: Bool, user: UserDto?)
|
|
case loginSuccess(sessionId: String?, user: UserDto?)
|
|
case userList(users: [UserDto])
|
|
case incomingMessage(ChatMessageDto)
|
|
case messageSent(messageId: String?, to: String?)
|
|
case conversation(withUserName: String, messages: [ChatMessageDto])
|
|
case searchResults([UserDto])
|
|
case historyResults([HistoryItemDto])
|
|
case inboxResults([InboxItemDto])
|
|
case unreadChats(count: Int)
|
|
case userBlocked(String)
|
|
case userUnblocked(String)
|
|
case commandResult(lines: [String], kind: String)
|
|
case commandTable(title: String, columns: [String], rows: [[String]])
|
|
case error(String)
|
|
case connectionChanged(connected: Bool, reason: String?)
|
|
}
|