code: public WvWMatch getWvWMatchInfo(int worldID, WvWMatch.Endpoint type) throws GuildWars2Exception {
  		if (type == null) return getWvWMatchInfoUsingWorld(worldID);
  		try {
  			switch (type) {
  				case All:
  					return getWvWMatchInfoUsingWorld(worldID);
  				case Overview:
  					Response<WvWMatchOverview> overview = gw2API.getWvWMatchOverviewUsingWorld(Integer.toString(worldID)).execute();
  					if (!overview.isSuccessful()) throwError(overview.code(), overview.errorBody());
  					return overview.body();
  				case Stat:
  					Response<WvWMatchStat> stat = gw2API.getWvWMatchStatUsingWorld(Integer.toString(worldID)).execute();
  					if (!stat.isSuccessful()) throwError(stat.code(), stat.errorBody());
  					return stat.body();
  				case Score:
  					Response<WvWMatchScore> score = gw2API.getWvWMatchScoreUsingWorld(Integer.toString(worldID)).execute();
  					if (!score.isSuccessful()) throwError(score.code(), score.errorBody());
  					return score.body();
  				default:
  					return getWvWMatchInfoUsingWorld(worldID);
  			}
  		} catch (IOException e) {
  			throw new GuildWars2Exception(ErrorCode.Network, "Network Error: " + e.getMessage());
  		}
  	}
docs: For more info on WvW matches API go <a href="https://wiki.guildwars2.com/wiki/API:2/wvw/matches">here</a><br/>
  Get wvw match info using world id
  
  @param worldID {@link World#id}
  @param type    endpoint type
  @return wvw match info, exact class depend on endpoint type
  @throws GuildWars2Exception see {@link ErrorCode} for detail
  @see WvWMatch wvw match info