//
// Copyright © 2023 Nevis Security AG. All rights reserved.
//

import NevisMobileAuthentication

struct LocalAccountsOutMessage: ChannelOutMessage {
	// MARK: Properties

	let operationId: String
	let accounts: [TypedAccount]

	// MARK: Initialization

	init(operationId: String, accounts: [any Account]) {
		self.operationId = operationId
		self.accounts = accounts.map { TypedAccount(username: $0.username, server: $0.server) }
	}
}
