//
// DO NOT EDIT: generated by fsdgencsharp
//
using System;
using System.Collections.Generic;
using Facility.Core;
namespace OapApi.v1.Client
{
///
/// Request for CreateApplication.
///
[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
public sealed partial class CreateApplicationRequestDto : ServiceDto
{
///
/// Creates an instance.
///
public CreateApplicationRequestDto()
{
}
///
/// The application to create.
///
public ApplicationCreateSetDto ApplicationCreateSet { get; set; }
///
/// The JSON serializer.
///
protected override JsonServiceSerializer JsonSerializer => SystemTextJsonServiceSerializer.Instance;
///
/// Determines if two DTOs are equivalent.
///
public override bool IsEquivalentTo(CreateApplicationRequestDto other)
{
return other != null &&
ServiceDataUtility.AreEquivalentDtos(ApplicationCreateSet, other.ApplicationCreateSet);
}
///
/// Validates the DTO.
///
public override bool Validate(out string errorMessage)
{
errorMessage = GetValidationErrorMessage();
return errorMessage == null;
}
private string GetValidationErrorMessage()
{
string errorMessage;
if (!ServiceDataUtility.ValidateFieldValue(ApplicationCreateSet, "applicationCreateSet", out errorMessage))
return errorMessage;
return null;
}
}
}