/*
 * Copyright (c) 2024 ETH Zürich, IT Services
 * 
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
using System;
namespace SafeExamBrowser.Communication.Contracts.Data
{
	/// 
	/// The reply to a .
	/// 
	[Serializable]
	public class PasswordReplyMessage : Message
	{
		/// 
		/// The password entered by the user, or null if the user interaction was unsuccessful.
		/// 
		public string Password { get; private set; }
		/// 
		/// The unique identifier for the password request.
		/// 
		public Guid RequestId { get; private set; }
		/// 
		/// Determines whether the user interaction was successful or not.
		/// 
		public bool Success { get; private set; }
		public PasswordReplyMessage(Guid requestId, bool success, string password = null)
		{
			Password = password;
			RequestId = requestId;
			Success = success;
		}
	}
}