<s> import cassiopeia . type . dto . common <EOL> import cassiopeia . type . core . common <EOL> if cassiopeia . type . dto . common . sqlalchemy_imported : <EOL> import sqlalchemy <EOL> import sqlalchemy . orm <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class TournamentCodeParameters ( cassiopeia . type . dto . common . CassiopeiaParametersDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , teamSize , spectatorType , pickType , mapType , allowedSummonerIds = None , metadata = "<STR_LIT>" ) : <EOL> self . teamSize = teamSize <EOL> self . spectatorType = spectatorType <EOL> self . pickType = pickType <EOL> self . mapType = mapType <EOL> self . allowedSummonerIds = allowedSummonerIds <EOL> self . metadata = metadata <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class SummonerIdParams ( cassiopeia . type . dto . common . CassiopeiaParametersDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , participants ) : <EOL> self . participants = participants <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class TournamentCode ( cassiopeia . type . dto . common . CassiopeiaDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , dictionary ) : <EOL> self . code = dictionary . get ( "<STR_LIT:code>" , "<STR_LIT>" ) <EOL> self . id = dictionary . get ( "<STR_LIT:id>" , <NUM_LIT:0> ) <EOL> self . lobbyName = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . map = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . metaData = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . participants = dictionary . get ( "<STR_LIT>" , [ ] ) <EOL> self . password = dictionary . get ( "<STR_LIT:password>" , "<STR_LIT>" ) <EOL> self . pickType = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . providerId = dictionary . get ( "<STR_LIT>" , <NUM_LIT:0> ) <EOL> self . region = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . spectators = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . teamSize = dictionary . get ( "<STR_LIT>" , <NUM_LIT:0> ) <EOL> self . tournamentId = dictionary . get ( "<STR_LIT>" , <NUM_LIT:0> ) <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class TournamentCodeUpdateParameters ( cassiopeia . type . dto . common . CassiopeiaParametersDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , allowedParticipants = "<STR_LIT>" , spectatorType = "<STR_LIT>" , pickType = "<STR_LIT>" , mapType = "<STR_LIT>" ) : <EOL> self . allowedParticipants = allowedParticipants <EOL> self . spectatorType = spectatorType <EOL> self . pickType = pickType <EOL> self . mapType = mapType <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class LobbyEventWrapper ( cassiopeia . type . dto . common . CassiopeiaDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , dictionary ) : <EOL> self . eventList = [ ( LobbyEvent ( event ) if not isinstance ( event , LobbyEvent ) else event ) for event in dictionary . get ( "<STR_LIT>" , [ ] ) if event ] <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class LobbyEvent ( cassiopeia . type . dto . common . CassiopeiaDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , dictionary ) : <EOL> self . eventType = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . summonerId = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> self . timestamp = dictionary . get ( "<STR_LIT>" , "<STR_LIT>" ) <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class ProviderRegistrationParameters ( cassiopeia . type . dto . common . CassiopeiaParametersDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , region , url ) : <EOL> self . region = region <EOL> self . url = url <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class TournamentRegistrationParameters ( cassiopeia . type . dto . common . CassiopeiaParametersDto ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , providerId , name = "<STR_LIT>" ) : <EOL> self . providerId = providerId <EOL> self . name = name <EOL> def _sa_bind_tournament_code ( ) : <EOL> global TournamentCode <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class TournamentCode ( TournamentCode , cassiopeia . type . dto . common . BaseDB ) : <EOL> __tablename__ = "<STR_LIT>" <EOL> code = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:50> ) ) <EOL> id = sqlalchemy . Column ( sqlalchemy . BigInteger , primary_key = True ) <EOL> lobbyName = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:50> ) ) <EOL> map = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> metaData = sqlalchemy . Column ( sqlalchemy . Text ) <EOL> participants = sqlalchemy . Column ( cassiopeia . type . dto . common . JSONEncoded ) <EOL> password = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> pickType = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> providerId = sqlalchemy . Column ( sqlalchemy . Integer ) <EOL> region = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> spectators = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> teamSize = sqlalchemy . Column ( sqlalchemy . Integer ) <EOL> tournamentId = sqlalchemy . Column ( sqlalchemy . BigInteger ) <EOL> def _sa_bind_lobby_event ( ) : <EOL> global LobbyEvent <EOL> @ cassiopeia . type . core . common . inheritdocs <EOL> class LobbyEvent ( LobbyEvent , cassiopeia . type . dto . common . BaseDB ) : <EOL> __tablename__ = "<STR_LIT>" <EOL> _id = sqlalchemy . Column ( sqlalchemy . Integer , primary_key = True ) <EOL> eventType = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:50> ) ) <EOL> summonerId = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:30> ) ) <EOL> timestamp = sqlalchemy . Column ( sqlalchemy . String ( <NUM_LIT:50> ) ) <EOL> def _sa_bind_all ( ) : <EOL> _sa_bind_tournament_code ( ) <EOL> _sa_bind_lobby_event ( ) </s>
