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}"); }
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}"); }
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}"); }
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); } }