本文整理汇总了Java中org.modelmapper.TypeToken类的典型用法代码示例。如果您正苦于以下问题:Java TypeToken类的具体用法?Java TypeToken怎么用?Java TypeToken使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TypeToken类属于org.modelmapper包,在下文中一共展示了TypeToken类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getLiveScore
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetLiveScoreResultDto> getLiveScore() {
GetLiveScore request = new GetLiveScore();
request.setApiKey(apiKey);
GetLiveScoreResponse response = (GetLiveScoreResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetLiveScore"));
GetLiveScoreResultXML getLiveScoreResultXML = response.getGetLiveScoreResult().getContent();
Type listType = new TypeToken<List<GetLiveScoreResultDto>>() {
}.getType();
return modelMapper.map(getLiveScoreResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java
示例2: getLiveScoreByLeague
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetLiveScoreResultDto> getLiveScoreByLeague(String leagueName) {
GetLiveScoreByLeague request = new GetLiveScoreByLeague();
request.setApiKey(apiKey);
request.setLeague(leagueName);
GetLiveScoreByLeagueResponse response = (GetLiveScoreByLeagueResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetLiveScoreByLeague"));
GetLiveScoreResultXML getLiveScoreResultXML = response.getGetLiveScoreByLeagueResult().getContent();
Type listType = new TypeToken<List<GetLiveScoreResultDto>>() {
}.getType();
return modelMapper.map(getLiveScoreResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:20,代码来源:XmlSoccerServiceImpl.java
示例3: getLeagueStandingsBySeason
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetLeagueStandingsResultDto> getLeagueStandingsBySeason(String leagueName, String season) {
GetLeagueStandingsBySeason request = new GetLeagueStandingsBySeason();
request.setApiKey(apiKey);
request.setLeague(leagueName);
request.setSeasonDateString(season);
GetLeagueStandingsBySeasonResponse response =
(GetLeagueStandingsBySeasonResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetLeagueStandingsBySeason"));
GetLeagueStandingsBySeasonResultXML getLeagueStandingsBySeasonResultXML =
response.getGetLeagueStandingsBySeasonResult().getContent();
Type listType = new TypeToken<List<GetLeagueStandingsResultDto>>() {
}.getType();
return modelMapper.map(
getLeagueStandingsBySeasonResultXML.getTeamLeagueStanding(),
listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java
示例4: getAllLeagues
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetAllLeaguesResultDto> getAllLeagues() {
GetAllLeagues request = new GetAllLeagues();
request.setApiKey(apiKey);
GetAllLeaguesResponse response = (GetAllLeaguesResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetAllLeagues"));
GetAllLeaguesResultXML getAllLeaguesResultXML = response.getGetAllLeaguesResult().getContent();
Type listType = new TypeToken<List<GetAllLeaguesResultDto>>() {
}.getType();
return modelMapper.map(getAllLeaguesResultXML.getLeague(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java
示例5: getAllTeams
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetTeamResultDto> getAllTeams() {
GetAllTeams request = new GetAllTeams();
request.setApiKey(apiKey);
GetAllTeamsResponse response = (GetAllTeamsResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetAllTeams"));
GetAllTeamsResultXML getAllTeamsResultXML = response.getGetAllTeamsResult().getContent();
Type listType = new TypeToken<List<GetTeamResultDto>>() {
}.getType();
return modelMapper.map(getAllTeamsResultXML.getTeam(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:19,代码来源:XmlSoccerServiceImpl.java
示例6: getAllTeamsByLeagueAndSeason
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetTeamResultDto> getAllTeamsByLeagueAndSeason(String leagueName, String season) {
GetAllTeamsByLeagueAndSeason request = new GetAllTeamsByLeagueAndSeason();
request.setApiKey(apiKey);
request.setLeague(leagueName);
request.setSeasonDateString(season);
GetAllTeamsByLeagueAndSeasonResponse response =
(GetAllTeamsByLeagueAndSeasonResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetAllTeamsByLeagueAndSeason"));
GetAllTeamsByLeagueAndSeasonResultXML getAllTeamsResultXML =
response.getGetAllTeamsByLeagueAndSeasonResult().getContent();
Type listType = new TypeToken<List<GetTeamResultDto>>() {
}.getType();
return modelMapper.map(getAllTeamsResultXML.getTeam(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java
示例7: getPlayersByTeam
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetPlayersResultDto> getPlayersByTeam(Integer teamId) {
GetPlayersByTeam request = new GetPlayersByTeam();
request.setApiKey(apiKey);
request.setTeamId(teamId.toString());
GetPlayersByTeamResponse response = (GetPlayersByTeamResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetPlayersByTeam"));
GetPlayersByTeamResultXML getPlayersByTeamResultXML = response.getGetPlayersByTeamResult().getContent();
Type listType = new TypeToken<List<GetPlayersResultDto>>() {
}.getType();
return modelMapper.map(getPlayersByTeamResultXML.getPlayer(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:20,代码来源:XmlSoccerServiceImpl.java
示例8: getAllOddsByFixtureMatchId
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetAllOddsResultDto> getAllOddsByFixtureMatchId(Integer fixtureMatchId) {
GetAllOddsByFixtureMatchId request = new GetAllOddsByFixtureMatchId();
request.setApiKey(apiKey);
request.setFixtureMatchId(fixtureMatchId);
GetAllOddsByFixtureMatchIdResponse response =
(GetAllOddsByFixtureMatchIdResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetAllOddsByFixtureMatchId"));
GetAllOddsXML getOddsByFixtureMatchIdResultXML = response.getGetAllOddsByFixtureMatchIdResult().
getContent();
Type listType = new TypeToken<List<GetAllOddsResultDto>>() {
}.getType();
return modelMapper.map(
getOddsByFixtureMatchIdResultXML.getOddsList().getOdds(),
listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:24,代码来源:XmlSoccerServiceImpl.java
示例9: getOddsByFixtureMatchId
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetOddsResultDto> getOddsByFixtureMatchId(Integer fixtureMatchId) {
GetOddsByFixtureMatchId request = new GetOddsByFixtureMatchId();
request.setApiKey(apiKey);
request.setFixtureMatchId(fixtureMatchId.toString());
GetOddsByFixtureMatchIdResponse response = (GetOddsByFixtureMatchIdResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetOddsByFixtureMatchId"));
GetOddsByFixtureMatchIdResultXML getOddsByFixtureMatchIdResultXML =
response.getGetOddsByFixtureMatchIdResult().getContent();
Type listType = new TypeToken<List<GetOddsResultDto>>() {
}.getType();
return modelMapper.map(getOddsByFixtureMatchIdResultXML.getOdds(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:21,代码来源:XmlSoccerServiceImpl.java
示例10: getNextMatchOddsByLeague
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetOddsResultDto> getNextMatchOddsByLeague(String leagueName) {
GetNextMatchOddsByLeague request = new GetNextMatchOddsByLeague();
request.setApiKey(apiKey);
request.setLeague(leagueName);
GetNextMatchOddsByLeagueResponse response =
(GetNextMatchOddsByLeagueResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetNextMatchOddsByLeague"));
GetNextMatchOddsByLeagueResultXML getNextMatchOddsByLeagueResultXML =
response.getGetNextMatchOddsByLeagueResult().getContent();
Type listType = new TypeToken<List<GetNextOddsResultDto>>() {
}.getType();
return modelMapper.map(getNextMatchOddsByLeagueResultXML.getOdds(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java
示例11: getTopScorersByLeagueAndSeason
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetTopScorersResultDto> getTopScorersByLeagueAndSeason(String leagueName, String season) {
GetTopScorersByLeagueAndSeason request = new GetTopScorersByLeagueAndSeason();
request.setApiKey(apiKey);
request.setLeague(leagueName);
request.setSeasonDateString(season);
GetTopScorersByLeagueAndSeasonResponse response =
(GetTopScorersByLeagueAndSeasonResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetTopScorersByLeagueAndSeason"));
GetTopScorersResultXML getTopScorersResultXML =
response.getGetTopScorersByLeagueAndSeasonResult().getContent();
Type listType = new TypeToken<List<GetTopScorersResultDto>>() {
}.getType();
return modelMapper.map(getTopScorersResultXML.getTopscorer(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java
示例12: getTopScorersByGroupId
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetTopScorersResultDto> getTopScorersByGroupId(Integer group) {
GetTopScorersByGroupId request = new GetTopScorersByGroupId();
request.setApiKey(apiKey);
request.setGroupId(group);
GetTopScorersByGroupIdResponse response =
(GetTopScorersByGroupIdResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetTopScorersByGroupId"));
GetTopScorersResultXML getTopScorersResultXML = response.getGetTopScorersByGroupIdResult().getContent();
Type listType = new TypeToken<List<GetTopScorersResultDto>>() {
}.getType();
return modelMapper.map(getTopScorersResultXML.getTopscorer(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:21,代码来源:XmlSoccerServiceImpl.java
示例13: getFixturesByDateInterval
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateInterval(String startDate, String endDate) {
GetFixturesByDateInterval request = new GetFixturesByDateInterval();
request.setApiKey(apiKey);
request.setStartDateString(startDate);
request.setEndDateString(endDate);
GetFixturesByDateIntervalResponse response =
(GetFixturesByDateIntervalResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetFixturesByDateInterval"));
GetFixturesResultXML getFixturesResultXML = response.getGetFixturesByDateIntervalResult().getContent();
Type listType = new TypeToken<List<GetFixturesResultDto>>() {
}.getType();
return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java
示例14: getFixturesByDateIntervalAndLeague
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateIntervalAndLeague(String leagueName, String startDate,
String endDate) {
GetFixturesByDateIntervalAndLeague request = new GetFixturesByDateIntervalAndLeague();
request.setApiKey(apiKey);
request.setStartDateString(startDate);
request.setEndDateString(endDate);
request.setLeague(leagueName);
GetFixturesByDateIntervalAndLeagueResponse response =
(GetFixturesByDateIntervalAndLeagueResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetFixturesByDateIntervalAndLeague"));
GetFixturesResultXML getFixturesResultXML =
response.getGetFixturesByDateIntervalAndLeagueResult().getContent();
Type listType = new TypeToken<List<GetFixturesResultDto>>() {
}.getType();
return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java
示例15: getFixturesByDateIntervalAndTeam
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByDateIntervalAndTeam(Integer teamId, String startDate,
String endDate) {
GetFixturesByDateIntervalAndTeam request = new GetFixturesByDateIntervalAndTeam();
request.setApiKey(apiKey);
request.setStartDateString(startDate);
request.setEndDateString(endDate);
request.setTeamId(teamId.toString());
GetFixturesByDateIntervalAndTeamResponse response =
(GetFixturesByDateIntervalAndTeamResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetFixturesByDateIntervalAndTeam"));
GetFixturesResultXML getFixturesResultXML =
response.getGetFixturesByDateIntervalAndTeamResult().getContent();
Type listType = new TypeToken<List<GetFixturesResultDto>>() {
}.getType();
return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:25,代码来源:XmlSoccerServiceImpl.java
示例16: getFixturesByLeagueAndSeason
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetFixturesResultDto> getFixturesByLeagueAndSeason(String leagueName, String season) {
GetFixturesByLeagueAndSeason request = new GetFixturesByLeagueAndSeason();
request.setApiKey(apiKey);
request.setLeague(leagueName);
request.setSeasonDateString(season);
GetFixturesByLeagueAndSeasonResponse response =
(GetFixturesByLeagueAndSeasonResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetFixturesByLeagueAndSeason"));
GetFixturesResultXML getFixturesResultXML =
response.getGetFixturesByLeagueAndSeasonResult().getContent();
Type listType = new TypeToken<List<GetFixturesResultDto>>() {
}.getType();
return modelMapper.map(getFixturesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:23,代码来源:XmlSoccerServiceImpl.java
示例17: getHistoricMatchesByFixtureMatchID
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByFixtureMatchID(Integer fixtureMatchId) {
GetHistoricMatchesByFixtureMatchID request = new GetHistoricMatchesByFixtureMatchID();
request.setApiKey(apiKey);
request.setId(fixtureMatchId);
GetHistoricMatchesByFixtureMatchIDResponse response =
(GetHistoricMatchesByFixtureMatchIDResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetHistoricMatchesByFixtureMatchID"));
GetHistoricMatchesResultXML getHistoricMatchesResultXML =
response.getGetHistoricMatchesByFixtureMatchIDResult().getContent();
Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
}.getType();
return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java
示例18: getHistoricMatchesByID
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByID(Integer matchId) {
GetHistoricMatchesByID request = new GetHistoricMatchesByID();
request.setApiKey(apiKey);
request.setId(matchId);
GetHistoricMatchesByIDResponse response =
(GetHistoricMatchesByIDResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetHistoricMatchesByID"));
GetHistoricMatchesResultXML getHistoricMatchesResultXML =
response.getGetHistoricMatchesByIDResult().getContent();
Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
}.getType();
return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:22,代码来源:XmlSoccerServiceImpl.java
示例19: getHistoricMatchesByLeagueAndDateInterval
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByLeagueAndDateInterval(String leagueName,
String startDate,
String endDate) {
GetHistoricMatchesByLeagueAndDateInterval request = new GetHistoricMatchesByLeagueAndDateInterval();
request.setApiKey(apiKey);
request.setLeague(leagueName);
request.setStartDateString(startDate);
request.setEndDateString(endDate);
GetHistoricMatchesByLeagueAndDateIntervalResponse response =
(GetHistoricMatchesByLeagueAndDateIntervalResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetHistoricMatchesByLeagueAndDateInterval"));
GetHistoricMatchesResultXML getHistoricMatchesResultXML =
response.getGetHistoricMatchesByLeagueAndDateIntervalResult().getContent();
Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
}.getType();
return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:26,代码来源:XmlSoccerServiceImpl.java
示例20: getHistoricMatchesByLeagueAndSeason
import org.modelmapper.TypeToken; //导入依赖的package包/类
@Override
public List<GetHistoricMatchesResultDto> getHistoricMatchesByLeagueAndSeason(String leagueName,
String season) {
GetHistoricMatchesByLeagueAndSeason request = new GetHistoricMatchesByLeagueAndSeason();
request.setApiKey(apiKey);
request.setSeasonDateString(season);
request.setLeague(leagueName);
GetHistoricMatchesByLeagueAndSeasonResponse response =
(GetHistoricMatchesByLeagueAndSeasonResponse) getWebServiceTemplate().
marshalSendAndReceive(
request,
new SoapActionCallback(
"http://xmlsoccer.com/GetHistoricMatchesByLeagueAndSeason"));
GetHistoricMatchesResultXML getHistoricMatchesResultXML =
response.getGetHistoricMatchesByLeagueAndSeasonResult().getContent();
Type listType = new TypeToken<List<GetHistoricMatchesResultDto>>() {
}.getType();
return modelMapper.map(getHistoricMatchesResultXML.getMatch(), listType);
}
开发者ID:pabloo99,项目名称:xmlsoccer,代码行数:24,代码来源:XmlSoccerServiceImpl.java
注:本文中的org.modelmapper.TypeToken类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论