// <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 GetApplications.
	/// </summary>
	[System.CodeDom.Compiler.GeneratedCode("fsdgencsharp", "")]
	public sealed partial class GetApplicationsRequestDto : ServiceDto<GetApplicationsRequestDto>
	{
		/// <summary>
		/// Creates an instance.
		/// </summary>
		public GetApplicationsRequestDto()
		{
		}

		/// <summary>
		/// Filter applications by the given status.
		/// </summary>
		public ApplicationStatus? Status { get; set; }

		/// <summary>
		/// The limit of returned results.
		/// </summary>
		public int? Limit { get; set; }

		/// <summary>
		/// The token presenting the next page of applications to get.
		/// </summary>
		public string NextToken { 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(GetApplicationsRequestDto other)
		{
			return other != null &&
				Status == other.Status &&
				Limit == other.Limit &&
				NextToken == other.NextToken;
		}
	}
}
