-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7175 from thundernest/rename_account_state_reposi…
…tory_save_methods Rename AccountStateRepository save to set function names
- Loading branch information
Showing
13 changed files
with
40 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ import com.fsck.k9.mail.AuthType | |
import com.fsck.k9.mail.ServerSettings | ||
|
||
class PreviewAccountStateRepository : AccountDomainContract.AccountStateRepository { | ||
|
||
override fun getState(): AccountState = AccountState( | ||
emailAddress = "[email protected]", | ||
incomingServerSettings = ServerSettings( | ||
|
@@ -33,17 +34,17 @@ class PreviewAccountStateRepository : AccountDomainContract.AccountStateReposito | |
), | ||
) | ||
|
||
override fun save(accountState: AccountState) = Unit | ||
override fun setState(accountState: AccountState) = Unit | ||
|
||
override fun saveEmailAddress(emailAddress: String) = Unit | ||
override fun setEmailAddress(emailAddress: String) = Unit | ||
|
||
override fun saveIncomingServerSettings(serverSettings: ServerSettings) = Unit | ||
override fun setIncomingServerSettings(serverSettings: ServerSettings) = Unit | ||
|
||
override fun saveOutgoingServerSettings(serverSettings: ServerSettings) = Unit | ||
override fun setOutgoingServerSettings(serverSettings: ServerSettings) = Unit | ||
|
||
override fun saveAuthorizationState(authorizationState: AuthorizationState) = Unit | ||
override fun setAuthorizationState(authorizationState: AuthorizationState) = Unit | ||
|
||
override fun saveOptions(options: AccountOptions) = Unit | ||
override fun setOptions(options: AccountOptions) = Unit | ||
|
||
override fun clear() = Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters