Rename Id to ID.

This commit is contained in:
Brent Simmons
2024-04-16 19:37:53 -07:00
parent 814097504c
commit dad6c1f884
8 changed files with 30 additions and 30 deletions

View File

@@ -12,7 +12,7 @@ import Articles
import Core
@objc(ScriptableAccount)
@MainActor class ScriptableAccount: NSObject, UniqueIdScriptingObject, ScriptingObjectContainer {
@MainActor class ScriptableAccount: NSObject, UniqueIDScriptingObject, ScriptingObjectContainer {
let account:Account
init (_ account:Account) {
@@ -52,12 +52,12 @@ import Core
return "accounts"
}
// MARK: --- UniqueIdScriptingObject protocol ---
// MARK: --- UniqueIDScriptingObject protocol ---
// I am not sure if account should prefer to be specified by name or by ID
// but in either case it seems like the accountID would be used as the keydata, so I chose ID
@objc(uniqueId)
var scriptingUniqueId:Any {
@objc(uniqueID)
var scriptingUniqueID:Any {
return account.accountID
}