Renamed google reader api to just reader api to make it consistent everywhere we use it

This commit is contained in:
Maurice Parker
2019-06-19 15:40:03 -05:00
parent 1e53d0b463
commit b4b80c51bc
15 changed files with 65 additions and 45 deletions

View File

@@ -77,13 +77,13 @@ struct SettingsReaderAPIAccountView : View {
error = Text("")
let emailAddress = viewModel.email.trimmingCharacters(in: .whitespaces)
let credentials = Credentials.googleBasicLogin(username: emailAddress, password: viewModel.password)
let credentials = Credentials.readerAPIBasicLogin(username: emailAddress, password: viewModel.password)
guard let apiURL = URL(string: viewModel.apiURL) else {
self.error = Text("Invalide API URL.")
return
}
Account.validateCredentials(type: .googleReaderAPI, credentials: credentials, endpoint: apiURL) { result in
Account.validateCredentials(type: .readerAPI, credentials: credentials, endpoint: apiURL) { result in
self.busy = false
@@ -95,7 +95,7 @@ struct SettingsReaderAPIAccountView : View {
var newAccount = false
let workAccount: Account
if self.viewModel.account == nil {
workAccount = AccountManager.shared.createAccount(type: .googleReaderAPI)
workAccount = AccountManager.shared.createAccount(type: .readerAPI)
newAccount = true
} else {
workAccount = self.viewModel.account!