seb-win-refactoring/SafeExamBrowser.UserInterface.Contracts/Browser/Data/JavascriptResult.cs
2022-05-03 12:53:07 +02:00

29 lines
754 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SafeExamBrowser.UserInterface.Contracts.Browser.Data
{
/// <summary>
/// The data resulting from a Javascript expression evaluation.
/// </summary>
public class JavascriptResult
{
/// <summary>
/// Indicates if the Javascript was evaluated successfully or not.
/// </summary>
public bool Success { get; set; }
/// <summary>
/// The error message, in case of an unsuccessful evaluation of the Javascript expression.
/// </summary>
public string Message { get; set; }
/// <summary>
/// The data item returned by the Javascript expression.
/// </summary>
public dynamic Result { get; set; }
}
}