Fizzi.Applications.ChallongeVisualization.Model.TournamentContext.TournamentContext C# (CSharp) Method

TournamentContext() public method

public TournamentContext ( ChallongePortal portal, int tournamentId ) : System
portal Fizzi.Libraries.ChallongeApiWrapper.ChallongePortal
tournamentId int
return System
        public TournamentContext(ChallongePortal portal, int tournamentId)
        {
            Portal = portal;
            this.tournamentId = tournamentId;

            var queryResults = queryData();
            if (queryResults != null)
            {
                Tournament = new ObservableTournament(queryResults.Item1, this);
                Tournament.Initialize(queryResults.Item2, queryResults.Item3);
            }
        }