2018-06-27 14:02:16 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-06-27 14:02:16 +02:00
|
|
|
|
*
|
|
|
|
|
* 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;
|
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Communication.Contracts.Data
|
2018-06-27 14:02:16 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The reply to a <see cref="PasswordRequestMessage"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class PasswordReplyMessage : Message
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The password entered by the user, or <c>null</c> if the user interaction was unsuccessful.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Password { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique identifier for the password request.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Guid RequestId { get; private set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Determines whether the user interaction was successful or not.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Success { get; private set; }
|
|
|
|
|
|
2018-07-04 09:53:33 +02:00
|
|
|
|
public PasswordReplyMessage(Guid requestId, bool success, string password = null)
|
2018-06-27 14:02:16 +02:00
|
|
|
|
{
|
|
|
|
|
Password = password;
|
|
|
|
|
RequestId = requestId;
|
|
|
|
|
Success = success;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|