From dfa5bfc053bb53713d3135efc2bc443a998fe99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Fo=CC=88rtsch?= Date: Tue, 8 Jan 2019 12:09:43 +0100 Subject: [PATCH] Rename MatchesAPI --- LiquipediaMenu.xcodeproj/project.pbxproj | 3 +-- .../API/{MatchesAPI.swift => LiquipediaMatchesAPI.swift} | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename LiquipediaMenu/API/{MatchesAPI.swift => LiquipediaMatchesAPI.swift} (92%) diff --git a/LiquipediaMenu.xcodeproj/project.pbxproj b/LiquipediaMenu.xcodeproj/project.pbxproj index a78c56b..9e2994f 100644 --- a/LiquipediaMenu.xcodeproj/project.pbxproj +++ b/LiquipediaMenu.xcodeproj/project.pbxproj @@ -101,7 +101,7 @@ 3F933FF821E395AB00C0EEF3 /* API */ = { isa = PBXGroup; children = ( - 3F49E949216BE87B0047B0FE /* MatchesAPI.swift */, + 3F49E949216BE87B0047B0FE /* LiquipediaMatchesAPI.swift */, ); path = API; sourceTree = ""; @@ -133,7 +133,6 @@ 3F933FF721E3958000C0EEF3 /* Match */, 3FB6BB47216B8594000BF5AA /* AppDelegate.swift */, 3F49E947216B862B0047B0FE /* StatusBarController.swift */, - 3FB6BB49216B8595000BF5AA /* Assets.xcassets */, 3FB6BB4B216B8595000BF5AA /* MainMenu.xib */, 3FB6BB4E216B8595000BF5AA /* Info.plist */, diff --git a/LiquipediaMenu/API/MatchesAPI.swift b/LiquipediaMenu/API/LiquipediaMatchesAPI.swift similarity index 92% rename from LiquipediaMenu/API/MatchesAPI.swift rename to LiquipediaMenu/API/LiquipediaMatchesAPI.swift index 685c7a3..f385298 100644 --- a/LiquipediaMenu/API/MatchesAPI.swift +++ b/LiquipediaMenu/API/LiquipediaMatchesAPI.swift @@ -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"]