Coder Social home page Coder Social logo

foxsport-demo's Introduction

#CodeChallenge for Fox Sport

by Dmitrii Zverev. 27 July 2018

iOS Application Requirements

  1. Create an application that displays the top player stats for a given NRL match. Technical Requirements:
  • Networking and model layers should be done in a reusable way
  • Use MVVM Architecture
  • Write the Application in Swift
  • Every stat type should be in its own section
  • Team A player should appear on the left and Team B player should appear on the right
  • Display player headshot, short name, jumper number and position for every player along with the stat value
  • Tapping on a player headshot should open another page that will display a larger headshot of the player along with their full name, position and all their stats for the last match they played.
  • Automated tests covering functionality and appropriate edge cases
  1. All API calls and endpoints that will be required are below. If any requirements are vague or unclear, make assumptions on what would work best. To get the top player stats, use the following API call: https://statsapi.foxsports.com.au/3.0/api/sports/league/matches/NRL20172101/topplayers tats.json;type=fantasy_points;type=tackles;type=runs;type=run_metres?limit=5&userkey=A 00239D3-45F6-4A0A-810C-54A347F144C2

  2. To get a specific player’s stats, use the following API call: https://statsapi.foxsports.com.au/3.0/api/sports/league/series/1/seasons/115/teams/{{tea m-id}}/players/{{player-id}}/detailedstats.json?&userkey=9024ec15-d791-4bfd-aa3b- 5bcf5d36da4f Where {{team-id}} should be replaced by the teams id of the player that was tapped and {{player-id}} should be replaced by the players id.

  3. Player images can be found here - http://media.foxsports.com.au/match- centre/includes/images/headshots/landscape/nrl/{{player-id}}.jpg If player image can not be found, use this image: http://media.foxsports.com.au/match-centre/includes/images/headshots/headshot-blank- large.jpg

  4. Once complete, please provide a git repo with full commit history.

  • complete section.

In this challenge, I demonstrated my abilities to use:

  • structs
  • emuns
  • optionals
  • Codable
  • array/dictonary mappings
  • extensions
  • Threads
  • Creating custom UI elements from XIBs
  • Avoiding Massive View Controllers
  • escaping
  • image caching
  • haptic feedbacks
  • animation
  • Unit Testing
  • .. and much more

foxsport-demo's People

Contributors

adevelopstudio avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.