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

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

		/// <summary>
		/// The application ID.
		/// </summary>
		public string Id { get; set; }

		/// <summary>
		/// The application update set.
		/// </summary>
		public ApplicationChangeSetDto ApplicationChangeSet { 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(UpdateApplicationRequestDto other)
		{
			return other != null &&
				Id == other.Id &&
				ServiceDataUtility.AreEquivalentDtos(ApplicationChangeSet, other.ApplicationChangeSet);
		}
	}
}
