Skip to content

Instantly share code, notes, and snippets.

@thexande
Last active December 17, 2018 19:05
Show Gist options
  • Save thexande/176c72b87d2dc0e1106737812032157b to your computer and use it in GitHub Desktop.
Save thexande/176c72b87d2dc0e1106737812032157b to your computer and use it in GitHub Desktop.
public protocol WorldStoreInterface {
func fetchAllCountries(cachePolicy: CachePolicy,
completion: @escaping ((Result<[World.CountryLite], World.StoreError>) -> Void))
func fetchCountry(code: String,
cachePolicy: CachePolicy,
completion: @escaping ((Result<World.CountryDetail, World.StoreError>) -> Void))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment