Swift client for AnApiOfIceAndFire service.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Extensions
Model
HttpResult.swift
LICENSE
README.md
WesterosClient.swift
WesterosResult.swift

README.md

WesterosKit

Swift client for An Api of Ice and Fire service.

You can find the server project in this GitHub repository.

##Usage

You can look for Characters, Books, and Houses

WesterosClient.westerosInstance.books() { (result) -> (Void) in
    switch result
    {
        case let WesterosResult.Success(result):
            for book in result
            {
                print("> \(book.name) (\(book.pages))")
            }
                
        case let WesterosResult.Error(reason):
            print("#err \(reason)")
                
    }
}

##Contact

Your feedback is welcome, find me on my twitter account @fitomad