public class SportSource extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static SportSource |
getInstance()
获取唯一实例
|
String |
randomBasketballTeam(CompetitionType competition)
获取随机的篮球联赛球队名称
|
FootballTeam |
randomFootballTeam()
获取随机的国家及地区的足球代表队信息(不限足球联合会)
|
String |
randomFootballTeam(CompetitionType competition)
获取随机的足球联赛球队名称
|
FootballTeam |
randomFootballTeam(FootballConfederation confederation)
获取随机的国家及地区的足球代表队信息
|
public static SportSource getInstance()
public String randomFootballTeam(CompetitionType competition)
competition - 体育竞技赛事类型public String randomBasketballTeam(CompetitionType competition)
competition - 体育竞技赛事类型public FootballTeam randomFootballTeam(FootballConfederation confederation)
confederation - 所属足球联合会public FootballTeam randomFootballTeam()
Copyright © 2021. All rights reserved.