refactor(core): Remove XmppConnectionResult

This commit is contained in:
PapaTutuWawa 2023-03-11 19:07:03 +01:00
parent 9010218b10
commit 5b4dcc67b2

View File

@ -77,21 +77,6 @@ class StreamHeaderNonza extends XMLNode {
);
}
/// The result of an awaited connection.
class XmppConnectionResult {
const XmppConnectionResult(
this.success, {
this.error,
});
/// True if the connection was successful. False if it failed for any reason.
final bool success;
// If a connection attempt fails, i.e. success is false, then this indicates the
// reason the connection failed.
final XmppError? error;
}
/// This class is a connection to the server.
class XmppConnection {
XmppConnection(