#NEWLINE# def teams( self , region , summoner_id ) : #NEWLINE# #INDENT# '\n        Get teams that summoner is in\n\n        region: Region where to retrieve the data. Use the constants included in this package.\n        summoner_id: Summoner ID.\n\n        returns list of teams associated to a summoner\n\n        createDate                      Date    \n        fullId                          string  \n        lastGameDate                    Date    \n        lastJoinDate                    Date    \n        lastJoinedRankedTeamQueueDate   Date    \n        matchHistory                    List[MatchHistorySummaryDto]    \n        messageOfDay                    MessageOfDayDto \n        modifyDate                      Date    \n        name                            string  \n        roster                          RosterDto   \n        secondLastJoinDate              Date    \n        status                          string  \n        tag                             string  \n        teamStatSummary                 TeamStatSummaryDto  \n        thirdLastJoinDate               Date\n\n        MatchHistorySummaryDto\n        assists             int \n        deaths              int \n        gameId              long    \n        gameMode            string  \n        invalid             boolean \n        kills               int \n        mapId               int \n        opposingTeamKills   int \n        opposingTeamName    string  \n        win                 boolean\n\n        MessageOfDayDto\n        createDate      long    \n        message         string  \n        version         int\n\n        RosterDto\n        memberList      List[TeamMemberInfoDto] \n        ownerId         long\n\n        TeamStatSummaryDto\n        fullId              string  \n        teamStatDetails     Set[TeamStatDetailDto]\n\n        TeamMemberInfoDto\n        inviteDate      Date    \n        joinDate        Date    \n        playerId        long    \n        status          string\n\n        TeamStatDetailDto\n        averageGamesPlayed      int \n        fullId                  string  \n        losses                  int \n        teamStatType            string  \n        wins                    int\n        ' #NEWLINE# url = '{0}/{1}/{2}/team/by-summoner/{3}?api_key={4}' . format ( self . base_url , region , TEAM_VERSION , summoner_id , self . api_key ) #NEWLINE# response = requests . get ( response ) #NEWLINE# response . raise_for_status ( ) #NEWLINE# content = response . json ( ) #NEWLINE# teams = [ ] #NEWLINE# for team in content : #NEWLINE# #INDENT# teams . append ( api_classes . Team ( ** team ) ) #NEWLINE# #UNINDENT# return teams