// <auto-generated>
// DO NOT EDIT: generated by fsdgencsharp
// </auto-generated>
using System;
using System.Collections.Generic;
using Facility.Core;

namespace OapApi.v1.Client
{
	/// <summary>
	/// Response for CreateApplication.
	/// </summary>
	[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
	public sealed partial class CreateApplicationResponseDto : ServiceDto<CreateApplicationResponseDto>
	{
		/// <summary>
		/// Creates an instance.
		/// </summary>
		public CreateApplicationResponseDto()
		{
		}

		/// <summary>
		/// The created application.
		/// </summary>
		public ApplicationDto Application { 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(CreateApplicationResponseDto other)
		{
			return other != null &&
				ServiceDataUtility.AreEquivalentDtos(Application, other.Application);
		}
	}
}
