2018-12-11 16:06:10 +01:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
2018-12-11 16:06:10 +01: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.Collections.Generic;
|
2019-08-30 09:55:26 +02:00
|
|
|
|
using SafeExamBrowser.Configuration.Contracts.Cryptography;
|
2018-12-11 16:06:10 +01:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Configuration.Contracts.DataFormats
|
2018-12-11 16:06:10 +01:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2018-12-21 11:36:20 +01:00
|
|
|
|
/// Defines the result of a data parsing operation by an <see cref="IDataParser"/>.
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
public class ParseResult
|
|
|
|
|
{
|
2018-12-14 09:50:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The encryption parameters which were used to decrypt the data, or <c>null</c> if it was not encrypted.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public EncryptionParameters Encryption { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The original format of the data.
|
|
|
|
|
/// </summary>
|
2018-12-21 11:36:20 +01:00
|
|
|
|
public FormatType Format { get; set; }
|
2018-12-14 09:50:10 +01:00
|
|
|
|
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The parsed settings data. Might be <c>null</c> or in an undefinable state, depending on <see cref="Status"/>.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IDictionary<string, object> RawData { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2018-12-21 11:36:20 +01:00
|
|
|
|
/// The status result of the parsing operation.
|
2018-12-11 16:06:10 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
public LoadStatus Status { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|