Clean JSON output for NextPageData and CurrentPageData Normalize NextPageData & CurrentPageData formatting Fix JSON formatting for NextPageData and CurrentPageData Compact JSON for NextPageData and CurrentPageData
58 lines
1.5 KiB
C#
58 lines
1.5 KiB
C#
using JetBrains.Annotations;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Caspian.WorkflowFramework.Models
|
|
{
|
|
[PublicAPI]
|
|
public class WorkflowModel
|
|
{
|
|
/// <summary>
|
|
/// شناسه گردش کار
|
|
/// </summary>
|
|
public string? InstanceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// نام گردش کار
|
|
/// </summary>
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// اتمام گردش کار؟
|
|
/// </summary>
|
|
public bool IsComplete { get; set; }
|
|
|
|
/// <summary>
|
|
/// برای کدام کاربر؟
|
|
/// </summary>
|
|
public long? UserId { get; set; }
|
|
|
|
/// <summary>
|
|
/// داده صفحه جاری
|
|
/// </summary>
|
|
public JsonElement? CurrentPageData { get; set; }
|
|
|
|
/// <summary>
|
|
/// داده صفحه بعد
|
|
/// <remark>
|
|
/// فعلا استفاده ای نداریم
|
|
/// </remark>
|
|
/// </summary>
|
|
public JsonElement? NextPageData { get; set; }
|
|
|
|
/// <summary>
|
|
/// آدرس صفحه بعدی
|
|
/// </summary>
|
|
public string? NextPageUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// رویدادی که باید پس از سابمیت صفحه بعدی منتشر شود
|
|
/// </summary>
|
|
public string? NextPageEventName { get; set; }
|
|
}
|
|
}
|