Class TeamRequests
- java.lang.Object
-
- com.github.angleshq.angles.api.requests.BaseRequests
-
- com.github.angleshq.angles.api.requests.TeamRequests
-
public class TeamRequests extends BaseRequests
-
-
Field Summary
-
Fields inherited from class com.github.angleshq.angles.api.requests.BaseRequests
baseUrl, client, gson
-
-
Constructor Summary
Constructors Constructor Description TeamRequests(String baseUrl)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Teamcreate(Team team)Booleandelete(String teamId)Team[]get()Teamget(String teamId)Teamupdate(Team team)-
Methods inherited from class com.github.angleshq.angles.api.requests.BaseRequests
getDefaultErrorMessage, processErrorResponse, processResponse, sendDelete, sendJSONGet, sendJSONGet, sendJSONPost, sendJSONPut, sendMultiPartEntity
-
-
-
-
Constructor Detail
-
TeamRequests
public TeamRequests(String baseUrl)
-
-
Method Detail
-
create
public Team create(Team team) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Team[] get() throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
get
public Team get(String teamId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
delete
public Boolean delete(String teamId) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
update
public Team update(Team team) throws IOException, AnglesServerException
- Throws:
IOExceptionAnglesServerException
-
-