Ejemplo n.º 1
0
        public LauncherVersionResponse GetLauncherVersion()
        {
            var headers = new List <WebHeader>()
            {
                new WebHeader("User-Agent", $"BSG Launcher {_launcherVersion}")
            };

            var req      = new EftApiRequest(LuncherVersionEndPoint, headers);
            var response = req.Get <LauncherVersionResponse>();

            _launcherVersion = response.Data.data.Version;

            return(response.Data);
        }
Ejemplo n.º 2
0
        public GameVersionResponse GetGameVersion(LoginResponse loginResponse, string sessionCookie)
        {
            var headers = new List <WebHeader>
            {
                new WebHeader("User-Agent", $"BSG Launcher {_launcherVersion}"),
                new WebHeader("Authorization", loginResponse.data.access_token),
                new WebHeader("Host", "launcher.escapefromtarkov.com"),
                new WebHeader("Cookie", $"PHPSESSID={sessionCookie}")
            };

            var req      = new EftApiRequest(GameVersionEndPoint, headers);
            var response = req.Get <GameVersionResponse>();

            return(response.Data);
        }