ArchiSteamFarm.MobileAuthenticator.GetConfirmationDetails C# (CSharp) Метод

GetConfirmationDetails() приватный Метод

private GetConfirmationDetails ( Confirmation confirmation ) : Task
confirmation Confirmation
Результат Task
		internal async Task<Steam.ConfirmationDetails> GetConfirmationDetails(Confirmation confirmation) {
			if (confirmation == null) {
				Bot.ArchiLogger.LogNullError(nameof(confirmation));
				return null;
			}

			if (!HasCorrectDeviceID) {
				Bot.ArchiLogger.LogGenericWarning("Can't execute properly due to invalid DeviceID!");
				return null;
			}

			uint time = await GetSteamTime().ConfigureAwait(false);
			if (time == 0) {
				Bot.ArchiLogger.LogNullError(nameof(time));
				return null;
			}

			string confirmationHash = GenerateConfirmationKey(time, "conf");
			if (string.IsNullOrEmpty(confirmationHash)) {
				Bot.ArchiLogger.LogNullError(nameof(confirmationHash));
				return null;
			}

			Steam.ConfirmationDetails response = await Bot.ArchiWebHandler.GetConfirmationDetails(DeviceID, confirmationHash, time, confirmation).ConfigureAwait(false);
			if ((response == null) || !response.Success) {
				return null;
			}

			return response;
		}