Class Team


  • @Path("/")
    public class Team
    extends java.lang.Object
    Sub-resource class representing a country's cricket team.
    • Constructor Summary

      Constructors 
      Constructor Description
      Team​(java.lang.String countryId)  
      Team​(java.lang.String countryId, java.lang.String countryName)  
    • Constructor Detail

      • Team

        public Team​(java.lang.String countryId)
      • Team

        public Team​(java.lang.String countryId,
                    java.lang.String countryName)
    • Method Detail

      • getCountryId

        public java.lang.String getCountryId()
      • getCountryName

        public java.lang.String getCountryName()
      • setCountryName

        public void setCountryName​(java.lang.String countryName)
      • getTeamType

        public java.lang.String getTeamType()
      • setTeamType

        public void setTeamType​(java.lang.String teamType)
      • setCountryId

        public void setCountryId​(java.lang.String countryId)
      • getPlayerObj

        @Path("/{playerId}")
        public Player getPlayerObj​(@PathParam("countryId")
                                   java.lang.String countryId,
                                   @PathParam("playerId")
                                   int playerId)
      • getCountryTeam

        @GET
        @Path("")
        public Team getCountryTeam​(@PathParam("countryId")
                                   java.lang.String countryId)
      • getCountryTeamFromPost

        @POST
        @Path("")
        public Team getCountryTeamFromPost​(@PathParam("countryId")
                                           java.lang.String countryId,
                                           @FormParam("countryName")
                                           java.lang.String countryName)