Rename MatchesAPI

This commit is contained in:
Felix Förtsch
2019-01-08 12:09:43 +01:00
parent fdf0eab86e
commit dfa5bfc053
2 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@
3F933FF821E395AB00C0EEF3 /* API */ = {
isa = PBXGroup;
children = (
3F49E949216BE87B0047B0FE /* MatchesAPI.swift */,
3F49E949216BE87B0047B0FE /* LiquipediaMatchesAPI.swift */,
);
path = API;
sourceTree = "<group>";
@@ -133,7 +133,6 @@
3F933FF721E3958000C0EEF3 /* Match */,
3FB6BB47216B8594000BF5AA /* AppDelegate.swift */,
3F49E947216B862B0047B0FE /* StatusBarController.swift */,
3FB6BB49216B8595000BF5AA /* Assets.xcassets */,
3FB6BB4B216B8595000BF5AA /* MainMenu.xib */,
3FB6BB4E216B8595000BF5AA /* Info.plist */,

View File

@@ -1,7 +1,8 @@
//
// MatchesAPI.swift
// LiquipediaMatchesAPI.swift
// LiquipediaMenu
//
//This class scrapes the Liquipedia upcoming matches page. It extracts them and puts them into a [Match]? by, using the Match class as a data storage objet.
// Created by Felix Förtsch on 08.10.18.
// Copyright © 2018 Felix Förtsch. All rights reserved.
//
@@ -9,7 +10,7 @@
import Foundation
import SwiftSoup
class MatchesAPI {
class LiquipediaMatchesAPI {
func fetchMatches(for game: String) -> [Match]? {
let games = ["dota2", "starcraft", "starcraft2", "heroes", "counterstrike", "rocketleague", "rainbowsix", "overwatch"]