Skip to content

Instantly share code, notes, and snippets.

@ksloginov
Created January 12, 2017 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ksloginov/d46ad753e0bee5b21cf51013133b8423 to your computer and use it in GitHub Desktop.
Save ksloginov/d46ad753e0bee5b21cf51013133b8423 to your computer and use it in GitHub Desktop.
public class Source : Mappable
{
public var id : String = ""
public var leagueId : String = ""
public var leagueName : String = ""
public var parentLeagueId : String = ""
public var name : String = ""
public var teamName : String = ""
public var countryCode : String = ""
public var webUri : String = ""
public var shareUri : String = ""
public var imageUrl : String = ""
public var titleEn : String = ""
public var titleEs : String = ""
public var titleIt : String = ""
public var titleTh : String = ""
public var titleVn : String = ""
public var titleFr : String = ""
public var titleDe : String = ""
public var newsLanguages : [String] = []
public var homeId : String = ""
public var homeName : String = ""
public var homeScore : Int = 0
public var awayId : String = ""
public var awayScore : Int = 0
public var statusId : Int = 0
public var awayName : String = ""
public var primaryTeamName : String = ""
public var matchDate : Date?
public var dateUpdated: Date?
required public init?(map: Map) {
}
public func mapping(map: Map) {
id <- map["id"]
leagueId <- map["leagueId"]
leagueName <- map["leagueName"]
parentLeagueId <- map["parentLeagueId"]
name <- map["name"]
teamName <- map["teamName"]
countryCode <- map["countryCode"]
webUri <- map["webUri"]
shareUri <- map["shareUri"]
imageUrl <- map["imageUrl"]
titleEn <- map["titleEn"]
titleEs <- map["titleEs"]
titleIt <- map["titleIt"]
titleTh <- map["titleTh"]
titleVn <- map["titleVn"]
titleFr <- map["titleFr"]
titleDe <- map["titleDe"]
newsLanguages <- map["newsLanguages"]
homeId <- map["homeId"]
homeName <- map["homeName"]
homeScore <- map["homeScore"]
awayId <- map["awayId"]
awayScore <- map["awayScore"]
statusId <- map["statusId"]
awayName <- map["awayName"]
primaryTeamName <- map["primaryTeamName"]
matchDate <- map["matchDate"]
dateUpdated <- map["dateUpdated"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment