Skip to content

Commit

Permalink
missed this
Browse files Browse the repository at this point in the history
  • Loading branch information
BrentonPoke committed Apr 12, 2021
1 parent e7da45b commit f9fc107
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/toornament/concepts/Groups.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
import com.toornament.ToornamentClient;
import com.toornament.exception.ToornamentException;
import com.toornament.model.Group;
import com.toornament.model.header.GroupHeader;
import com.toornament.model.header.GroupsHeader;
import com.toornament.model.request.GroupsQuery;
import java.util.logging.Level;

import okhttp3.HttpUrl;
import okhttp3.Request;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.LoggerFactory;

Expand All @@ -24,7 +24,7 @@ public Groups(ToornamentClient client, String tournamentID) {
logger = LoggerFactory.getLogger(this.getClass());
}

public List<Group> getGroups(GroupsQuery parameters, GroupHeader header) {
public List<Group> getGroups(GroupsQuery parameters, GroupsHeader header) {
HttpUrl.Builder url =
new HttpUrl.Builder()
.scheme("https")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.toornament.model.header;

public class GroupHeader extends RangeHeader{
public class GroupsHeader extends RangeHeader{

@Override
public RangeHeader build(Integer start, Integer end) {
public GroupsHeader build(Integer start, Integer end) {
value = "groups="+start.toString()+"-"+end.toString();
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class RankingsHeader extends RangeHeader{

@Override
RangeHeader build(Integer start, Integer end) {
public RankingsHeader build(Integer start, Integer end) {
value = "rankings="+start+"-"+end;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class ReportsHeader extends RangeHeader{

@Override
RangeHeader build(Integer start, Integer end) {
public ReportsHeader build(Integer start, Integer end) {
value = "reports="+start+"-"+end;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class StandingsHeader extends RangeHeader{

@Override
public RangeHeader build(Integer start, Integer end) {
public StandingsHeader build(Integer start, Integer end) {
value = "standings="+start+"-"+end;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public class TournamentsHeader extends RangeHeader{

@Override
public RangeHeader build(Integer start, Integer end) {
public TournamentsHeader build(Integer start, Integer end) {
value = "tournaments="+start+"-"+end;
return this;
}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/GroupsTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import com.toornament.concepts.Groups;
import com.toornament.model.Group;
import com.toornament.model.enums.Scope;
import com.toornament.model.header.GroupHeader;
import com.toornament.model.header.GroupsHeader;
import com.toornament.model.request.GroupsQuery;
import com.toornament.model.request.GroupsQuery.GroupsQueryBuilder;
import java.util.HashSet;
Expand All @@ -20,7 +20,7 @@ public class GroupsTests {
private ToornamentClient client;
private Groups groups;
private GroupsQueryBuilder params = GroupsQuery.builder();
private GroupHeader header = new GroupHeader();
private GroupsHeader header = new GroupsHeader();
private HashSet<Scope> scopes = new HashSet<>();
@Before
public void Setup() throws IOException {
Expand Down

0 comments on commit f9fc107

Please sign in to comment.