Exemple #1
0
        internal static EndPoint PlayersTeamEndPoint(string[] teamKeys, EndpointSubResourcesCollection subresources = null, PlayerCollectionFilters filters = null)
        {
            string teams = "";

            if (teamKeys.Length > 0)
            {
                teams = $";team_keys={ string.Join(",", teamKeys)}";
            }

            return(new EndPoint
            {
                BaseUri = BaseApiUrl,
                Resource = $"/teams{teams}/players{BuildSubResourcesList(subresources)}{BuildPlayersFiltersList(filters)}"
            });
        }
Exemple #2
0
 private static string BuildPlayersFiltersList(PlayerCollectionFilters filters)
 {
     return($"");
 }
Exemple #3
0
        internal static EndPoint PlayersLeagueEndPoint(string[] leagueKeys, EndpointSubResourcesCollection subresources = null, PlayerCollectionFilters filters = null)
        {
            string leagues = "";

            if (leagueKeys.Length > 0)
            {
                leagues = $";league_keys={ string.Join(",", leagueKeys)}";
            }

            return(new EndPoint
            {
                BaseUri = BaseApiUrl,
                Resource = $"/leagues{leagues}/players{BuildSubResourcesList(subresources)}{BuildPlayersFiltersList(filters)}"
            });
        }