Basically working svelte interaction with orchard
This commit is contained in:
53
src/OAP/Oap.Api.v1/ApplicationTermsCreateSetDto.g.cs
Normal file
53
src/OAP/Oap.Api.v1/ApplicationTermsCreateSetDto.g.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
// <auto-generated>
|
||||
// DO NOT EDIT: generated by fsdgencsharp
|
||||
// </auto-generated>
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Facility.Core;
|
||||
|
||||
namespace Oap.Api.v1
|
||||
{
|
||||
[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
|
||||
public sealed partial class ApplicationTermsCreateSetDto : ServiceDto<ApplicationTermsCreateSetDto>
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an instance.
|
||||
/// </summary>
|
||||
public ApplicationTermsCreateSetDto()
|
||||
{
|
||||
}
|
||||
|
||||
public bool? HasReadInstructions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The JSON serializer.
|
||||
/// </summary>
|
||||
protected override JsonServiceSerializer JsonSerializer => SystemTextJsonServiceSerializer.Instance;
|
||||
|
||||
/// <summary>
|
||||
/// Determines if two DTOs are equivalent.
|
||||
/// </summary>
|
||||
public override bool IsEquivalentTo(ApplicationTermsCreateSetDto other)
|
||||
{
|
||||
return other != null &&
|
||||
HasReadInstructions == other.HasReadInstructions;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Validates the DTO.
|
||||
/// </summary>
|
||||
public override bool Validate(out string errorMessage)
|
||||
{
|
||||
errorMessage = GetValidationErrorMessage();
|
||||
return errorMessage == null;
|
||||
}
|
||||
|
||||
private string GetValidationErrorMessage()
|
||||
{
|
||||
if (HasReadInstructions == null)
|
||||
return ServiceDataUtility.GetRequiredFieldErrorMessage("hasReadInstructions");
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user