public static async Task <object> FixturesByTeam(short teamId, SearchFixtureStatusType searchFixtureStatusType) { var webApiService = ShinyHost.Resolve <IWebApiService>(); return(await webApiService.RequestRawAsyncWithToken(new WebRequestContext { SerializeType = SerializeType.MessagePack, MethodType = WebMethodType.POST, BaseUrl = AppConfig.PoseWebBaseUrl, ServiceUrl = FootballProxy.ServiceUrl, SegmentGroup = FootballProxy.P_GET_FIXTURES_BY_TEAM, PostData = new I_GET_FIXTURES_BY_TEAM { SearchFixtureStatusType = searchFixtureStatusType, TeamId = teamId, } })); }
public static async Task <object> FixturesByLeague(string coutry, string league, SearchFixtureStatusType searchFixtureStatusType) { var webApiService = ShinyHost.Resolve <IWebApiService>(); return(await webApiService.RequestRawAsyncWithToken(new WebRequestContext { SerializeType = SerializeType.MessagePack, MethodType = WebMethodType.POST, BaseUrl = AppConfig.PoseWebBaseUrl, ServiceUrl = FootballProxy.ServiceUrl, SegmentGroup = FootballProxy.P_GET_FIXTURES_BY_LEAGUE, PostData = new I_GET_FIXTURES_BY_LEAGUE { SearchFixtureStatusType = searchFixtureStatusType, CountryName = coutry, LeagueName = league, } })); }