TM-SGNL-iOS/SignalServiceKit/Contacts/SignalAccountStore.swift
TeleMessage developers dde0620daf initial commit
2025-05-03 12:28:28 -07:00

18 lines
565 B
Swift

//
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
public protocol SignalAccountStore {
func fetchSignalAccount(for rowId: SignalAccount.RowId, tx: DBReadTransaction) -> SignalAccount?
}
public class SignalAccountStoreImpl: SignalAccountStore {
public init() {}
public func fetchSignalAccount(for rowId: SignalAccount.RowId, tx: DBReadTransaction) -> SignalAccount? {
return SDSCodableModelDatabaseInterfaceImpl().fetchModel(modelType: SignalAccount.self, rowId: rowId, tx: tx)
}
}