//
// DO NOT EDIT: generated by fsdgencsharp
//
using System;
using System.Collections.Generic;
using Facility.Core;
namespace Oap.Api.v1
{
[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
public sealed partial class ApplicationTermsCreateSetDto : ServiceDto
{
///
/// Creates an instance.
///
public ApplicationTermsCreateSetDto()
{
}
public bool? HasReadInstructions { get; set; }
///
/// The JSON serializer.
///
protected override JsonServiceSerializer JsonSerializer => SystemTextJsonServiceSerializer.Instance;
///
/// Determines if two DTOs are equivalent.
///
public override bool IsEquivalentTo(ApplicationTermsCreateSetDto other)
{
return other != null &&
HasReadInstructions == other.HasReadInstructions;
}
///
/// Validates the DTO.
///
public override bool Validate(out string errorMessage)
{
errorMessage = GetValidationErrorMessage();
return errorMessage == null;
}
private string GetValidationErrorMessage()
{
if (HasReadInstructions == null)
return ServiceDataUtility.GetRequiredFieldErrorMessage("hasReadInstructions");
return null;
}
}
}