/*
* 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/.
*/
namespace SafeExamBrowser.UserInterface.Contracts.Browser.Data
{
///
/// The data resulting from a JavaScript expression evaluation.
///
public class JavaScriptResult
{
///
/// Indicates if the JavaScript was evaluated successfully or not.
///
public bool Success { get; set; }
///
/// The error message, in case of an unsuccessful evaluation of the JavaScript expression.
///
public string Message { get; set; }
///
/// The data item returned by the JavaScript expression.
///
public object Result { get; set; }
}
}