ScottIsAFool/Threepio

★ 1Forks 0C#GitHub ↗Compare

README

Threepio

A C# library for accessing the Star Wars API at http://swapi.co/ (It's written in C#, and it translates things from JSON into .Net objects - hence Threepio)

Usage

Available classes are:

    Film  
    Character  
    Species  
    Planet  
    Starship  
    Vehicle  

All classes have two static methods:

    T Get(int id)  
    List<T> GetPage(int pageNumber = 1)  

Film also has a set of convenience methods for returning the individual films:

    Film.Episode1  
    ...  
    Film.Episode6

Where classes are related, they hold a list of integer Ids e.g. Starship.Pilots is a list of Ids of Character. Occasionally the link is singular, as in Character.Homeworld which relates to a Planet.

Contributors

philpursgloveScottIsAFool

Issues