コード例 #1
0
    private static string GenerateFrontierReferer(ClientLanguage language)
    {
        var langCode      = language.GetLangCode().Replace("-", "_");
        var formattedTime = GetLauncherFormattedTimeLong();

        return($"https://launcher.finalfantasyxiv.com/v610/index.html?rc_lang={langCode}&time={formattedTime}");
    }
コード例 #2
0
        private static string GenerateFrontierReferer(ClientLanguage language)
        {
            var langCode      = language.GetLangCode();
            var formattedTime = DateTime.UtcNow.ToString("yyyy-MM-dd-HH");

            return($"https://frontier.ffxiv.com/version_5_0_win/index.html?rc_lang={langCode}&time={formattedTime}");
        }
コード例 #3
0
ファイル: Launcher.cs プロジェクト: perize/FFXIVQuickLauncher
        private static string GenerateFrontierReferer(ClientLanguage language)
        {
            var langCode      = language.GetLangCode();
            var formattedTime = GetLauncherFormattedTime();

            return($"https://frontier.ffxiv.com/version_5_0_win/index.html?rc_lang={langCode}&time={formattedTime}");
        }
コード例 #4
0
    public async Task <GateStatus> GetGateStatus(ClientLanguage language)
    {
        try
        {
            var reply = Encoding.UTF8.GetString(
                await DownloadAsLauncher(
                    $"https://frontier.ffxiv.com/worldStatus/gate_status.json?lang={language.GetLangCode()}&_={Util.GetUnixMillis()}", language).ConfigureAwait(true));

            return(JsonConvert.DeserializeObject <GateStatus>(reply));
        }
        catch (Exception exc)
        {
            throw new Exception("Could not get gate status", exc);
        }
    }