From dde8b96328269029f71ee435267dde8195796f55 Mon Sep 17 00:00:00 2001 From: Ronaldo Macapobre Date: Fri, 3 Jan 2025 23:36:52 +0000 Subject: [PATCH] - Fixed issues with location, presider and activities filter - Make httpClient setup configurable so that it forwards requests to APIG if provided or directly connect to BC Gov API but commented for now - Removed existing unused POCOs in PCSS - Updated PCSS Services Clients to use generated code from NSWag. - Import POCOs used by PCSS endpoints generated from NSWag. - Added CourtCalendar and JudicialCalendar POCOs manually. - Added sonarcloud config to minimize sonarcloud issues when creating PR. --- .github/workflows/publish-infra.yml | 14 +- .vscode/settings.json | 6 + api/Controllers/DashboardController.cs | 170 +- api/Controllers/LocationController.cs | 16 +- api/Helpers/MapperHelper.cs | 10 +- .../ServiceCollectionExtensions.cs | 110 +- api/Mappers/Mapping.cs | 25 +- api/Models/Calendar/CalendarDay.cs | 14 +- api/Models/Calendar/CalendarSchedule.cs | 8 +- api/Services/JudicialCalendarService.cs | 45 +- api/Services/LocationService.cs | 51 +- docker/docker-compose.yaml | 9 +- docker/openshift/sync-secrets.sh | 1 + .../Clients/CourtCalendarsServicesClient.cs | 309 ++- .../Clients/JudicialCalendarServicesClient.cs | 389 +++ .../JudicialCalendarsServicesClient.cs | 189 -- pcss-client/Clients/LocationServicesClient.cs | 215 ++ pcss-client/Common/Constants.cs | 6 + .../Models/{REST => }/CourtCalendar.cs | 145 +- .../Models/Infrastructure/Constants.cs | 71 - pcss-client/Models/JudicialCalendar.cs | 161 ++ pcss-client/Models/Models.cs | 2154 +++++++++++++++++ .../Models/REST/ActivityAppearanceDetail.cs | 216 -- pcss-client/Models/REST/Adjudicator.cs | 15 - .../Models/REST/AdjudicatorRestriction.cs | 48 - pcss-client/Models/REST/AppearanceMethod.cs | 67 - pcss-client/Models/REST/BestDateSearch.cs | 377 --- pcss-client/Models/REST/CourtActivities.cs | 19 - pcss-client/Models/REST/EquipmentBooking.cs | 81 - pcss-client/Models/REST/FileDetail.cs | 169 -- pcss-client/Models/REST/HearingRestriction.cs | 49 - pcss-client/Models/REST/JudicialCalendar.cs | 245 -- pcss-client/Models/REST/OfferedDate.cs | 19 - pcss-client/Models/REST/Person.cs | 475 ---- .../Models/REST/PersonalAvailability.cs | 47 - pcss-client/Models/REST/PoliceAgencyUpdate.cs | 14 - pcss-client/Models/REST/ScheduleEvent.cs | 343 --- pcss-client/Models/REST/ScheduleSlot.cs | 88 - pcss-client/Models/UserLoginInfo.cs | 11 +- pcss-client/pcss-client.csproj | 8 +- .../Controllers/CourtListControllerTests.cs | 16 +- .../Controllers/DashboardControllerTests.cs | 23 +- tests/api/Controllers/FilesControllerTests.cs | 40 +- web/src/components/calendar/Calendar.vue | 86 +- web/src/components/dashboard/Dashboard.vue | 393 ++- web/src/services/DashboardService.ts | 20 + web/src/services/LocationService.ts | 7 +- web/src/services/index.ts | 12 +- web/src/types/Activity.ts | 3 + web/src/types/CalendarDay.ts | 26 + web/src/types/CalendarSchedule.ts | 9 + web/src/types/JudicialCalendarActivity.ts | 22 + web/src/types/JudicialCalendarAssignment.ts | 28 + web/src/types/Location.ts | 5 + web/src/types/Presider.ts | 3 + web/src/types/TextValue.ts | 4 + web/src/types/index.ts | 7 + 57 files changed, 4018 insertions(+), 3095 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 pcss-client/Clients/JudicialCalendarServicesClient.cs delete mode 100644 pcss-client/Clients/JudicialCalendarsServicesClient.cs create mode 100644 pcss-client/Clients/LocationServicesClient.cs create mode 100644 pcss-client/Common/Constants.cs rename pcss-client/Models/{REST => }/CourtCalendar.cs (75%) delete mode 100644 pcss-client/Models/Infrastructure/Constants.cs create mode 100644 pcss-client/Models/JudicialCalendar.cs create mode 100644 pcss-client/Models/Models.cs delete mode 100644 pcss-client/Models/REST/ActivityAppearanceDetail.cs delete mode 100644 pcss-client/Models/REST/Adjudicator.cs delete mode 100644 pcss-client/Models/REST/AdjudicatorRestriction.cs delete mode 100644 pcss-client/Models/REST/AppearanceMethod.cs delete mode 100644 pcss-client/Models/REST/BestDateSearch.cs delete mode 100644 pcss-client/Models/REST/CourtActivities.cs delete mode 100644 pcss-client/Models/REST/EquipmentBooking.cs delete mode 100644 pcss-client/Models/REST/FileDetail.cs delete mode 100644 pcss-client/Models/REST/HearingRestriction.cs delete mode 100644 pcss-client/Models/REST/JudicialCalendar.cs delete mode 100644 pcss-client/Models/REST/OfferedDate.cs delete mode 100644 pcss-client/Models/REST/Person.cs delete mode 100644 pcss-client/Models/REST/PersonalAvailability.cs delete mode 100644 pcss-client/Models/REST/PoliceAgencyUpdate.cs delete mode 100644 pcss-client/Models/REST/ScheduleEvent.cs delete mode 100644 pcss-client/Models/REST/ScheduleSlot.cs create mode 100644 web/src/services/DashboardService.ts create mode 100644 web/src/types/Activity.ts create mode 100644 web/src/types/CalendarDay.ts create mode 100644 web/src/types/CalendarSchedule.ts create mode 100644 web/src/types/JudicialCalendarActivity.ts create mode 100644 web/src/types/JudicialCalendarAssignment.ts create mode 100644 web/src/types/Location.ts create mode 100644 web/src/types/Presider.ts create mode 100644 web/src/types/TextValue.ts create mode 100644 web/src/types/index.ts diff --git a/.github/workflows/publish-infra.yml b/.github/workflows/publish-infra.yml index 52cbe3d7..f790848b 100644 --- a/.github/workflows/publish-infra.yml +++ b/.github/workflows/publish-infra.yml @@ -87,13 +87,13 @@ jobs: - name: Terraform Init id: init run: | - terraform init -input=false -backend-config=backend.tfvars -var-file=${{ inputs.environment }}.tfvars + terraform init -input=false -backend-config=backend.tfvars -var-file=${{ env.environment }}.tfvars working-directory: ${{ env.WORKING_DIRECTORY }} - name: Terraform Plan (Initial Stack) id: plan-initial run: | - terraform plan -target=module.initial -no-color -input=false -var-file=${{ inputs.environment }}.tfvars + terraform plan -target=module.initial -no-color -input=false -var-file=${{ env.environment }}.tfvars continue-on-error: true working-directory: ${{ env.WORKING_DIRECTORY }} @@ -103,7 +103,7 @@ jobs: - name: Terraform Apply (Initial Stack) run: | - terraform apply -target=module.initial --auto-approve -input=false -var-file=${{ inputs.environment }}.tfvars + terraform apply -target=module.initial --auto-approve -input=false -var-file=${{ env.environment }}.tfvars working-directory: ${{ env.WORKING_DIRECTORY }} - name: Log in to the GHCR @@ -144,7 +144,7 @@ jobs: shell: bash run: | IMAGE_TAG=${{ env.DUMMY_IMAGE_NAME }} - REPOSITORY_NAME=${{ vars.APP_NAME }}-app-repo-${{ inputs.environment }} + REPOSITORY_NAME=${{ vars.APP_NAME }}-app-repo-${{ env.environment }} IMAGE_EXISTS=$(aws ecr describe-images --repository-name $REPOSITORY_NAME --query "imageDetails[?contains(imageTags, '$IMAGE_TAG')]" --output text) @@ -169,7 +169,7 @@ jobs: shell: bash run: | IMAGE_TAG=${{ env.DUMMY_IMAGE_NAME }} - REPOSITORY_NAME=${{ vars.APP_NAME }}-lambda-repo-${{ inputs.environment }} + REPOSITORY_NAME=${{ vars.APP_NAME }}-lambda-repo-${{ env.environment }} IMAGE_EXISTS=$(aws ecr describe-images --repository-name $REPOSITORY_NAME --query "imageDetails[?contains(imageTags, '$IMAGE_TAG')]" --output text) @@ -192,7 +192,7 @@ jobs: - name: Terraform Plan (Main Stack) id: plan-main run: | - terraform plan -no-color -input=false -var-file=${{ inputs.environment }}.tfvars + terraform plan -no-color -input=false -var-file=${{ env.environment }}.tfvars continue-on-error: true working-directory: ${{ env.WORKING_DIRECTORY }} @@ -202,5 +202,5 @@ jobs: - name: Terraform Apply (Main Stack) run: | - terraform apply --auto-approve -input=false -var-file=${{ inputs.environment }}.tfvars + terraform apply --auto-approve -input=false -var-file=${{ env.environment }}.tfvars working-directory: ${{ env.WORKING_DIRECTORY }} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 00000000..566ca260 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "sonarlint.connectedMode.project": { + "connectionId": "bcgov-sonarcloud", + "projectKey": "bcgov_jasper" + } +} diff --git a/api/Controllers/DashboardController.cs b/api/Controllers/DashboardController.cs index 4cf3e63c..2e7008a7 100644 --- a/api/Controllers/DashboardController.cs +++ b/api/Controllers/DashboardController.cs @@ -4,13 +4,12 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Scv.Api.Helpers.Extensions; -using Scv.Api.Infrastructure.Authorization; -using Scv.Api.Services; -using Scv.Api.Models.Lookup; -using PCSS.Models.REST.JudicialCalendar; +using Microsoft.VisualBasic; using Scv.Api.Helpers; +using Scv.Api.Infrastructure.Authorization; using Scv.Api.Models.Calendar; +using Scv.Api.Models.Lookup; +using Scv.Api.Services; namespace Scv.Api.Controllers { @@ -20,67 +19,117 @@ namespace Scv.Api.Controllers public class DashboardController : ControllerBase { #region Variables - private readonly LocationService _locationService; + private readonly JudicialCalendarService _judicialCalendarService; #endregion Variables #region Constructor - public DashboardController(LocationService locationService, JudicialCalendarService judicialCalendarService) + + public DashboardController(JudicialCalendarService judicialCalendarService) { - _locationService = locationService; _judicialCalendarService = judicialCalendarService; } + #endregion Constructor /// - /// Returns list of assignemnts for a given month and year for current user. + /// Retrieves the events for the specified month. /// /// selected year /// selected month - /// selected month + /// List of location ids /// - // [HttpGet("monthly-schedule/{year}/{month}")] [HttpGet] - [Route("monthly-schedule/{year}/{month}")] - public async Task> GetMonthlySchedule(int year, int month, [FromQuery] string locationId = "") + [Route("monthly-schedule")] + public async Task> GetMonthlySchedule([FromQuery] int year, [FromQuery] int month, [FromQuery] string locationIds = "") { try { + #region Calculate Start and End Dates of the calendar month + + // could be replaced if found on a front end in calendar properties + var startMonthDifference = GetWeekFirstDayDifference(month, year); + var endMonthDifference = GetLastDayOfMonthWeekDifference(month, year); // first day of the month and a week before the first day of the month - var startDate = new DateTime(year, month, 1).AddDays(-7); + var startDate = new DateTime(year, month, 1, 0, 0, 0, DateTimeKind.Local).AddDays(-startMonthDifference); // last day of the month and a week after the last day of the month - var endDate = startDate.AddMonths(1).AddDays(-1).AddDays(7); - var calendars = await _judicialCalendarService.JudicialCalendarsGetAsync(locationId, startDate, endDate); + var endDate = new DateTime(year, month, 1, 0, 0, 0, DateTimeKind.Local).AddMonths(1).AddDays(6).AddDays(endMonthDifference); + #endregion Calculate Start and End Dates + CalendarSchedule calendarSchedule = new CalendarSchedule(); + var isMySchedule = string.IsNullOrWhiteSpace(locationIds); + + // Test Judge Id + var judgeId = 190; + + // Get "Judge's Calendar" when no LocationIds provided. Otherwise, get all judge's calendar for the provided LocationIds. + var calendars = isMySchedule + ? [await _judicialCalendarService.GetJudgeCalendarAsync(judgeId, startDate, endDate)] + : await _judicialCalendarService.JudicialCalendarsGetAsync(locationIds, startDate, endDate); + + // check if the calendar is empty and return empty schedule - do we need it at all? + if (calendars == null) + { + return Ok(calendarSchedule); + } var calendarDays = MapperHelper.CalendarToDays(calendars.ToList()); if (calendarDays == null) { - calendarSchedule.Schedule = new List(); + calendarSchedule.Schedule = new List(); } - else + else + { + if (isMySchedule) + calendarDays = calendarDays.Where(t => t.Assignment != null && t.Assignment.JudgeId == judgeId).ToList(); calendarSchedule.Schedule = calendarDays; + } - calendarSchedule.Presiders = calendars.Where(t => t.IsPresider).Select(presider => new FilterCode - { - Text = $"{presider.RotaInitials} - {presider.Name}", - Value = $"{presider.ParticipantId}", - }).DistinctBy(t => t.Value).OrderBy(x => x.Value).ToList(); - - var assignmentsList = calendars.Where(t => t.IsPresider) - .Where(t => t.Days?.Count > 0) - .SelectMany(t => t.Days).Where(day => day.Assignment != null && (day.Assignment.ActivityAm !=null || day.Assignment.ActivityPm != null)) - .Select(day => day.Assignment) - .ToList(); - var activitiesList = assignmentsList - .SelectMany(t => new[] { t.ActivityAm, t.ActivityPm }) - .Where(activity => activity != null) + calendarSchedule.Presiders = calendars + .Where(t => t.IsPresider && t.Days.Any()) + .Select(presider => new FilterCode + { + Text = $"{presider.RotaInitials} - {presider.Name}", + Value = $"{presider.Days[0].JudgeId}", + }) + .DistinctBy(t => t.Value) + .OrderBy(x => x.Value) + .ToList(); + + // check if it should isJudge or IsPresider + var assignmentsListFull = calendars.Where(t => t.IsPresider) + .Where(t => t.Days?.Count > 0) + .SelectMany(t => t.Days).Where(day => day.Assignment != null) + .Select(day => day.Assignment) + .ToList(); + + var activitiesList = assignmentsListFull + .Where(activity => activity != null && activity.ActivityCode != null && activity.ActivityDescription != null) .Select(activity => new FilterCode { Text = activity.ActivityDescription, Value = activity.ActivityCode - }) + }).ToList(); + + + // merging activities information form activityAm and activityPm, and assignmentsListFull + var assignmentsList = calendars.Where(t => t.IsPresider) + .Where(t => t.Days?.Count > 0) + .SelectMany(t => t.Days).Where(day => day.Assignment != null && (day.Assignment.ActivityAm != null || day.Assignment.ActivityPm != null)) + .Select(day => day.Assignment) + .ToList(); + + activitiesList.AddRange(assignmentsList + .SelectMany(t => new[] { t.ActivityAm, t.ActivityPm }) + .Where(activity => activity != null && activity.ActivityCode != null && activity.ActivityDescription != null) + .Select(activity => new FilterCode + { + Text = activity.ActivityDescription, + Value = activity.ActivityCode + })); + + activitiesList = activitiesList .DistinctBy(t => t.Value) .OrderBy(x => x.Text) .ToList(); @@ -90,38 +139,45 @@ public async Task> GetMonthlySchedule(int year, i } catch (Exception ex) { + Console.WriteLine(ex.ToString()); + // Log the exception return StatusCode(500, "Internal server error"); } } - //public async Task>> LocationList(int a) - /// - /// Provides locations. - /// - /// IEnumerable{FilterCode} - [HttpGet] - [Route("locations")] - public async Task>> LocationList() + #region Helpers + + //calcluate the difference between the first day of the month and the first day of the week for the calendar + + private static int GetWeekFirstDayDifference(int month, int year) { - try - { - var locations = await _locationService.GetLocations(); - var locationList = locations.Where(t => t.Flex?.Equals("Y") == true).Select(location => new FilterCode - { - Text = location.LongDesc, - Value = location.ShortDesc - }).OrderBy(x => x.Text); + var firstDayOfMonth = new DateTime(year, month, 1, 0, 0, 0, DateTimeKind.Local); + return (int)firstDayOfMonth.DayOfWeek - (int)FirstDayOfWeek.Sunday + 1; + } - return Ok(locationList); - } - catch (Exception ex) + private static int GetLastDayOfMonthWeekDifference(int month, int year) + { + var lastDayOfMonth = new DateTime(year, month, 1, 0, 0, 0, DateTimeKind.Local).AddMonths(1).AddDays(-1); + int difference = (int)FirstDayOfWeek.Saturday - (int)lastDayOfMonth.DayOfWeek; + // calendar seems to add a week if the difference is 0 + if (difference <= 0) + difference = 7 + difference; + // if calendar is 5 weeks we need to add a week + var firstDayOfMonth = new DateTime(year, month, 1, 0, 0, 0, DateTimeKind.Local); + var totalDays = (lastDayOfMonth - firstDayOfMonth).Days + 1; + var fullWeeks = totalDays / 7; + if (totalDays % 7 > 0) { - // Log the exception - return StatusCode(500, "Internal server error" + ex.Message); + fullWeeks++; } - } - } + if (fullWeeks == 5) + _ = difference + 7; -} \ No newline at end of file + return difference; + } + + #endregion Helpers + } +} diff --git a/api/Controllers/LocationController.cs b/api/Controllers/LocationController.cs index ff2db7c9..82c12ef7 100644 --- a/api/Controllers/LocationController.cs +++ b/api/Controllers/LocationController.cs @@ -44,10 +44,24 @@ public async Task>> GetLocationsAndCourtRooms() foreach (var location in locationList) { location.CourtRooms = courtRooms.Where(cr => cr.Flex == location.LocationId && (cr.ShortDesc == "CRT" || cr.ShortDesc == "HGR")) - .Select(cr => new CourtRoom {LocationId = cr.Flex, Room = cr.Code, Type = cr.ShortDesc}).ToList(); + .Select(cr => new CourtRoom { LocationId = cr.Flex, Room = cr.Code, Type = cr.ShortDesc }).ToList(); } return Ok(locationList); } + + + /// + /// Returns the list of locations used in PCSS + /// + /// PCSS Locations + [HttpGet] + [Route("pcss")] + public async Task>> GetPCSSLocations() + { + var locations = await _locationService.GetPCSSLocations(); + + return Ok(locations); + } } } \ No newline at end of file diff --git a/api/Helpers/MapperHelper.cs b/api/Helpers/MapperHelper.cs index 802ee4fa..fe27ed8e 100644 --- a/api/Helpers/MapperHelper.cs +++ b/api/Helpers/MapperHelper.cs @@ -1,9 +1,9 @@ -using AutoMapper; -using System.Collections.Generic; -using Scv.Api.Models.Calendar; -using Scv.Api.Mappers; -using PCSS.Models.REST.JudicialCalendar; +using System.Collections.Generic; using System.Linq; +using AutoMapper; +using PCSSCommon.Models; +using Scv.Api.Mappers; +using Scv.Api.Models.Calendar; namespace Scv.Api.Helpers { diff --git a/api/Infrastructure/ServiceCollectionExtensions.cs b/api/Infrastructure/ServiceCollectionExtensions.cs index be117653..db3c30de 100644 --- a/api/Infrastructure/ServiceCollectionExtensions.cs +++ b/api/Infrastructure/ServiceCollectionExtensions.cs @@ -1,25 +1,26 @@ using System; +using System.Net.Http; +using System.Reflection; +using JCCommon.Clients.FileServices; +using JCCommon.Clients.LocationServices; +using JCCommon.Clients.LookupCodeServices; +using JCCommon.Clients.UserService; +using Mapster; +using MapsterMapper; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Scv.Api.Helpers; using Scv.Api.Helpers.Extensions; using Scv.Api.Infrastructure.Authorization; -using Mapster; -using MapsterMapper; -using System.Reflection; -using JCCommon.Clients.FileServices; -using JCCommon.Clients.LocationServices; -using JCCommon.Clients.LookupCodeServices; -using JCCommon.Clients.UserService; using Scv.Api.Infrastructure.Encryption; +using Scv.Api.Infrastructure.Handler; using Scv.Api.Services; using Scv.Api.Services.Files; using BasicAuthenticationHeaderValue = JCCommon.Framework.BasicAuthenticationHeaderValue; -using Scv.Api.Infrastructure.Handler; -using PCSSClient.Clients.JudicialCalendarsServices; -using PCSSClient.Clients.CourtCalendarsServices; - +using PCSSCourtCalendarServices = PCSSCommon.Clients.CourtCalendarServices; +using PCSSJudicialCalendarServices = PCSSCommon.Clients.JudicialCalendarServices; +using PCSSLocationServices = PCSSCommon.Clients.LocationServices; namespace Scv.Api.Infrastructure { @@ -44,39 +45,33 @@ public static IServiceCollection AddMapster(this IServiceCollection services, Ac public static IServiceCollection AddHttpClientsAndScvServices(this IServiceCollection services, IConfiguration configuration) { services.AddTransient(); - services.AddHttpClient(client => - { - client.Timeout = TimeSpan.FromMinutes(5); - client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( - configuration.GetNonEmptyValue("FileServicesClient:Username"), - configuration.GetNonEmptyValue("FileServicesClient:Password")); - client.BaseAddress = new Uri(configuration.GetNonEmptyValue("FileServicesClient:Url").EnsureEndingForwardSlash()); - }).AddHttpMessageHandler(); - - services.AddHttpClient(client => - { - client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( - configuration.GetNonEmptyValue("LookupServicesClient:Username"), - configuration.GetNonEmptyValue("LookupServicesClient:Password")); - client.BaseAddress = new Uri(configuration.GetNonEmptyValue("LookupServicesClient:Url").EnsureEndingForwardSlash()); - }).AddHttpMessageHandler(); - services.AddHttpClient(client => - { - client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( - configuration.GetNonEmptyValue("LocationServicesClient:Username"), - configuration.GetNonEmptyValue("LocationServicesClient:Password")); - client.BaseAddress = new Uri(configuration.GetNonEmptyValue("LocationServicesClient:Url").EnsureEndingForwardSlash()); - }).AddHttpMessageHandler(); + // JC Interface + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "FileServicesClient", 300); }) + .AddHttpMessageHandler(); + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "LookupServicesClient"); }) + .AddHttpMessageHandler(); + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "LocationServicesClient"); }) + .AddHttpMessageHandler(); + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "UserServicesClient"); }) + .AddHttpMessageHandler(); - services.AddHttpClient(client => - { - client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( - configuration.GetNonEmptyValue("UserServicesClient:Username"), - configuration.GetNonEmptyValue("UserServicesClient:Password")); - client.BaseAddress = new Uri(configuration.GetNonEmptyValue("UserServicesClient:Url") - .EnsureEndingForwardSlash()); - }).AddHttpMessageHandler(); + // PCSS + services + .AddHttpClient( + typeof(PCSSLocationServices.LocationServicesClient).FullName, + (client) => { ConfigureHttpClient(client, configuration, "PCSS"); }) + .AddHttpMessageHandler(); + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "PCSS"); }) + .AddHttpMessageHandler(); + services + .AddHttpClient(client => { ConfigureHttpClient(client, configuration, "PCSS"); }) + .AddHttpMessageHandler(); services.AddHttpContextAccessor(); services.AddTransient(s => s.GetService().HttpContext.User); @@ -89,10 +84,35 @@ public static IServiceCollection AddHttpClientsAndScvServices(this IServiceColle services.AddSingleton(); services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - return services; } + + private static void ConfigureHttpClient(HttpClient client, IConfiguration configuration, string prefix, int timeoutInSecs = 100) + { + // Comment out for now until the pattern for creating handlers has been finalized so that it would be easier + // to redirect network traffic between WSGW (local) and AWS API Gateway (dev, test and prod). + + // var apigwUrl = configuration.GetValue("AWS_API_GATEWAY_URL"); + // var apigwKey = configuration.GetValue("AWS_API_GATEWAY_API_KEY"); + // var authorizerKey = configuration.GetValue("AuthorizerKey"); + + client.Timeout = TimeSpan.FromSeconds(timeoutInSecs); + + // Defaults to BC Gov API if any config setting is missing + // if (string.IsNullOrWhiteSpace(apigwUrl) || string.IsNullOrWhiteSpace(apigwKey) || string.IsNullOrWhiteSpace(authorizerKey)) + // { + client.DefaultRequestHeaders.Authorization = new BasicAuthenticationHeaderValue( + configuration.GetNonEmptyValue($"{prefix}:Username"), + configuration.GetNonEmptyValue($"{prefix}:Password")); + client.BaseAddress = new Uri(configuration.GetNonEmptyValue($"{prefix}:Url").EnsureEndingForwardSlash()); + //} + // Requests are routed to JASPER's API Gateway. Lambda functions are triggered by these requests and are responsible for communicating with the BC Gov API. + // else + // { + // client.BaseAddress = new Uri(apigwUrl.EnsureEndingForwardSlash()); + // client.DefaultRequestHeaders.Add(X_APIGW_KEY_HEADER, apigwKey); + // client.DefaultRequestHeaders.Add(X_ORIGIN_VERIFY_HEADER, authorizerKey); + // } + } } } diff --git a/api/Mappers/Mapping.cs b/api/Mappers/Mapping.cs index d551bbd9..a236c2c6 100644 --- a/api/Mappers/Mapping.cs +++ b/api/Mappers/Mapping.cs @@ -1,12 +1,7 @@ -using System; -using Scv.Api.Controllers; -using Scv.Api.Services; -using Scv.Api.Models; -using static System.Runtime.InteropServices.JavaScript.JSType; -using System.Collections.Generic; -using PCSS.Models.REST.JudicialCalendar; -using Scv.Api.Models.Calendar; +using System.Collections.Generic; using System.Linq; +using PCSSCommon.Models; +using Scv.Api.Models.Calendar; namespace Scv.Api.Mappers { @@ -16,14 +11,16 @@ public MappingProfile() { CreateMap(); - CreateMap>() .ConvertUsing((src, dest, context) => - src.Days.Select(b => { - var c = context.Mapper.Map(b); - c.RotaInitials = src.RotaInitials; - return c; - }).ToList()); + src.Days + .Select(b => + { + var c = context.Mapper.Map(b); + c.RotaInitials = src.RotaInitials; + return c; + }) + .ToList()); } } diff --git a/api/Models/Calendar/CalendarDay.cs b/api/Models/Calendar/CalendarDay.cs index 142ac3b5..93b1225e 100644 --- a/api/Models/Calendar/CalendarDay.cs +++ b/api/Models/Calendar/CalendarDay.cs @@ -1,14 +1,14 @@ -using PCSS.Models.REST.JudicialCalendar; -using System; +using System; +using PCSSCommon.Models; namespace Scv.Api.Models.Calendar { public class CalendarDay : JudicialCalendarDay { public string RotaInitials { get; set; } - public DateTime Start - { - get + public DateTime Start + { + get { return DateTime.ParseExact(base.Date, "dd-MMM-yyyy", null).AddHours(8); } @@ -25,7 +25,7 @@ public bool showPM { get { - if(showPMLocation || (this.Assignment?.ActivityAm?.CourtRoomCode != this.Assignment?.ActivityPm?.CourtRoomCode) + if (showPMLocation || (this.Assignment?.ActivityAm?.CourtRoomCode != this.Assignment?.ActivityPm?.CourtRoomCode) || (this.Assignment?.ActivityAm?.ActivityDescription != this.Assignment?.ActivityPm?.ActivityDescription)) return true; else @@ -38,7 +38,7 @@ public bool showPMLocation { if (this.Assignment?.ActivityPm != null && this.Assignment?.ActivityAm?.LocationName != this.Assignment?.ActivityPm?.LocationName) return true; - else + else return false; } } diff --git a/api/Models/Calendar/CalendarSchedule.cs b/api/Models/Calendar/CalendarSchedule.cs index 2f61c550..b7e53346 100644 --- a/api/Models/Calendar/CalendarSchedule.cs +++ b/api/Models/Calendar/CalendarSchedule.cs @@ -1,12 +1,12 @@ -using Scv.Api.Models.Lookup; using System.Collections.Generic; +using Scv.Api.Models.Lookup; namespace Scv.Api.Models.Calendar { public class CalendarSchedule { - public List Schedule { get; set; } - public List Activities { get; set; } - public List Presiders { get; set; } + public List Schedule { get; set; } + public List Activities { get; set; } + public List Presiders { get; set; } } } \ No newline at end of file diff --git a/api/Services/JudicialCalendarService.cs b/api/Services/JudicialCalendarService.cs index a5cf3146..cabf4f39 100644 --- a/api/Services/JudicialCalendarService.cs +++ b/api/Services/JudicialCalendarService.cs @@ -1,16 +1,14 @@ -using JCCommon.Clients.LocationServices; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; using LazyCache; using Microsoft.Extensions.Configuration; using Newtonsoft.Json.Serialization; -using PCSSClient.Clients.JudicialCalendarsServices; +using PCSSCommon.Clients.JudicialCalendarServices; +using PCSSCommon.Models; using Scv.Api.Helpers; using Scv.Api.Helpers.ContractResolver; -using System; -using System.Linq; -using System.Threading.Tasks; -using PCSS.Models.REST.JudicialCalendar; -using System.Collections.Generic; -using System.Threading; +using PCSSConstants = PCSSCommon.Common.Constants; namespace Scv.Api.Services { @@ -23,7 +21,7 @@ public class JudicialCalendarService private readonly IAppCache _cache; private readonly IConfiguration _configuration; - private JudicialCalendarsServicesClient _judicialCalendarsClient { get; } + private JudicialCalendarServicesClient _judicialCalendarsClient { get; } #endregion Variables @@ -33,13 +31,13 @@ public class JudicialCalendarService #region Constructor - public JudicialCalendarService(IConfiguration configuration, JudicialCalendarsServicesClient judicialCalendarsClient, + public JudicialCalendarService(IConfiguration configuration, JudicialCalendarServicesClient judicialCalendarClient, IAppCache cache) { _configuration = configuration; - _judicialCalendarsClient = judicialCalendarsClient; + _judicialCalendarsClient = judicialCalendarClient; _cache = cache; - _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = int.Parse(configuration.GetNonEmptyValue("Caching:LocationExpiryMinutes")) * 60; + _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = int.Parse(_configuration.GetNonEmptyValue("Caching:LocationExpiryMinutes")) * 60; SetupLocationServicesClient(); } @@ -47,11 +45,28 @@ public JudicialCalendarService(IConfiguration configuration, JudicialCalendarsSe #region Collection Methods - public async Task> JudicialCalendarsGetAsync(string locationId, DateTime startDate, DateTime endDate) + public async Task> JudicialCalendarsGetAsync(string locationIds, DateTime startDate, DateTime endDate) { - var judicialCalendars = await _judicialCalendarsClient.JudicialCalendarsGetAsync(locationId, startDate, endDate, CancellationToken.None); + var judicialCalendars = await _judicialCalendarsClient.ReadCalendarsV2Async( + locationIds, + startDate.ToString(PCSSConstants.DATE_FORMAT), + endDate.ToString(PCSSConstants.DATE_FORMAT), + string.Empty + ); + + return judicialCalendars.Calendars; + } - return judicialCalendars; + /// + /// Retrieves the Judge's calendar based from start and end date. + /// + /// The Judge's id + /// The start date + /// The end date + /// Judge's calendar based from start and end date + public async Task GetJudgeCalendarAsync(int judgeId, DateTime startDate, DateTime endDate) + { + return await _judicialCalendarsClient.ReadCalendarAsync(judgeId, startDate.ToString(PCSSConstants.DATE_FORMAT), endDate.ToString(PCSSConstants.DATE_FORMAT)); } diff --git a/api/Services/LocationService.cs b/api/Services/LocationService.cs index cc29acb9..2fd67dae 100644 --- a/api/Services/LocationService.cs +++ b/api/Services/LocationService.cs @@ -1,13 +1,15 @@ -using JCCommon.Clients.LocationServices; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using JCCommon.Clients.LocationServices; using LazyCache; using Microsoft.Extensions.Configuration; using Newtonsoft.Json.Serialization; using Scv.Api.Helpers; using Scv.Api.Helpers.ContractResolver; -using System; -using System.Linq; -using System.Threading.Tasks; -using CodeValue = System.Collections.Generic.ICollection; +using Scv.Api.Models.Location; +using PCSSLocationServices = PCSSCommon.Clients.LocationServices; namespace Scv.Api.Services { @@ -21,6 +23,7 @@ public class LocationService private readonly IAppCache _cache; private readonly IConfiguration _configuration; private readonly LocationServicesClient _locationClient; + private readonly PCSSLocationServices.LocationServicesClient _pcssLocationServiceClient; #endregion Variables @@ -30,13 +33,18 @@ public class LocationService #region Constructor - public LocationService(IConfiguration configuration, LocationServicesClient locationServicesClient, - IAppCache cache) + public LocationService( + IConfiguration configuration, + LocationServicesClient locationServicesClient, + PCSSLocationServices.LocationServicesClient pcssLocationServiceClient, + IAppCache cache + ) { _configuration = configuration; _locationClient = locationServicesClient; + _pcssLocationServiceClient = pcssLocationServiceClient; _cache = cache; - _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = int.Parse(configuration.GetNonEmptyValue("Caching:LocationExpiryMinutes")) * 60; + _cache.DefaultCachePolicy.DefaultCacheDurationSeconds = int.Parse(_configuration.GetNonEmptyValue("Caching:LocationExpiryMinutes")) * 60; SetupLocationServicesClient(); } @@ -44,12 +52,31 @@ public LocationService(IConfiguration configuration, LocationServicesClient loca #region Collection Methods - public async Task GetLocations() => await GetDataFromCache("Locations", async () => await _locationClient.LocationsGetAsync(null, true, true)); + public async Task> GetPCSSLocations() => await GetDataFromCache("PCSSLocations", async () => + { + var locations = await _pcssLocationServiceClient.GetLocationsAsync(); - public async Task GetCourtRooms() + var mappedLocations = locations + .Where(l => l.ActiveYn == "Y") + .Select(l => new Location + { + LocationId = l.LocationId.ToString(), + Name = l.LocationNm, + Code = l.LocationSNm + }) + .OrderBy(l => l.Name) + .ToList(); + + return mappedLocations; + }); + + public async Task> GetLocations() => await GetDataFromCache("Locations", async () => await _locationClient.LocationsGetAsync(null, true, true)); + + public async Task> GetCourtRooms() { return await GetDataFromCache($"Locations-Rooms", async () => await _locationClient.LocationsRoomsGetAsync()); } + #endregion Collection Methods #region Lookup Methods @@ -76,9 +103,9 @@ private async Task GetDataFromCache(string key, Func> fetchFunctio return await _cache.GetOrAddAsync(key, async () => await fetchFunction.Invoke()); } - private string FindLongDescriptionFromCode(CodeValue lookupCodes, string code) => lookupCodes.FirstOrDefault(lookupCode => lookupCode.Code == code)?.LongDesc; + private string FindLongDescriptionFromCode(ICollection lookupCodes, string code) => lookupCodes.FirstOrDefault(lookupCode => lookupCode.Code == code)?.LongDesc; - private string FindShortDescriptionFromCode(CodeValue lookupCodes, string code) => lookupCodes.FirstOrDefault(lookupCode => lookupCode.Code == code)?.ShortDesc; + private string FindShortDescriptionFromCode(ICollection lookupCodes, string code) => lookupCodes.FirstOrDefault(lookupCode => lookupCode.Code == code)?.ShortDesc; private void SetupLocationServicesClient() { diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml index 0703d42d..89a98709 100644 --- a/docker/docker-compose.yaml +++ b/docker/docker-compose.yaml @@ -67,9 +67,12 @@ services: - SplunkCollectorUrl=${SplunkCollectorUrl} - SplunkCollectorId=${SplunkCollectorId} - SplunkToken=${SplunkToken} - # - AWS_API_GATEWAY_URL=${AWS_API_GATEWAY_URL} - # - AWS_API_GATEWAY_API_KEY=${AWS_API_GATEWAY_API_KEY} - # - AuthorizerKey=${AuthorizerKey} + - PCSS__Url=${PCSS_URL} + - PCSS__Username=${PCSS_USERNAME} + - PCSS__Password=${PCSS_PASSWORD} + - AWS_API_GATEWAY_URL=${AWS_API_GATEWAY_URL} + - AWS_API_GATEWAY_API_KEY=${AWS_API_GATEWAY_API_KEY} + - AuthorizerKey=${AuthorizerKey} ports: - 5000:5000 volumes: diff --git a/docker/openshift/sync-secrets.sh b/docker/openshift/sync-secrets.sh index 5f930432..5afae1f7 100644 --- a/docker/openshift/sync-secrets.sh +++ b/docker/openshift/sync-secrets.sh @@ -15,6 +15,7 @@ secret_keys="\ lookup_services_client \ misc \ mtls_cert \ + pcss \ request \ splunk \ user_services_client" diff --git a/pcss-client/Clients/CourtCalendarsServicesClient.cs b/pcss-client/Clients/CourtCalendarsServicesClient.cs index 76d25bc2..c2ee4329 100644 --- a/pcss-client/Clients/CourtCalendarsServicesClient.cs +++ b/pcss-client/Clients/CourtCalendarsServicesClient.cs @@ -1,80 +1,287 @@ +//---------------------- +// +// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// +//---------------------- +#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null" -namespace PCSSClient.Clients.CourtCalendarsServices -{ - using System = global::System; - using PCSS.Models.REST.CourtCalendar; - +using PCSSCommon.Models; - public partial class CourtCalendarsServicesClient +namespace PCSSCommon.Clients.CourtCalendarServices +{ + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class CourtCalendarClientServicesClient { - private HttpClient _httpClient; - private Lazy _settings; + private System.Net.Http.HttpClient _httpClient; + private static System.Lazy _settings = new System.Lazy(CreateSerializerSettings, true); + private Newtonsoft.Json.JsonSerializerSettings _instanceSettings; - public CourtCalendarsServicesClient(System.Net.Http.HttpClient httpClient) +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + public CourtCalendarClientServicesClient(System.Net.Http.HttpClient httpClient) +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. { _httpClient = httpClient; - _settings = new System.Lazy(CreateSerializerSettings); + Initialize(); } - private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() + + private static Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() { var settings = new Newtonsoft.Json.JsonSerializerSettings(); UpdateJsonSerializerSettings(settings); return settings; } - public Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } } + protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings.Value; } } + + static partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); - partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); + partial void Initialize(); - public async Task> CourtCalendarLocationsGetAsync(string locationId, DateTime startDate, DateTime endDate, System.Threading.CancellationToken cancellationToken) + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); + partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); + + /// OK + /// A server side error occurred. + public virtual System.Threading.Tasks.Task> GetCourtCalendarsForLocationsV2Async(string locationIds, string startDate, string endDate, string judiciaryTypes) { - // currently using locations and grabaing activities from there - // /api/v2/calendar/locations?locationIds=5,6,7,8,9,11&startDate=15-Mar-2019&endDate=15-Mar-2019 - - // this could give us the activities for a location, but returns error - // /api/calendar/locations/1/activities - //{ - // "responseCd": "500", - // "incidentID": "30737", - // "errors": "An unexpected error occurred. Please inform system support. Incident ID=30737" - // } - var locationIds = locationId.Split(',').ToList(); - -var courtCalendarLocations = new List(); - -if(locationIds.Contains("5871")) - courtCalendarLocations.Add( - new CourtCalendarLocation - { - Id = 5, - Name = "New Westminster Law Courts", - AgencyIdentifierCode = "3581", - RegionCode = "FRSR", - WorkAreaSequenceNo = 2, - IsActive = true, - IsGroupParent = true, - Days = new List + return GetCourtCalendarsForLocationsV2Async(locationIds, startDate, endDate, judiciaryTypes, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// OK + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task> GetCourtCalendarsForLocationsV2Async(string locationIds, string startDate, string endDate, string judiciaryTypes, System.Threading.CancellationToken cancellationToken) + { + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = new System.Net.Http.HttpRequestMessage()) + { + request_.Method = new System.Net.Http.HttpMethod("GET"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); + + var urlBuilder_ = new System.Text.StringBuilder(); + + // Operation Path: "api/v2/calendar/locations" + urlBuilder_.Append("api/v2/calendar/locations"); + urlBuilder_.Append('?'); + if (locationIds != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("locationIds")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(locationIds, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (startDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("startDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(startDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (endDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("endDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(endDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (judiciaryTypes != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("judiciaryTypes")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(judiciaryTypes, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + urlBuilder_.Length--; + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = new System.Collections.Generic.Dictionary>(); + foreach (var item_ in response_.Headers) + headers_[item_.Key] = item_.Value; + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + protected struct ObjectResponseResult { - new CourtCalendarDay + public ObjectResponseResult(T responseObject, string responseText) { - LocationId = 5871, - Date = DateTime.Parse("01-Nov-2024").ToString("yyyy-MM-dd"), - PcjRequired = 1, - PcjMinimum = 2, - PcjMaximum = 3, + this.Object = responseObject; + this.Text = responseText; } - }, - }); + public T Object { get; } + public string Text { get; } + } + public bool ReadResponseAsString { get; set; } - return courtCalendarLocations; + protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken) + { + if (response == null || response.Content == null) + { + return new ObjectResponseResult(default(T), string.Empty); + } + + if (ReadResponseAsString) + { + var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); + return new ObjectResponseResult(typedBody, responseText); + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); + } + } + else + { + try + { + using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) + using (var streamReader = new System.IO.StreamReader(responseStream)) + using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) + { + var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); + var typedBody = serializer.Deserialize(jsonTextReader); + return new ObjectResponseResult(typedBody, string.Empty); + } + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); + } + } } - } -} + private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo) + { + if (value == null) + { + return ""; + } + + if (value is System.Enum) + { + var name = System.Enum.GetName(value.GetType(), value); + if (name != null) + { + var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); + if (field != null) + { + var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) + as System.Runtime.Serialization.EnumMemberAttribute; + if (attribute != null) + { + return attribute.Value != null ? attribute.Value : name; + } + } + + var converted = System.Convert.ToString(System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(value.GetType()), cultureInfo)); + return converted == null ? string.Empty : converted; + } + } + else if (value is bool) + { + return System.Convert.ToString((bool)value, cultureInfo).ToLowerInvariant(); + } + else if (value is byte[]) + { + return System.Convert.ToBase64String((byte[])value); + } + else if (value is string[]) + { + return string.Join(",", (string[])value); + } + else if (value.GetType().IsArray) + { + var valueArray = (System.Array)value; + var valueTextArray = new string[valueArray.Length]; + for (var i = 0; i < valueArray.Length; i++) + { + valueTextArray[i] = ConvertToString(valueArray.GetValue(i), cultureInfo); + } + return string.Join(",", valueTextArray); + } + + var result = System.Convert.ToString(value, cultureInfo); + return result == null ? "" : result; + } + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : System.Exception + { + public int StatusCode { get; private set; } + public string Response { get; private set; } + public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) + : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) + { + StatusCode = statusCode; + Response = response; + Headers = headers; + } + + public override string ToString() + { + return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : ApiException + { + public TResult Result { get; private set; } + + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) + : base(message, statusCode, response, headers, innerException) + { + Result = result; + } + } + } +} diff --git a/pcss-client/Clients/JudicialCalendarServicesClient.cs b/pcss-client/Clients/JudicialCalendarServicesClient.cs new file mode 100644 index 00000000..e650eafc --- /dev/null +++ b/pcss-client/Clients/JudicialCalendarServicesClient.cs @@ -0,0 +1,389 @@ +//---------------------- +// +// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// +//---------------------- + +using Newtonsoft.Json.Serialization; +using PCSSCommon.Models; + +#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?' +#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null" +#pragma warning disable 8604 // Disable "CS8604 Possible null reference argument for parameter" +#pragma warning disable 8625 // Disable "CS8625 Cannot convert null literal to non-nullable reference type" + +namespace PCSSCommon.Clients.JudicialCalendarServices +{ + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class JudicialCalendarServicesClient + { + private System.Net.Http.HttpClient _httpClient; + private static System.Lazy _settings = new System.Lazy(CreateSerializerSettings, true); + private Newtonsoft.Json.JsonSerializerSettings _instanceSettings; + +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + public JudicialCalendarServicesClient(System.Net.Http.HttpClient httpClient) +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + { + _httpClient = httpClient; + Initialize(); + } + + private static Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() + { + var settings = new Newtonsoft.Json.JsonSerializerSettings(); + UpdateJsonSerializerSettings(settings); + return settings; + } + + public Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings.Value; } } + + static partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); + + partial void Initialize(); + + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); + partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); + + /// OK + /// A server side error occurred. + public virtual System.Threading.Tasks.Task ReadCalendarsV2Async(string locationIds, string startDate, string endDate, string judiciaryTypes) + { + return ReadCalendarsV2Async(locationIds, startDate, endDate, judiciaryTypes, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// OK + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task ReadCalendarsV2Async(string locationIds, string startDate, string endDate, string judiciaryTypes, System.Threading.CancellationToken cancellationToken) + { + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = new System.Net.Http.HttpRequestMessage()) + { + request_.Method = new System.Net.Http.HttpMethod("GET"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); + + var urlBuilder_ = new System.Text.StringBuilder(); + + // Operation Path: "api/v2/calendar/judges" + urlBuilder_.Append("api/v2/calendar/judges"); + urlBuilder_.Append('?'); + if (locationIds != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("locationIds")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(locationIds, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (startDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("startDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(startDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (endDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("endDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(endDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (judiciaryTypes != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("judiciaryTypes")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(judiciaryTypes, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + urlBuilder_.Length--; + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = new System.Collections.Generic.Dictionary>(); + foreach (var item_ in response_.Headers) + headers_[item_.Key] = item_.Value; + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + /// OK + /// A server side error occurred. + public virtual System.Threading.Tasks.Task ReadCalendarAsync(int judgeId, string startDate, string endDate) + { + return ReadCalendarAsync(judgeId, startDate, endDate, System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// OK + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task ReadCalendarAsync(int judgeId, string startDate, string endDate, System.Threading.CancellationToken cancellationToken) + { + if (judgeId == null) + throw new System.ArgumentNullException("judgeId"); + + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = new System.Net.Http.HttpRequestMessage()) + { + request_.Method = new System.Net.Http.HttpMethod("GET"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); + + var urlBuilder_ = new System.Text.StringBuilder(); + + // Operation Path: "api/calendar/judges/{judgeId}" + urlBuilder_.Append("api/calendar/judges/"); + urlBuilder_.Append(System.Uri.EscapeDataString(ConvertToString(judgeId, System.Globalization.CultureInfo.InvariantCulture))); + urlBuilder_.Append('?'); + if (startDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("startDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(startDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + if (endDate != null) + { + urlBuilder_.Append(System.Uri.EscapeDataString("endDate")).Append('=').Append(System.Uri.EscapeDataString(ConvertToString(endDate, System.Globalization.CultureInfo.InvariantCulture))).Append('&'); + } + urlBuilder_.Length--; + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = new System.Collections.Generic.Dictionary>(); + foreach (var item_ in response_.Headers) + headers_[item_.Key] = item_.Value; + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + protected struct ObjectResponseResult + { + public ObjectResponseResult(T responseObject, string responseText) + { + this.Object = responseObject; + this.Text = responseText; + } + + public T Object { get; } + + public string Text { get; } + } + + public bool ReadResponseAsString { get; set; } + + protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken) + { + if (response == null || response.Content == null) + { + return new ObjectResponseResult(default(T), string.Empty); + } + + if (ReadResponseAsString) + { + var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); + return new ObjectResponseResult(typedBody, responseText); + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); + } + } + else + { + try + { + using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) + using (var streamReader = new System.IO.StreamReader(responseStream)) + using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) + { + var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); + var typedBody = serializer.Deserialize(jsonTextReader); + return new ObjectResponseResult(typedBody, string.Empty); + } + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); + } + } + } + + private string ConvertToString(object value, System.Globalization.CultureInfo cultureInfo) + { + if (value == null) + { + return ""; + } + + if (value is System.Enum) + { + var name = System.Enum.GetName(value.GetType(), value); + if (name != null) + { + var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name); + if (field != null) + { + var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute)) + as System.Runtime.Serialization.EnumMemberAttribute; + if (attribute != null) + { + return attribute.Value != null ? attribute.Value : name; + } + } + + var converted = System.Convert.ToString(System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(value.GetType()), cultureInfo)); + return converted == null ? string.Empty : converted; + } + } + else if (value is bool) + { + return System.Convert.ToString((bool)value, cultureInfo).ToLowerInvariant(); + } + else if (value is byte[]) + { + return System.Convert.ToBase64String((byte[])value); + } + else if (value is string[]) + { + return string.Join(",", (string[])value); + } + else if (value.GetType().IsArray) + { + var valueArray = (System.Array)value; + var valueTextArray = new string[valueArray.Length]; + for (var i = 0; i < valueArray.Length; i++) + { + valueTextArray[i] = ConvertToString(valueArray.GetValue(i), cultureInfo); + } + return string.Join(",", valueTextArray); + } + + var result = System.Convert.ToString(value, cultureInfo); + return result == null ? "" : result; + } + + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : System.Exception + { + public int StatusCode { get; private set; } + + public string Response { get; private set; } + + public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } + + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) + : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) + { + StatusCode = statusCode; + Response = response; + Headers = headers; + } + + public override string ToString() + { + return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : ApiException + { + public TResult Result { get; private set; } + + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) + : base(message, statusCode, response, headers, innerException) + { + Result = result; + } + } + } +} + +#pragma warning restore 472 +#pragma warning restore 649 +#pragma warning restore 8604 +#pragma warning restore 8625 \ No newline at end of file diff --git a/pcss-client/Clients/JudicialCalendarsServicesClient.cs b/pcss-client/Clients/JudicialCalendarsServicesClient.cs deleted file mode 100644 index 663be35d..00000000 --- a/pcss-client/Clients/JudicialCalendarsServicesClient.cs +++ /dev/null @@ -1,189 +0,0 @@ - -namespace PCSSClient.Clients.JudicialCalendarsServices -{ - using PCSS.Models.REST.JudicialCalendar; - using System = global::System; - - public partial class JudicialCalendarsServicesClient - { - private HttpClient _httpClient; - private Lazy _settings; - - public JudicialCalendarsServicesClient(System.Net.Http.HttpClient httpClient) - { - _httpClient = httpClient; - _settings = new System.Lazy(CreateSerializerSettings); - } - private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() - { - var settings = new Newtonsoft.Json.JsonSerializerSettings(); - UpdateJsonSerializerSettings(settings); - return settings; - } - public Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } } - - partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); - - public async Task> JudicialCalendarsGetAsync(string locationId, DateTime startDate, DateTime endDate, System.Threading.CancellationToken cancellationToken) - { - // [HttpGet("api/calendar/judges")] - // public HttpResponseMessage ReadCalendars([FromUri] int[] locationIds = null, string startDate = null, string endDate = null) - - - var locationIds = locationId.Split(',').ToList(); - - var judicialCalendars = new List(); - var onlyMyEventsFlag = string.IsNullOrWhiteSpace(locationId); - - - if (locationIds.Contains("5871") || onlyMyEventsFlag) - { - judicialCalendars.Add( - new JudicialCalendar - { - Id = 2, - RotaInitials = "MRC", - ParticipantId = 12346, - HomeLocationId = 100, - HomeLocationName = "Home Location", - RegionCode = "RC1", - WorkAreaSequenceNo = 1, - Name = "Melissa R Collins", - PositionTypeCode = "PTC", - PositionTypeDescription = "Position Type", - PositionCode = "PC", - PositionDescription = "Position", - PositionStatusCode = "PSC", - PositionStatusDescription = "Position Status", - IsPresider = true, - IsJudge = true, - IsAdmin = false, - Days = new List - { - new JudicialCalendarDay - { - JudgeId = 12346, - Date = "30-Nov-2024", - Name = "Melissa R Collins", - PositionTypeCode = "PCJ", - PositionTypeDescription = "Provincial Court Judge", - PositionCode = "PJ", - PositionDescription = "Puisne Judge", - PositionStatusCode = "FT", - PositionStatusDescription = "FT", - IsPresider = true, - IsJudge = true, - IsAdmin = false, - Assignment = new JudicialCalendarAssignment - { - Id = 100128, - JudgeId = 12346, - LocationId = 0, - LocationName = "100 Mile House", - Date = "30-Nov-2024", - ActivityCode = "TR", - ActivityDisplayCode = "Trials", - ActivityDescription = "Trials", - IsCommentRequired = false, - ActivityClassCode = "NS", - ActivityClassDescription = "Non Sitting", - IsVideo = true, - Force = false, - ActivityAm = new JudicialCalendarActivity - { - ActivityCode = "TR", - ActivityDescription = "Trials", - ActivityDisplayCode = "Trials", - ActivityClassCode = "NS", - ActivityClassDescription = "Non Sitting", - LocationId = 5871, - LocationName = "100 Mile House", - CourtSittingCode = "AM", - CourtRoomCode = "009" - }, - ActivityPm = new JudicialCalendarActivity - { - ActivityCode = "TR", - ActivityDescription = "Trials", - ActivityDisplayCode = "Trials", - ActivityClassCode = "M", - ActivityClassDescription = "Mixed", - LocationId = 5871, - LocationName = "100 Mile House", - CourtSittingCode = "PM", - CourtRoomCode = "009" - } - } - }, - new JudicialCalendarDay - { - JudgeId = 12346, - Date = "28-Nov-2024", - Name = "Melissa R Collins", - PositionTypeCode = "PCJ", - PositionTypeDescription = "Provincial Court Judge", - PositionCode = "PJ", - PositionDescription = "Puisne Judge", - PositionStatusCode = "FT", - PositionStatusDescription = "FT", - IsPresider = true, - IsJudge = true, - IsAdmin = false, - Assignment = new JudicialCalendarAssignment - { - Id = 100125, - JudgeId = 12346, - LocationId = 0, - LocationName = "100 Mile House", - Date = "28-Nov-2024", - ActivityCode = "TR", - ActivityDisplayCode = "Trials", - ActivityDescription = "Trials", - IsCommentRequired = false, - ActivityClassCode = "NS", - ActivityClassDescription = "Non Sitting", - IsVideo = false, - Force = false, - ActivityAm = new JudicialCalendarActivity - { - - ActivityCode = "TR", - ActivityDescription = "Trials", - ActivityDisplayCode = "Trials", - ActivityClassCode = "NS", - ActivityClassDescription = "Non Sitting", - - LocationId = 5871, - LocationName = "100 Mile House", - CourtSittingCode = "AM", - CourtRoomCode = "009" - }, - ActivityPm = new JudicialCalendarActivity - { - ActivityCode = "A", - ActivityDescription = "CivApp", - ActivityDisplayCode = "CivApp", - ActivityClassCode = "M", - ActivityClassDescription = "Mixed", - LocationId = 5871, - LocationName = "100 Mile House", - CourtRoomCode = "009", - CourtSittingCode = "PM" - } - - } - } - } - } - ); - - } - - judicialCalendars = judicialCalendars.Where(t => t.Days.Count > 0).ToList(); - if (onlyMyEventsFlag) - judicialCalendars = judicialCalendars.Where(t => t.RotaInitials == "MRC").ToList(); - - return judicialCalendars; - } - } -} diff --git a/pcss-client/Clients/LocationServicesClient.cs b/pcss-client/Clients/LocationServicesClient.cs new file mode 100644 index 00000000..5094297b --- /dev/null +++ b/pcss-client/Clients/LocationServicesClient.cs @@ -0,0 +1,215 @@ +//---------------------- +// +// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// +//---------------------- + +#pragma warning disable 649 // Disable "CS0649 Field is never assigned to, and will always have its default value null" + +using PCSSCommon.Models; + +namespace PCSSCommon.Clients.LocationServices +{ + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class LocationServicesClient + { + private System.Net.Http.HttpClient _httpClient; + private static System.Lazy _settings = new System.Lazy(CreateSerializerSettings, true); + private Newtonsoft.Json.JsonSerializerSettings _instanceSettings; + +#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + public LocationServicesClient(System.Net.Http.HttpClient httpClient) +#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + { + _httpClient = httpClient; + Initialize(); + } + + private static Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings() + { + var settings = new Newtonsoft.Json.JsonSerializerSettings(); + UpdateJsonSerializerSettings(settings); + return settings; + } + + protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _instanceSettings ?? _settings.Value; } } + + static partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings); + + partial void Initialize(); + + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url); + partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder); + partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response); + + /// OK + /// A server side error occurred. + public virtual System.Threading.Tasks.Task> GetLocationsAsync() + { + return GetLocationsAsync(System.Threading.CancellationToken.None); + } + + /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. + /// OK + /// A server side error occurred. + public virtual async System.Threading.Tasks.Task> GetLocationsAsync(System.Threading.CancellationToken cancellationToken) + { + var client_ = _httpClient; + var disposeClient_ = false; + try + { + using (var request_ = new System.Net.Http.HttpRequestMessage()) + { + request_.Method = new System.Net.Http.HttpMethod("GET"); + request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json")); + + var urlBuilder_ = new System.Text.StringBuilder(); + + // Operation Path: "api/locations" + urlBuilder_.Append("api/locations"); + + PrepareRequest(client_, request_, urlBuilder_); + + var url_ = urlBuilder_.ToString(); + request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute); + + PrepareRequest(client_, request_, url_); + + var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false); + var disposeResponse_ = true; + try + { + var headers_ = new System.Collections.Generic.Dictionary>(); + foreach (var item_ in response_.Headers) + headers_[item_.Key] = item_.Value; + if (response_.Content != null && response_.Content.Headers != null) + { + foreach (var item_ in response_.Content.Headers) + headers_[item_.Key] = item_.Value; + } + + ProcessResponse(client_, response_); + + var status_ = (int)response_.StatusCode; + if (status_ == 200) + { + var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_, cancellationToken).ConfigureAwait(false); + if (objectResponse_.Object == null) + { + throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null); + } + return objectResponse_.Object; + } + else + { + var responseData_ = response_.Content == null ? null : await response_.Content.ReadAsStringAsync().ConfigureAwait(false); + throw new ApiException("The HTTP status code of the response was not expected (" + status_ + ").", status_, responseData_, headers_, null); + } + } + finally + { + if (disposeResponse_) + response_.Dispose(); + } + } + } + finally + { + if (disposeClient_) + client_.Dispose(); + } + } + + protected struct ObjectResponseResult + { + public ObjectResponseResult(T responseObject, string responseText) + { + this.Object = responseObject; + this.Text = responseText; + } + + public T Object { get; } + + public string Text { get; } + } + + public bool ReadResponseAsString { get; set; } + + protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken) + { + if (response == null || response.Content == null) + { + return new ObjectResponseResult(default(T), string.Empty); + } + + if (ReadResponseAsString) + { + var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false); + try + { + var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings); + return new ObjectResponseResult(typedBody, responseText); + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body string as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception); + } + } + else + { + try + { + using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false)) + using (var streamReader = new System.IO.StreamReader(responseStream)) + using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader)) + { + var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings); + var typedBody = serializer.Deserialize(jsonTextReader); + return new ObjectResponseResult(typedBody, string.Empty); + } + } + catch (Newtonsoft.Json.JsonException exception) + { + var message = "Could not deserialize the response body stream as " + typeof(T).FullName + "."; + throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception); + } + } + } + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : System.Exception + { + public int StatusCode { get; private set; } + + public string Response { get; private set; } + + public System.Collections.Generic.IReadOnlyDictionary> Headers { get; private set; } + + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Exception innerException) + : base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + ((response == null) ? "(null)" : response.Substring(0, response.Length >= 512 ? 512 : response.Length)), innerException) + { + StatusCode = statusCode; + Response = response; + Headers = headers; + } + + public override string ToString() + { + return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString()); + } + } + + [System.CodeDom.Compiler.GeneratedCode("NSwag", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] + public partial class ApiException : ApiException + { + public TResult Result { get; private set; } + + public ApiException(string message, int statusCode, string response, System.Collections.Generic.IReadOnlyDictionary> headers, TResult result, System.Exception innerException) + : base(message, statusCode, response, headers, innerException) + { + Result = result; + } + } + } +} diff --git a/pcss-client/Common/Constants.cs b/pcss-client/Common/Constants.cs new file mode 100644 index 00000000..928f7a5a --- /dev/null +++ b/pcss-client/Common/Constants.cs @@ -0,0 +1,6 @@ +namespace PCSSCommon.Common; + +public static class Constants +{ + public const string DATE_FORMAT = "dd-MMM-yyyy"; +} diff --git a/pcss-client/Models/REST/CourtCalendar.cs b/pcss-client/Models/CourtCalendar.cs similarity index 75% rename from pcss-client/Models/REST/CourtCalendar.cs rename to pcss-client/Models/CourtCalendar.cs index fd0b6d68..b7798c92 100644 --- a/pcss-client/Models/REST/CourtCalendar.cs +++ b/pcss-client/Models/CourtCalendar.cs @@ -1,18 +1,15 @@ -using Newtonsoft.Json; -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Dynamic; -using System.Globalization; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST.CourtCalendar -{ +using System.Globalization; +using Newtonsoft.Json; +using PCSSCommon.Common; + +#pragma warning disable 8600 // Converting null literal or possible null value to non-nullable type. +#pragma warning disable 8603 // Disable "CS8603 Possible null reference return" +#pragma warning disable 8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. +namespace PCSSCommon.Models +{ public class CourtCalendarLocation { - public int Id { get; set; } public string Name { get; set; } @@ -31,23 +28,23 @@ public class CourtCalendarLocation public CourtCalendarLocation() { - this.Days = new List(); + Days = new List(); } public DateTime GetStartDate() { - return DateTime.ParseExact(this.Days[0].Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); + return DateTime.ParseExact(Days[0].Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); } public DateTime GetEndDate() { - return DateTime.ParseExact(this.Days[this.Days.Count - 1].Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); + return DateTime.ParseExact(Days[Days.Count - 1].Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); } public int CourtRoomConflictDayCount { get { - return this.Days.Where(x => x.CourtRoomConflicts.Count > 0).Count(); + return Days.Where(x => x.CourtRoomConflicts.Count > 0).Count(); } } @@ -55,7 +52,7 @@ public int ActivityImbalanceDayCount { get { - return this.Days.Where(x => x.HasActivityImbalance).Count(); + return Days.Where(x => x.HasActivityImbalance).Count(); } } @@ -63,7 +60,7 @@ public int JudicialImbalanceDayCount { get { - return this.Days.Where(x => x.HasJudicialImbalance).Count(); + return Days.Where(x => x.HasJudicialImbalance).Count(); } } @@ -71,22 +68,22 @@ public int AdjudicatorRestrictionIssuesDayCount { get { - return this.Days.Where(x => x.HasAdjudicatorRestrictionIssues).Count(); + return Days.Where(x => x.HasAdjudicatorRestrictionIssues).Count(); } } public void AddDay(CourtCalendarDay item) { - item.LocationId = this.Id; - this.Days.Add(item); + item.LocationId = Id; + Days.Add(item); } public CourtCalendarDay GetDay(DateTime date) { - CourtCalendarDay item = this.Days.Find(d => d.Date.Equals(date.ToString(Constants.DATE_FORMAT), StringComparison.OrdinalIgnoreCase)); + CourtCalendarDay item = Days.Find(d => d.Date.Equals(date.ToString(Constants.DATE_FORMAT), StringComparison.OrdinalIgnoreCase)); if (item == null) { - item = new CourtCalendarDay(this.Id, date); + item = new CourtCalendarDay(Id, date); AddDay(item); } return item; @@ -96,19 +93,19 @@ public void CalculateCourtRoomConflicts() { // flatten out days/sittings/rooms and activities... List items = new List(); - foreach (CourtCalendarDay day in this.Days) + foreach (CourtCalendarDay day in Days) { foreach (CourtCalendarActivity activity in day.Activities) { foreach (CourtCalendarSlot slot in activity.Slots.Where(x => x.IsAssignmentListRoom == false)) { - CourtCalendarConflict item = items.Find(x => (x.LocationId == this.Id) && (x.Date == day.Date) && (x.CourtSittingCode == activity.CourtSittingCode) && (x.CourtRoomCode == slot.CourtRoomCode)); + CourtCalendarConflict item = items.Find(x => x.LocationId == Id && x.Date == day.Date && x.CourtSittingCode == activity.CourtSittingCode && x.CourtRoomCode == slot.CourtRoomCode); if (item == null) { item = new CourtCalendarConflict() { - LocationId = this.Id, - Name = this.Name, + LocationId = Id, + Name = Name, Date = day.Date, CourtSittingCode = activity.CourtSittingCode, CourtRoomCode = slot.CourtRoomCode @@ -125,13 +122,13 @@ public void CalculateCourtRoomConflicts() // // ok, now for each day update set the conflicts and mark the location flag (if any conflicts)... // - foreach (CourtCalendarDay day in this.Days) + foreach (CourtCalendarDay day in Days) { - day.CourtRoomConflicts = items.Where(x => (x.ActivityCodes.Count > 1) && (x.Date == day.Date)).ToList(); + day.CourtRoomConflicts = items.Where(x => x.ActivityCodes.Count > 1 && x.Date == day.Date).ToList(); } } - + } public class CourtCalendarDay @@ -149,18 +146,19 @@ public class CourtCalendarDay public int PcjMinimum { get; set; } public int PcjMaximum { get; set; } - public CourtCalendarDay() { - this._activityImbalance = new CourtCalendarActivityImbalance(); - this._judicialImbalance = new CourtCalendarJudicialImbalance(); + public CourtCalendarDay() + { + _activityImbalance = new CourtCalendarActivityImbalance(); + _judicialImbalance = new CourtCalendarJudicialImbalance(); TrialTrackingMissingCount = 0; } public CourtCalendarDay(int locationId, DateTime date) { - this.LocationId = locationId; - this.Date = date.ToString(Constants.DATE_FORMAT); - this._activityImbalance = new CourtCalendarActivityImbalance() { LocationId = this.LocationId, Date = this.Date }; - this._judicialImbalance = new CourtCalendarJudicialImbalance() { LocationId = this.LocationId, Date = this.Date }; + LocationId = locationId; + Date = date.ToString(Constants.DATE_FORMAT); + _activityImbalance = new CourtCalendarActivityImbalance() { LocationId = LocationId, Date = Date }; + _judicialImbalance = new CourtCalendarJudicialImbalance() { LocationId = LocationId, Date = Date }; TrialTrackingMissingCount = 0; } @@ -174,13 +172,13 @@ public DateTime GetDate() public List CourtRoomConflicts { get { return _conflicts; } set { _conflicts = value; } } public CourtCalendarActivityImbalance ActivityImbalance { - get { return (_activityImbalance.IsBalanced) ? null : _activityImbalance; } - set { if (value != null) this._activityImbalance = value; } + get { return _activityImbalance.IsBalanced ? null : _activityImbalance; } + set { if (value != null) _activityImbalance = value; } } public CourtCalendarJudicialImbalance JudicialImbalance { - get { return (_judicialImbalance.IsBalanced) ? null : _judicialImbalance; } - set { if (value != null) this._judicialImbalance = value; } + get { return _judicialImbalance.IsBalanced ? null : _judicialImbalance; } + set { if (value != null) _judicialImbalance = value; } } public bool HasActivityImbalance { get { return !_activityImbalance.IsBalanced; } } public bool HasJudicialImbalance { get { return !_judicialImbalance.IsBalanced; } } @@ -189,8 +187,8 @@ public CourtCalendarJudicialImbalance JudicialImbalance public void AddActivity(CourtCalendarActivity item) { - item.Date = this.Date; - item.LocationId = this.LocationId; + item.Date = Date; + item.LocationId = LocationId; _activities.Add(item); } @@ -237,15 +235,15 @@ public class CourtCalendarActivity public string JudiciaryTypeCode { get; set; } [JsonProperty(PropertyName = "IsJj")] - public bool IsJJ { get { return "JJ" == this.JudiciaryTypeCode; } } + public bool IsJJ { get { return "JJ" == JudiciaryTypeCode; } } [JsonProperty(PropertyName = "IsPcj")] - public bool IsPCJ { get { return "PCJ" == this.JudiciaryTypeCode; } } + public bool IsPCJ { get { return "PCJ" == JudiciaryTypeCode; } } [JsonProperty(PropertyName = "IsJp")] - public bool IsJP { get { return "JP" == this.JudiciaryTypeCode; } } + public bool IsJP { get { return "JP" == JudiciaryTypeCode; } } [JsonProperty(PropertyName = "IsOther")] public bool IsOther { get { return !(IsJJ || IsPCJ || IsJP || IsIAR); } } [JsonProperty(PropertyName = "IsIar")] - public bool IsIAR { get { return !(IsJJ || IsPCJ || IsJP) && "IA" == this.ActivityCode; } } + public bool IsIAR { get { return !(IsJJ || IsPCJ || IsJP) && "IA" == ActivityCode; } } public bool IsHearingStartSameTime { get; set; } public bool IsPreCourtActivity { get; set; } @@ -264,30 +262,30 @@ public class CourtCalendarActivity public double? NumberOfHours { get; set; } public List ActivityClassUsages { get; set; } - public List Restrictions { get{ return _restrictions; } } + public List Restrictions { get { return _restrictions; } } public bool HasRestrictions { get { return Restrictions.Count > 0; } } - public bool HasAdjudicatorIssues { get { return Restrictions.Exists(x => x.HasIssue); } } + public bool HasAdjudicatorIssues { get { return Restrictions.Exists(x => x.HasIssue.GetValueOrDefault()); } } public List NeedJudgeDetails { get; set; } - public CourtCalendarActivity() { this.NeedJudgeDetails = new List(); } + public CourtCalendarActivity() { NeedJudgeDetails = new List(); } public CourtCalendarActivity(int locationId, DateTime date, string activityCode, string activityDesc, string activityClassCode, string activityClassDesc) { - this.LocationId = locationId; - this.Date = date.ToString(Constants.DATE_FORMAT); - this.ActivityCode = activityCode; - this.ActivityDescription = activityDesc; - this.ActivityClassCode = activityClassCode; - this.ActivityClassDescription = activityClassDesc; - this.NeedJudgeDetails = new List(); + LocationId = locationId; + Date = date.ToString(Constants.DATE_FORMAT); + ActivityCode = activityCode; + ActivityDescription = activityDesc; + ActivityClassCode = activityClassCode; + ActivityClassDescription = activityClassDesc; + NeedJudgeDetails = new List(); } public List Slots { get { return _slots; } } public void AddSlot(CourtCalendarSlot item) { - item.CourtCalendarActivityId = this.Id; - item.LocationId = this.LocationId; + item.CourtCalendarActivityId = Id; + item.LocationId = LocationId; // only add a slot once... if (_slots.Find(x => x.CourtRoomCode == item.CourtRoomCode && x.IsAssignmentListRoom == item.IsAssignmentListRoom && x.StartTime == item.StartTime) == null) { @@ -305,7 +303,7 @@ public void RemoveSlot(CourtCalendarSlot item) public void AddCapacity(CourtCalendarCapacity item) { - item.CourtCalendarActivityId = this.Id; + item.CourtCalendarActivityId = Id; _capacitySettings.Add(item); } @@ -347,7 +345,7 @@ public class CourtCalendarConflict public string CourtSittingCode { get; set; } public List ActivityCodes { get; set; } - public CourtCalendarConflict() { this.ActivityCodes = new List(); } + public CourtCalendarConflict() { ActivityCodes = new List(); } } public class CourtCalendarActivityImbalance @@ -364,12 +362,12 @@ public class CourtCalendarActivityImbalance public int PcjMinimum { get; set; } public int PcjMaximum { get; set; } - public bool IsAboveRange { get { return this.ActivityCount > this.PcjMaximum; } } - public bool IsBelowRange { get { return this.ActivityCount < this.PcjMinimum; } } - public bool IsBalanced { get { return !IsAboveRange && !IsBelowRange;} } + public bool IsAboveRange { get { return ActivityCount > PcjMaximum; } } + public bool IsBelowRange { get { return ActivityCount < PcjMinimum; } } + public bool IsBalanced { get { return !IsAboveRange && !IsBelowRange; } } - public CourtCalendarActivityImbalance() { this.PcjActivityCodes = new List(); } + public CourtCalendarActivityImbalance() { PcjActivityCodes = new List(); } } public class CourtCalendarJudicialImbalance @@ -386,11 +384,11 @@ public class CourtCalendarJudicialImbalance public int PcjMinimum { get; set; } public int PcjMaximum { get; set; } - public bool IsAboveRange { get { return this.PcjSitting > this.PcjMaximum; } } - public bool IsBelowRange { get { return this.PcjSitting < this.PcjMinimum; } } - public bool IsBalanced { get { return !IsAboveRange && !IsBelowRange;} } + public bool IsAboveRange { get { return PcjSitting > PcjMaximum; } } + public bool IsBelowRange { get { return PcjSitting < PcjMinimum; } } + public bool IsBalanced { get { return !IsAboveRange && !IsBelowRange; } } - public CourtCalendarJudicialImbalance() { this.SittingActivityCodes = new List(); } + public CourtCalendarJudicialImbalance() { SittingActivityCodes = new List(); } } public class PresiderQuantityRange @@ -444,11 +442,8 @@ public static int DayOfCourtCalendarWeek(DateTime dt) } - - public class NeedJudgeResponse { - public int? NeedJudgeId { get; set; } public int? LocationId { get; set; } public int? CourtActivityId { get; set; } @@ -462,4 +457,8 @@ public class NeedJudgeResponse public string NeedJudgeTypeCd { get; set; } public virtual string NeedJudgeTypeDsc { get; set; } } -} \ No newline at end of file +} + +#pragma warning restore 8600 +#pragma warning restore 8603 +#pragma warning restore 8618 \ No newline at end of file diff --git a/pcss-client/Models/Infrastructure/Constants.cs b/pcss-client/Models/Infrastructure/Constants.cs deleted file mode 100644 index 5d612c86..00000000 --- a/pcss-client/Models/Infrastructure/Constants.cs +++ /dev/null @@ -1,71 +0,0 @@ -namespace PCSS.Infrastructure -{ - public class Constants - { - public const string TIME_FORMAT = "hh:mmtt"; - public const string DATE_FORMAT = "dd-MMM-yyyy"; - public const string TIMESTAMP_FORMAT = DATE_FORMAT + " " + TIME_FORMAT; - - //2002-09-23 00:00:00.0 - public const string DATE_FORMAT_WS = "yyyy-MM-dd HH:mm:ss.f"; - public const double HOURS_PER_DAY = 5.0; - - public const string FILE_DIVISION_CRIMINAL = "R"; - public const string FILE_DIVISION_CIVIL = "I"; - public const string MIXED_ACTIVITY_CLASS = "M"; - public const string SPECIALITY_ACTIVITY_CLASS = "S"; - - public static string[] Y_N = new string[] { "Y", "N" }; - - public const double MAGIC_CASE_UNLIMITED_QUANTITY_NO = 100.0; - public const double MAGIC_WITNESS_SCORE = 0.8; - public const double MAX_UNLIMITED_CAPACITY = 0.75; - - - public const string ESTIMATED_UNIT_HOURS = "HRS"; - public const string ESTIMATED_UNIT_MINS = "MINS"; - public const string ESTIMATED_UNIT_DAYS = "DYS"; - - public const string CONTRAINT_HOURS = "HOURS"; - public const string CONTRAINT_CASES = "CASES"; - public const string CONTRAINT_CASES_UNLIMITED = "CASES_UN"; - public const string CONTRAINT_SLOT = "SLOT"; - - public const string HOLIDAY_ACTIVITY_TYPE = "HOL"; - public const string ASSIGNMENT_LIST_ACTIVITY_TYPE = "ASL"; - public const string TBA_ACTIVITY_TYPE = "TBA"; - public const string NOT_WORKING_ACTIVITY_TYPE = "NW"; - public const string SITTING_ACTIVITY_TYPE = "SIT"; - - public const int MAX_SYNC_LOG = 5000; - public const string SEIZED = "S"; - - public const string USER_ROLE = "USER"; - public const string CONTINUATION_REASON = "CNT"; - public static int VIRTUAL_TBA_SLOT_ID = -1; - - - public const string APPEARANCE_STATUS_SCHEDULED = "SCHD"; - public const string APPEARANCE_STATUS_CANCELLED = "CNCL"; - public const string APPEARANCE_STATUS_UNCONFIRMED = "UNCF"; - public const string APPEARANCE_STATUS_TENTATIVE = "TENT"; - - - public static string JUDICIAL_SCHEDULE_RULE_NO_SCHEDULE = "NS"; - public static DateTime EARLIEST_SYNC_DATE = new DateTime(2014, 01, 01); - public static string AVAIL_PROV_COURT = "PC"; - public static string AVAIL_UNKNOWN = "?"; - - - public const string SITTING_FOR_ACTIVITY = "SA"; - public const string SITTING_BUT_NOT_SCHEDULED = "SN"; - public const string SITTING_FOR_OTHER_ACTIVITY = "SO"; - public const string SITTING_IN_OTHER_LOCATION = "SE"; - public const string NOT_SITTING = "NS"; - public const string NOT_SCHEDULED_TO_WORK = "NW"; - - public const string TRIAL_TRACKER_PROCEEDED = "PROC"; - - - } -} \ No newline at end of file diff --git a/pcss-client/Models/JudicialCalendar.cs b/pcss-client/Models/JudicialCalendar.cs new file mode 100644 index 00000000..a8e8d27d --- /dev/null +++ b/pcss-client/Models/JudicialCalendar.cs @@ -0,0 +1,161 @@ +//---------------------- +// This is manually imported from PCSS codebase because the import files used in NSwag did not include the classes found here. +//---------------------- + +using System.Globalization; +using PCSSCommon.Common; + +namespace PCSSCommon.Models; + +#pragma warning disable 8600 // Converting null literal or possible null value to non-nullable type. +#pragma warning disable 8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + +public class ReadJudicialCalendarsResponse +{ + public List Calendars { get; set; } +} + +public class JudicialCalendar +{ + public int Id { get; set; } + public string RotaInitials { get; set; } + public double ParticipantId { get; set; } + + public int HomeLocationId { get; set; } + public string HomeLocationName { get; set; } + + public string RegionCode { get; set; } + public int? WorkAreaSequenceNo { get; set; } + + public string Name { get; set; } + public string PositionTypeCode { get; set; } + public string PositionTypeDescription { get; set; } + public string PositionCode { get; set; } + public string PositionDescription { get; set; } + public string PositionStatusCode { get; set; } + public string PositionStatusDescription { get; set; } + public bool IsPresider { get; set; } + public bool IsJudge { get; set; } + public bool IsAdmin { get; set; } + + public JudicialCalendar() + { + this.Days = new List(); + } + + public List Days { get; set; } + public void AddDay(JudicialCalendarDay day) + { + day.JudgeId = this.Id; + this.Days.Add(day); + } + public JudicialCalendarDay GetDay(DateTime date) + { + JudicialCalendarDay item = this.Days.Find(d => d.Date.Equals(date.ToString(Constants.DATE_FORMAT), StringComparison.OrdinalIgnoreCase)); + if (item == null) + { + item = new JudicialCalendarDay(this.Id, date); + AddDay(item); + } + return item; + } + +} + +public class JudicialCalendarDay +{ + private JudicialCalendarAssignment _assignment; + private List _restrictions = new List(); + public int JudgeId { get; set; } + public string Date { get; set; } + + // these things can change from day to day.... + public string Name { get; set; } + public string LastName { get; set; } + public string PositionTypeCode { get; set; } + public string PositionTypeDescription { get; set; } + public string PositionCode { get; set; } + public string PositionDescription { get; set; } + public string PositionStatusCode { get; set; } + public string PositionStatusDescription { get; set; } + public bool IsPresider { get; set; } + public bool IsJudge { get; set; } + public bool IsAdmin { get; set; } + + public List Restrictions { get { return _restrictions; } } + public bool HasRestrictions { get { return Restrictions.Count > 0; } } + public bool HasAdjudicatorIssues { get { return Restrictions.Exists(x => x.HasIssue.GetValueOrDefault()); } } + + public List HaveJudgeDetails { get; set; } + + public JudicialCalendarDay() { } + + public JudicialCalendarDay(int judgeId, DateTime date) + { + this.JudgeId = judgeId; + this.Date = date.ToString(Constants.DATE_FORMAT); + } + + public JudicialCalendarAssignment Assignment + { + get { return _assignment; } + set + { + value.JudgeId = this.JudgeId; + value.Date = this.Date; + this._assignment = value; + } + } + + public DateTime GetDate() + { + return DateTime.ParseExact(Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); + } + +} +public class Case +{ + //Both + public string FileNumberTxt { get; set; } + public int LocationId { get; set; } + public string LocationNm { get; set; } + + public string NextApprDt { get; set; } + public string CourtDivisionCd { get; set; } + public List Participants { get; set; } + + //Criminal Only + public int? JustinNo { get; set; } + public double? ProfPartId { get; set; } + public double? ProfSeqNo { get; set; } + + //Civil Only + public double? PhysicalFileId { get; set; } + public double? CivilDocumentId { get; set; } +} + +public class Participant +{ + public string FullName { get; set; } + public List Charges { get; set; } +} + +public class HaveJudgeResponse +{ + + public int? HaveJudgeId { get; set; } + public int? JudiciaryPersonId { get; set; } + public int? JudicialScheduleId { get; set; } + public string RotaInitialsCd { get; set; } + public string FullNm { get; set; } + public int? LocationId { get; set; } + public string LocationNm { get; set; } + public DateTime CalendarDt { get; set; } + public string CourtSittingCd { get; set; } + public virtual string CourtSittingDsc { get; set; } + public string HaveJudgeTypeCd { get; set; } + public virtual string HaveJudgeTypeDsc { get; set; } +} + +#pragma warning restore 8600 +#pragma warning restore 8618 \ No newline at end of file diff --git a/pcss-client/Models/Models.cs b/pcss-client/Models/Models.cs new file mode 100644 index 00000000..a0436b60 --- /dev/null +++ b/pcss-client/Models/Models.cs @@ -0,0 +1,2154 @@ +//---------------------- +// +// Generated using the NSwag toolchain v14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org) +// +//---------------------- + +namespace PCSSCommon.Models; + +#pragma warning disable 8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Location +{ + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("circuitLocation", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location CircuitLocation { get; set; } + + [Newtonsoft.Json.JsonProperty("workArea", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public WorkArea WorkArea { get; set; } + + [Newtonsoft.Json.JsonProperty("justinAgenId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? JustinAgenId { get; set; } + + [Newtonsoft.Json.JsonProperty("agencyIdentifierCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AgencyIdentifierCd { get; set; } + + [Newtonsoft.Json.JsonProperty("locationNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocationNm { get; set; } + + [Newtonsoft.Json.JsonProperty("locationSNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocationSNm { get; set; } + + [Newtonsoft.Json.JsonProperty("justinLocationNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JustinLocationNm { get; set; } + + [Newtonsoft.Json.JsonProperty("tbaCourtRoomCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TbaCourtRoomCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("requiredPresiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? RequiredPresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("minPresiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? MinPresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("maxPresiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? MaxPresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("groupParentLocation", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location GroupParentLocation { get; set; } + + [Newtonsoft.Json.JsonProperty("judicialPoolLocation", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location JudicialPoolLocation { get; set; } + + [Newtonsoft.Json.JsonProperty("trialTrackerStartDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? TrialTrackerStartDt { get; set; } + + [Newtonsoft.Json.JsonProperty("useCcssCrownAvailabilityYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UseCcssCrownAvailabilityYn { get; set; } + + [Newtonsoft.Json.JsonProperty("useCcssCrownAvailability", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? UseCcssCrownAvailability { get; set; } + + [Newtonsoft.Json.JsonProperty("generationWeekOneDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? GenerationWeekOneDt { get; set; } + + [Newtonsoft.Json.JsonProperty("generationWeekOneDtStr", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string GenerationWeekOneDtStr { get; set; } + + [Newtonsoft.Json.JsonProperty("trialTrackerStartDtStr", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TrialTrackerStartDtStr { get; set; } + + [Newtonsoft.Json.JsonProperty("aslEmailList", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AslEmailList { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTypes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTypes { get; set; } + + [Newtonsoft.Json.JsonProperty("locationActivities", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection LocationActivities { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSessionParameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CourtSessionParameters { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRooms", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CourtRooms { get; set; } + + [Newtonsoft.Json.JsonProperty("localPoliceAgencies", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection LocalPoliceAgencies { get; set; } + + [Newtonsoft.Json.JsonProperty("justinCalendarSync", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection JustinCalendarSync { get; set; } + + [Newtonsoft.Json.JsonProperty("calendarGenerations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CalendarGenerations { get; set; } + + [Newtonsoft.Json.JsonProperty("addresses", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection
Addresses { get; set; } + + [Newtonsoft.Json.JsonProperty("publishDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? PublishDate { get; set; } + + [Newtonsoft.Json.JsonProperty("generationDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? GenerationDate { get; set; } + + [Newtonsoft.Json.JsonProperty("tbaCourtRoom", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtRoom TbaCourtRoom { get; set; } + + [Newtonsoft.Json.JsonProperty("runsAssignmentCourt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? RunsAssignmentCourt { get; set; } + + [Newtonsoft.Json.JsonProperty("canGenerateCalendar", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? CanGenerateCalendar { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class WorkArea +{ + [Newtonsoft.Json.JsonProperty("regionCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RegionCd { get; set; } + + [Newtonsoft.Json.JsonProperty("workAreaSeqNo", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? WorkAreaSeqNo { get; set; } + + [Newtonsoft.Json.JsonProperty("workAreaDscTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string WorkAreaDscTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class LocationActivity +{ + [Newtonsoft.Json.JsonProperty("activityCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCd { get; set; } + + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("activityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivitySetting ActivitySetting { get; set; } + + [Newtonsoft.Json.JsonProperty("locationActivitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public LocationActivitySetting LocationActivitySetting { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CourtSessionParameter +{ + [Newtonsoft.Json.JsonProperty("courtSessionParmeterId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CourtSessionParmeterId { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtSittingType CourtSittingType { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivitySetting ActivitySetting { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClass", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityClass ActivityClass { get; set; } + + [Newtonsoft.Json.JsonProperty("startTm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? StartTm { get; set; } + + [Newtonsoft.Json.JsonProperty("preCourtStartTm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? PreCourtStartTm { get; set; } + + [Newtonsoft.Json.JsonProperty("maxCaseQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? MaxCaseQty { get; set; } + + [Newtonsoft.Json.JsonProperty("maxHoursQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? MaxHoursQty { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CourtRoom +{ + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoomCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtRoomCd { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoomType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtRoomType CourtRoomType { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("phoneNumberTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PhoneNumberTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("phoneNumberExt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PhoneNumberExt { get; set; } + + [Newtonsoft.Json.JsonProperty("seatingCapacityQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? SeatingCapacityQty { get; set; } + + [Newtonsoft.Json.JsonProperty("secureRoomYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SecureRoomYn { get; set; } + + [Newtonsoft.Json.JsonProperty("fixedVideoConfYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FixedVideoConfYn { get; set; } + + [Newtonsoft.Json.JsonProperty("portableVideoConfYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PortableVideoConfYn { get; set; } + + [Newtonsoft.Json.JsonProperty("commentTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CommentTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("justinCourtRoomCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JustinCourtRoomCd { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class LocalPoliceAgency +{ + [Newtonsoft.Json.JsonProperty("localPoliceAgencyId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocalPoliceAgencyId { get; set; } + + [Newtonsoft.Json.JsonProperty("policeAgency", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public PoliceAgency PoliceAgency { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("defaultYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string DefaultYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JustinCalendarSync +{ + [Newtonsoft.Json.JsonProperty("justinCalendarSyncId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JustinCalendarSyncId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("lastSyncDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? LastSyncDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CourtCalendarGeneration +{ + [Newtonsoft.Json.JsonProperty("courtCalendarGenerationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CourtCalendarGenerationId { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("startDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? StartDt { get; set; } + + [Newtonsoft.Json.JsonProperty("endDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EndDt { get; set; } + + [Newtonsoft.Json.JsonProperty("generationDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? GenerationDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Address +{ + [Newtonsoft.Json.JsonProperty("addressId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? AddressId { get; set; } + + [Newtonsoft.Json.JsonProperty("city", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public City City { get; set; } + + [Newtonsoft.Json.JsonProperty("addressType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public AddressType AddressType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("province", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Province Province { get; set; } + + [Newtonsoft.Json.JsonProperty("addressLine1Txt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AddressLine1Txt { get; set; } + + [Newtonsoft.Json.JsonProperty("addressLine2Txt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AddressLine2Txt { get; set; } + + [Newtonsoft.Json.JsonProperty("postalCodeTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PostalCodeTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("phoneNumberTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PhoneNumberTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("phoneNumber2Txt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PhoneNumber2Txt { get; set; } + + [Newtonsoft.Json.JsonProperty("faxNumberTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FaxNumberTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivitySetting +{ + [Newtonsoft.Json.JsonProperty("activitySettingId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivitySettingId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationActivity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public LocationActivity LocationActivity { get; set; } + + [Newtonsoft.Json.JsonProperty("activityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryType JudiciaryType { get; set; } + + [Newtonsoft.Json.JsonProperty("capacityConstraintType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CapacityConstraintType CapacityConstraintType { get; set; } + + [Newtonsoft.Json.JsonProperty("repeatingPatternType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public RepeatingPatternType RepeatingPatternType { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySettingDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivitySettingDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("hearingStartSameTimeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string HearingStartSameTimeYn { get; set; } + + [Newtonsoft.Json.JsonProperty("precourtActivityYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PrecourtActivityYn { get; set; } + + [Newtonsoft.Json.JsonProperty("presiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? PresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSessionParameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CourtSessionParameters { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTemplatePatterns", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTemplatePatterns { get; set; } + + [Newtonsoft.Json.JsonProperty("defaultCourtRooms", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection DefaultCourtRooms { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class LocationActivitySetting +{ + [Newtonsoft.Json.JsonProperty("activityCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCd { get; set; } + + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("division", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityTypeClass Division { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySettingId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivitySettingId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationActivity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public LocationActivity LocationActivity { get; set; } + + [Newtonsoft.Json.JsonProperty("activityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryType JudiciaryType { get; set; } + + [Newtonsoft.Json.JsonProperty("capacityConstraintType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CapacityConstraintType CapacityConstraintType { get; set; } + + [Newtonsoft.Json.JsonProperty("repeatingPatternType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public RepeatingPatternType RepeatingPatternType { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySettingDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivitySettingDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("hearingStartSameTimeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string HearingStartSameTimeYn { get; set; } + + [Newtonsoft.Json.JsonProperty("precourtActivityYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PrecourtActivityYn { get; set; } + + [Newtonsoft.Json.JsonProperty("presiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? PresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSessionParameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CourtSessionParameters { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTemplatePatterns", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTemplatePatterns { get; set; } + + [Newtonsoft.Json.JsonProperty("defaultCourtRooms", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection DefaultCourtRooms { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CourtSittingType +{ + [Newtonsoft.Json.JsonProperty("courtSittingCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtSittingCd { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtSittingDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("justinCourtSittingCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JustinCourtSittingCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("ordinal", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? Ordinal { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityClass +{ + [Newtonsoft.Json.JsonProperty("activityClassCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCd { get; set; } + + [Newtonsoft.Json.JsonProperty("parentActivityClass", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityClass ParentActivityClass { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTypes", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTypes { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CourtRoomType +{ + [Newtonsoft.Json.JsonProperty("courtRoomTypeCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtRoomTypeCd { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoomTypeDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtRoomTypeDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class PoliceAgency +{ + [Newtonsoft.Json.JsonProperty("policeAgencyId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? PoliceAgencyId { get; set; } + + [Newtonsoft.Json.JsonProperty("policeAgencyDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PoliceAgencyDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("agencyIdentifierCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AgencyIdentifierCd { get; set; } + + [Newtonsoft.Json.JsonProperty("justinAgenId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? JustinAgenId { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryPerson +{ + [Newtonsoft.Json.JsonProperty("judiciaryPersonId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudiciaryPersonId { get; set; } + + [Newtonsoft.Json.JsonProperty("genderType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public GenderType GenderType { get; set; } + + [Newtonsoft.Json.JsonProperty("maritalStatusType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public MaritalStatusType MaritalStatusType { get; set; } + + [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public User User { get; set; } + + [Newtonsoft.Json.JsonProperty("rotaInitialsCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RotaInitialsCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judicialNoTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudicialNoTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("socialInsuranceNoTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SocialInsuranceNoTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("employeeNoTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EmployeeNoTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("schedulePublishedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? SchedulePublishedDate { get; set; } + + [Newtonsoft.Json.JsonProperty("scheduleGeneratedDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ScheduleGeneratedDate { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("names", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Names { get; set; } + + [Newtonsoft.Json.JsonProperty("statuses", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Statuses { get; set; } + + [Newtonsoft.Json.JsonProperty("addresses", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection
Addresses { get; set; } + + [Newtonsoft.Json.JsonProperty("communicationDevices", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CommunicationDevices { get; set; } + + [Newtonsoft.Json.JsonProperty("contacts", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection Contacts { get; set; } + + [Newtonsoft.Json.JsonProperty("fullName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FullName { get; set; } + + [Newtonsoft.Json.JsonProperty("homeLocation", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location HomeLocation { get; set; } + + [Newtonsoft.Json.JsonProperty("participantId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? ParticipantId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class City +{ + [Newtonsoft.Json.JsonProperty("cityId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CityId { get; set; } + + [Newtonsoft.Json.JsonProperty("cityDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CityDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class AddressType +{ + [Newtonsoft.Json.JsonProperty("addressTypeCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AddressTypeCd { get; set; } + + [Newtonsoft.Json.JsonProperty("addressTypeDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AddressTypeDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Province +{ + [Newtonsoft.Json.JsonProperty("provinceCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ProvinceCd { get; set; } + + [Newtonsoft.Json.JsonProperty("countryId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CountryId { get; set; } + + [Newtonsoft.Json.JsonProperty("country", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Country Country { get; set; } + + [Newtonsoft.Json.JsonProperty("provinceDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ProvinceDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryType +{ + [Newtonsoft.Json.JsonProperty("judiciaryTypeCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryTypeCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryTypeDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryTypeDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityTypeClass +{ + [Newtonsoft.Json.JsonProperty("activityCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClass", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityClass ActivityClass { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CapacityConstraintType +{ + [Newtonsoft.Json.JsonProperty("capacityConstraintCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CapacityConstraintCd { get; set; } + + [Newtonsoft.Json.JsonProperty("capacityConstraintDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CapacityConstraintDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class RepeatingPatternType +{ + [Newtonsoft.Json.JsonProperty("repeatingPatternCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RepeatingPatternCd { get; set; } + + [Newtonsoft.Json.JsonProperty("repeatingPatternDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RepeatingPatternDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("recurQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? RecurQty { get; set; } + + [Newtonsoft.Json.JsonProperty("recurUnitCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RecurUnitCd { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityTemplatePattern +{ + [Newtonsoft.Json.JsonProperty("activityTemplatePatternId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivityTemplatePatternId { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivitySetting ActivitySetting { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtSittingType CourtSittingType { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTemplateSeqNo", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivityTemplateSeqNo { get; set; } + + [Newtonsoft.Json.JsonProperty("mondayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MondayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("tuesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TuesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("wednesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string WednesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("thursdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ThursdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("fridayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FridayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("saturdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SaturdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("sundayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SundayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("dailyYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string DailyYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityDefaultRoom +{ + [Newtonsoft.Json.JsonProperty("activityDefaultRoomId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivityDefaultRoomId { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoom", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtRoom CourtRoom { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivitySetting ActivitySetting { get; set; } + + [Newtonsoft.Json.JsonProperty("assignmentListRoomYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AssignmentListRoomYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("roomTemplatePatterns", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection RoomTemplatePatterns { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class GenderType +{ + [Newtonsoft.Json.JsonProperty("genderCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string GenderCd { get; set; } + + [Newtonsoft.Json.JsonProperty("genderDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string GenderDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class MaritalStatusType +{ + [Newtonsoft.Json.JsonProperty("maritalStatusCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MaritalStatusCd { get; set; } + + [Newtonsoft.Json.JsonProperty("maritalStatusDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MaritalStatusDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class User +{ + [Newtonsoft.Json.JsonProperty("userId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? UserId { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + + [Newtonsoft.Json.JsonProperty("temporaryAccessGUID", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TemporaryAccessGUID { get; set; } + + [Newtonsoft.Json.JsonProperty("participantId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? ParticipantId { get; set; } + + [Newtonsoft.Json.JsonProperty("givenName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string GivenName { get; set; } + + [Newtonsoft.Json.JsonProperty("surname", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Surname { get; set; } + + [Newtonsoft.Json.JsonProperty("guid", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Guid { get; set; } + + [Newtonsoft.Json.JsonProperty("authorizationDirectory", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AuthorizationDirectory { get; set; } + + [Newtonsoft.Json.JsonProperty("accountName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AccountName { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveRoles", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection EffectiveRoles { get; set; } + + [Newtonsoft.Json.JsonProperty("effectivePermissions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection EffectivePermissions { get; set; } + + [Newtonsoft.Json.JsonProperty("userRoles", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection UserRoles { get; set; } + + [Newtonsoft.Json.JsonProperty("userPermissions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection UserPermissions { get; set; } + + [Newtonsoft.Json.JsonProperty("homeLocations", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection HomeLocations { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryPersonName +{ + [Newtonsoft.Json.JsonProperty("judiciaryPersonNameId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudiciaryPersonNameId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("surnameNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SurnameNm { get; set; } + + [Newtonsoft.Json.JsonProperty("firstNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FirstNm { get; set; } + + [Newtonsoft.Json.JsonProperty("middleInitialsNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MiddleInitialsNm { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EffectiveDt { get; set; } + + [Newtonsoft.Json.JsonProperty("expiryDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ExpiryDt { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("fullNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FullNm { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryPersonStatus +{ + [Newtonsoft.Json.JsonProperty("judiciaryPersonStatusId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudiciaryPersonStatusId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPositionStatus", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPositionStatus JudiciaryPositionStatus { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryInactiveReasonType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryInactiveReasonType JudiciaryInactiveReasonType { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EffectiveDt { get; set; } + + [Newtonsoft.Json.JsonProperty("expiryDt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ExpiryDt { get; set; } + + [Newtonsoft.Json.JsonProperty("isPresider", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsPresider { get; set; } + + [Newtonsoft.Json.JsonProperty("isJudge", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsJudge { get; set; } + + [Newtonsoft.Json.JsonProperty("isAdmin", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsAdmin { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryType JudiciaryType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryStatusType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryStatusType JudiciaryStatusType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPositionType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPositionType JudiciaryPositionType { get; set; } + + [Newtonsoft.Json.JsonProperty("nonSittingActivityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType NonSittingActivityType { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CommunicationDevice +{ + [Newtonsoft.Json.JsonProperty("commDeviceId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CommDeviceId { get; set; } + + [Newtonsoft.Json.JsonProperty("communicationDeviceType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CommunicationDeviceType CommunicationDeviceType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("commDeviceIdentiferTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CommDeviceIdentiferTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryContact +{ + [Newtonsoft.Json.JsonProperty("judicialContactId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudicialContactId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPerson", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPerson JudiciaryPerson { get; set; } + + [Newtonsoft.Json.JsonProperty("relationshipType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public RelationshipType RelationshipType { get; set; } + + [Newtonsoft.Json.JsonProperty("phoneNumberTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PhoneNumberTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("contactNm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ContactNm { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Country +{ + [Newtonsoft.Json.JsonProperty("countryId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CountryId { get; set; } + + [Newtonsoft.Json.JsonProperty("countryDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CountryDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Role +{ + [Newtonsoft.Json.JsonProperty("roleId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? RoleId { get; set; } + + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { get; set; } + + [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Display { get; set; } + + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Description { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("userRoles", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection UserRoles { get; set; } + + [Newtonsoft.Json.JsonProperty("rolePermissions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection RolePermissions { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Permission +{ + [Newtonsoft.Json.JsonProperty("permissionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? PermissionId { get; set; } + + [Newtonsoft.Json.JsonProperty("name", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Name { get; set; } + + [Newtonsoft.Json.JsonProperty("display", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Display { get; set; } + + [Newtonsoft.Json.JsonProperty("description", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Description { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("userPermissions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection UserPermissions { get; set; } + + [Newtonsoft.Json.JsonProperty("rolePermissions", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection RolePermissions { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryPositionStatus +{ + [Newtonsoft.Json.JsonProperty("judiciaryPositionStatusId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudiciaryPositionStatusId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPositionType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryPositionType JudiciaryPositionType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryStatusType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryStatusType JudiciaryStatusType { get; set; } + + [Newtonsoft.Json.JsonProperty("judicialScheduleRuleType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudicialScheduleRuleType JudicialScheduleRuleType { get; set; } + + [Newtonsoft.Json.JsonProperty("entitlementCalcType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntitlementCalcType { get; set; } + + [Newtonsoft.Json.JsonProperty("seniorDayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SeniorDayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryInactiveReasonType +{ + [Newtonsoft.Json.JsonProperty("judiciaryInactiveReasonCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryInactiveReasonCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryInactiveReasonDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryInactiveReasonDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryStatusType +{ + [Newtonsoft.Json.JsonProperty("judiciaryStatusCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryStatusCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryStatusDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryStatusDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudiciaryPositionType +{ + [Newtonsoft.Json.JsonProperty("judiciaryPositionTypeId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudiciaryPositionTypeId { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPositionCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryPositionCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryType JudiciaryType { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryPositionDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryPositionDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("presiderYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PresiderYn { get; set; } + + [Newtonsoft.Json.JsonProperty("adminYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AdminYn { get; set; } + + [Newtonsoft.Json.JsonProperty("judgeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudgeYn { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class CommunicationDeviceType +{ + [Newtonsoft.Json.JsonProperty("commDeviceTypeCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CommDeviceTypeCd { get; set; } + + [Newtonsoft.Json.JsonProperty("commDeviceTypeDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CommDeviceTypeDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class RelationshipType +{ + [Newtonsoft.Json.JsonProperty("relationshipCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RelationshipCd { get; set; } + + [Newtonsoft.Json.JsonProperty("relationshipDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RelationshipDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class RolePermission +{ + [Newtonsoft.Json.JsonProperty("rolePermissionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? RolePermissionId { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("permission", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Permission Permission { get; set; } + + [Newtonsoft.Json.JsonProperty("role", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Role Role { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityDefaultRoomTemplatePattern +{ + [Newtonsoft.Json.JsonProperty("activityDefaultRoomTemplatePatternId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivityDefaultRoomTemplatePatternId { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDefaultRoom", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityDefaultRoom ActivityDefaultRoom { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CourtSittingType CourtSittingType { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTemplateSeqNo", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivityTemplateSeqNo { get; set; } + + [Newtonsoft.Json.JsonProperty("mondayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MondayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("tuesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TuesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("wednesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string WednesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("thursdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ThursdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("fridayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FridayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("saturdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SaturdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("sundayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SundayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("dailyYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string DailyYn { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class UserRole +{ + [Newtonsoft.Json.JsonProperty("userRoleId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? UserRoleId { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EffectiveDate { get; set; } + + [Newtonsoft.Json.JsonProperty("expiryDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ExpiryDate { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public User User { get; set; } + + [Newtonsoft.Json.JsonProperty("role", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Role Role { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class UserPermission +{ + [Newtonsoft.Json.JsonProperty("userPermissionId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? UserPermissionId { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EffectiveDate { get; set; } + + [Newtonsoft.Json.JsonProperty("expiryDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ExpiryDate { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public User User { get; set; } + + [Newtonsoft.Json.JsonProperty("permission", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Permission Permission { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class UserHomeLocation +{ + [Newtonsoft.Json.JsonProperty("userHomeLocationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? UserHomeLocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("effectiveDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EffectiveDate { get; set; } + + [Newtonsoft.Json.JsonProperty("expiryDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? ExpiryDate { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("user", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public User User { get; set; } + + [Newtonsoft.Json.JsonProperty("location", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public Location Location { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudicialScheduleRuleType +{ + [Newtonsoft.Json.JsonProperty("judicalScheduleRuleCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudicalScheduleRuleCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judicalScheduleRuleDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudicalScheduleRuleDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("mondayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string MondayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("tuesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TuesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("wednesdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string WednesdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("thursdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ThursdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("fridayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FridayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("saturdayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SaturdayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("sundayYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SundayYn { get; set; } + + [Newtonsoft.Json.JsonProperty("nonSittingActivityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType NonSittingActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("scheduledActivityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ScheduledActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityType +{ + [Newtonsoft.Json.JsonProperty("activityCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDisplayCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDisplayCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("activityJustinCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityJustinCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("helpTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string HelpTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("commentTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CommentTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("noteRequiredYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string NoteRequiredYn { get; set; } + + [Newtonsoft.Json.JsonProperty("actSymbol", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActSymbol { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("division", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityClass Division { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTypeClasses", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTypeClasses { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySetting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivitySettingType ActivitySetting { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCd { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("isNonSitting", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsNonSitting { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivitySettingType +{ + [Newtonsoft.Json.JsonProperty("activitySettingId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? ActivitySettingId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationActivity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public LocationActivity LocationActivity { get; set; } + + [Newtonsoft.Json.JsonProperty("activityType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public ActivityType ActivityType { get; set; } + + [Newtonsoft.Json.JsonProperty("activityCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCd { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudiciaryType JudiciaryType { get; set; } + + [Newtonsoft.Json.JsonProperty("capacityConstraintType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public CapacityConstraintType CapacityConstraintType { get; set; } + + [Newtonsoft.Json.JsonProperty("repeatingPatternType", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public RepeatingPatternType RepeatingPatternType { get; set; } + + [Newtonsoft.Json.JsonProperty("activeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActiveYn { get; set; } + + [Newtonsoft.Json.JsonProperty("activitySettingDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivitySettingDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("hearingStartSameTimeYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string HearingStartSameTimeYn { get; set; } + + [Newtonsoft.Json.JsonProperty("precourtActivityYn", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string PrecourtActivityYn { get; set; } + + [Newtonsoft.Json.JsonProperty("presiderQty", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? PresiderQty { get; set; } + + [Newtonsoft.Json.JsonProperty("entDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? EntDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("entUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EntUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("updDtm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.DateTimeOffset? UpdDtm { get; set; } + + [Newtonsoft.Json.JsonProperty("updUserId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdUserId { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSessionParameters", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection CourtSessionParameters { get; set; } + + [Newtonsoft.Json.JsonProperty("activityTemplatePatterns", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection ActivityTemplatePatterns { get; set; } + + [Newtonsoft.Json.JsonProperty("defaultCourtRooms", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public System.Collections.Generic.ICollection DefaultCourtRooms { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudicialCalendarAssignment +{ + [Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? Id { get; set; } + + [Newtonsoft.Json.JsonProperty("tentativeScheduleId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? TentativeScheduleId { get; set; } + + [Newtonsoft.Json.JsonProperty("tentativeScheduleName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string TentativeScheduleName { get; set; } + + [Newtonsoft.Json.JsonProperty("judgeId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? JudgeId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocationName { get; set; } + + [Newtonsoft.Json.JsonProperty("date", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Date { get; set; } + + [Newtonsoft.Json.JsonProperty("activityCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDisplayCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDisplayCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDescription", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDescription { get; set; } + + [Newtonsoft.Json.JsonProperty("isCommentRequired", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsCommentRequired { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassDescription", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassDescription { get; set; } + + [Newtonsoft.Json.JsonProperty("comments", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Comments { get; set; } + + [Newtonsoft.Json.JsonProperty("isVideo", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsVideo { get; set; } + + [Newtonsoft.Json.JsonProperty("fromLocationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? FromLocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("fromLocationName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FromLocationName { get; set; } + + [Newtonsoft.Json.JsonProperty("isExtraSeniorDay", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsExtraSeniorDay { get; set; } + + [Newtonsoft.Json.JsonProperty("force", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? Force { get; set; } + + [Newtonsoft.Json.JsonProperty("ignoreWeekendUpdate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IgnoreWeekendUpdate { get; set; } + + [Newtonsoft.Json.JsonProperty("activityAm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudicialCalendarActivity ActivityAm { get; set; } + + [Newtonsoft.Json.JsonProperty("activityPm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public JudicialCalendarActivity ActivityPm { get; set; } + + [Newtonsoft.Json.JsonProperty("isJj", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsJj { get; set; } + + [Newtonsoft.Json.JsonProperty("isPcj", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsPcj { get; set; } + + [Newtonsoft.Json.JsonProperty("isJp", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsJp { get; set; } + + [Newtonsoft.Json.JsonProperty("isOther", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsOther { get; set; } + + [Newtonsoft.Json.JsonProperty("isIar", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsIar { get; set; } + + [Newtonsoft.Json.JsonProperty("removeFromActivityAm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? RemoveFromActivityAm { get; set; } + + [Newtonsoft.Json.JsonProperty("removeFromActivityPm", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? RemoveFromActivityPm { get; set; } + + [Newtonsoft.Json.JsonProperty("updateDate", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdateDate { get; set; } + + [Newtonsoft.Json.JsonProperty("updateTime", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdateTime { get; set; } + + [Newtonsoft.Json.JsonProperty("updJcmInitials", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string UpdJcmInitials { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class JudicialCalendarActivity +{ + [Newtonsoft.Json.JsonProperty("courtActivityId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? CourtActivityId { get; set; } + + [Newtonsoft.Json.JsonProperty("activityCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDescription", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDescription { get; set; } + + [Newtonsoft.Json.JsonProperty("activityDisplayCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityDisplayCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCode { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassDescription", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassDescription { get; set; } + + [Newtonsoft.Json.JsonProperty("judiciaryTypeCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudiciaryTypeCode { get; set; } + + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("locationName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string LocationName { get; set; } + + [Newtonsoft.Json.JsonProperty("fromLocationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? FromLocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("fromLocationName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FromLocationName { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoomCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtRoomCode { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtSittingCode { get; set; } + + [Newtonsoft.Json.JsonProperty("isVideo", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsVideo { get; set; } + + [Newtonsoft.Json.JsonProperty("isJJ", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsJJ { get; set; } + + [Newtonsoft.Json.JsonProperty("isPCJ", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsPCJ { get; set; } + + [Newtonsoft.Json.JsonProperty("isJP", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsJP { get; set; } + + [Newtonsoft.Json.JsonProperty("isOther", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsOther { get; set; } + + [Newtonsoft.Json.JsonProperty("isIAR", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsIAR { get; set; } + + [Newtonsoft.Json.JsonProperty("isWithinLookaheadWindow", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsWithinLookaheadWindow { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class AdjudicatorRestriction +{ + [Newtonsoft.Json.JsonProperty("pk", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string Pk { get; set; } + + [Newtonsoft.Json.JsonProperty("fileName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string FileName { get; set; } + + [Newtonsoft.Json.JsonProperty("judgeName", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JudgeName { get; set; } + + [Newtonsoft.Json.JsonProperty("appearanceReasonCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AppearanceReasonCode { get; set; } + + [Newtonsoft.Json.JsonProperty("appearanceReasonDescription", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string AppearanceReasonDescription { get; set; } + + [Newtonsoft.Json.JsonProperty("restrictionCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string RestrictionCode { get; set; } + + [Newtonsoft.Json.JsonProperty("hasIssue", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? HasIssue { get; set; } + + [Newtonsoft.Json.JsonProperty("activityCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityCode { get; set; } + + [Newtonsoft.Json.JsonProperty("courtRoomCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtRoomCode { get; set; } + + [Newtonsoft.Json.JsonProperty("courtSittingCode", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string CourtSittingCode { get; set; } + + [Newtonsoft.Json.JsonProperty("locationId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? LocationId { get; set; } + + [Newtonsoft.Json.JsonProperty("isCivil", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public bool? IsCivil { get; set; } + + [Newtonsoft.Json.JsonProperty("justinOrCeisId", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string JustinOrCeisId { get; set; } + + [Newtonsoft.Json.JsonProperty("estimatedTimeHour", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EstimatedTimeHour { get; set; } + + [Newtonsoft.Json.JsonProperty("estimatedTimeMin", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EstimatedTimeMin { get; set; } + + [Newtonsoft.Json.JsonProperty("estimatedTimeString", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string EstimatedTimeString { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class Charge +{ + [Newtonsoft.Json.JsonProperty("sectionTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SectionTxt { get; set; } + + [Newtonsoft.Json.JsonProperty("sectionDscTxt", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string SectionDscTxt { get; set; } + +} + +[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "14.2.0.0 (NJsonSchema v11.1.0.0 (Newtonsoft.Json v13.0.0.0))")] +public partial class ActivityClassUsage +{ + [Newtonsoft.Json.JsonProperty("activityClassCd", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassCd { get; set; } + + [Newtonsoft.Json.JsonProperty("numberOfCases", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public int? NumberOfCases { get; set; } + + [Newtonsoft.Json.JsonProperty("numberOfHours", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? NumberOfHours { get; set; } + + [Newtonsoft.Json.JsonProperty("activityClassDsc", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public string ActivityClassDsc { get; set; } + + [Newtonsoft.Json.JsonProperty("capacityScore", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? CapacityScore { get; set; } + + [Newtonsoft.Json.JsonProperty("totalQuantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? TotalQuantity { get; set; } + + [Newtonsoft.Json.JsonProperty("usedQuantity", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)] + public double? UsedQuantity { get; set; } + + private System.Collections.Generic.IDictionary _additionalProperties; + + [Newtonsoft.Json.JsonExtensionData] + public System.Collections.Generic.IDictionary AdditionalProperties + { + get { return _additionalProperties ?? (_additionalProperties = new System.Collections.Generic.Dictionary()); } + set { _additionalProperties = value; } + } + +} + +#pragma warning restore 8618 \ No newline at end of file diff --git a/pcss-client/Models/REST/ActivityAppearanceDetail.cs b/pcss-client/Models/REST/ActivityAppearanceDetail.cs deleted file mode 100644 index 72dfd141..00000000 --- a/pcss-client/Models/REST/ActivityAppearanceDetail.cs +++ /dev/null @@ -1,216 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class ActivityAppearanceResultsCollection - { - public ActivityAppearanceResultsCollection() - { - this.Items = new List(); - } - public List Items { get; set; } - public bool IsCourtListFiltered { get; set; } - public bool isStat { get; set; } - } - - public class ActivityAppearanceResults - { - public string DateStr { get; set; } - public int? LocationId { get; set; } - public string LocationNm { get; set; } - public string ActivityCd { get; set; } - public string ActivityDsc { get; set; } - public string ActivityClassCd { get; set; } - public string ActivityClassDsc { get; set; } - public string[] CourtRooms { get; set; } - public double CapacityTargetNumerator { get; set; } - public double? CapacityTargetDenominator { get; set; } - public int CasesTarget { get; set; } - public double TotalHours { get; set; } - public string CapacityConstraintCd { get; set; } - public string CapacityConstraintDsc { get; set; } - public List Appearances { get; set; } - public List CourtActivityDetails { get; set; } - public List CourtRoomDetails { get; set; } - } - - public class CourtRoomDetail - { - public string CourtRoomCd { get; set; } - public string AssignmentListRoomYn { get; set; } - public int CasesTarget { get; set; } - public double TotalHours { get; set; } - - public string isAM { get; set; } - - public string isPM { get; set; } - public List adjudicatorDetails { get; set; } - } - - public class AdjudicatorDetail - { - public int adjudicatorId { get; set; } - public string adjudicatorNm { get; set; } - public string adjudicatorInitials { get; set; } - public string amPm { get; set; } - } - - - public class CourtActivityDetail - { - public int? CourtActivityId { get; set; } - public string NoAdditionsYn { get; set; } - public string NoAdditionsCommentTxt { get; set; } - public string CourtSittingCd { get; set; } - } - - - - public class ActivityAppearanceDetail - { - public int? AslSortOrder { get; set; } - public string CourtDivisionCd { get; set; } - public string AppearanceDt { get; set; } - public string AppearanceTm { get; set; } - public string CourtRoomCd { get; set; } - public string CourtFileNumber { get; set; } - public int? PcssAppearanceId { get; set; } - - public bool IsComplete { get; set; } - - //For the file instead of the overall type for the court activity - //Only different from the top level if mixed - public string ActivityClassCd { get; set; } - public string ActivityClassDsc { get; set; } - - public string AppearanceReasonCd { get; set; } - public string AppearanceReasonDsc { get; set; } - public AppearanceMethod AppearanceMethod { get; set; } - public EquipmentSearchResults EquipmentBooking { get; set; } - - public string ScheduleNoteTxt { get; set; } - - public string EstimatedTimeHour { get; set; } - public string EstimatedTimeMin { get; set; } - public string EstimatedTimeString { get; set; } - - public string JustinNo { get; set; } - public string PhysicalFileId { get; set; } - public string CourtlistRefNumber { get; set; } - - public string StyleOfCause { get; set; } - public string AdjudicatorInitials { get; set; } - public string AdjudicatorNm { get; set; } - public string CaseAgeDays { get; set; } - public string VideoYn { get; set; } - public string AccusedNm { get; set; } - public string AccusedCounselNm { get; set; } - public string AppearanceId { get; set; } - public string ProfPartId { get; set; } - public string ProfSeqNo { get; set; } - - //Markers - public string InCustodyYn { get; set; } - public string DetainedYn { get; set; } - public string ContinuationYn { get; set; } - public string CondSentenceOrderYn { get; set; } - public string LackCourtTimeYn { get; set; } - public string OtherFactorsYn { get; set; } - public string OtherFactorsComment { get; set; } - public string CfcsaYn { get; set; } - public string SoftYn { get; set; } - - public string ScheduledOnDt { get; set; } - - public string ScheduledByInitials { get; set; } - - public string ScheduledByName { get; set; } - - public string ActivityCd { get; set; } - public string ActivityDsc { get; set; } - - public int? CourtActivityId { get; set; } - - public int? CourtActivitySlotId { get; set; } - - public string RemoteVideoYn { get; set; } - - public string AppearanceStatusCd { get; set; } - - public string AppearanceStatusDsc { get; set; } - - public int? TotalAppearances { get; set; } - public int? AppearanceNumber { get; set; } - - public string TrialTrackerCd { get; set; } - public string TrialTrackerDsc { get; set; } - public string TrialTrackerTrialResultTxt { get; set; } - public string TrialTrackerOtherTxt { get; set; } - - public string AslParentTrialTrackerCd { get; set; } - public string AslParentTrialTrackerDsc { get; set; } - - public string AssignmentListRoomYn { get; set; } - - public AslChildAppearance AslChildAppearance { get; set; } - public List Charges { get; set; } - public List Crown { get; set; } - - public List Counsel { get; set; } - - public JustinCounsel JustinCounsel { get; set; } - - public int? HomeLocationId { get; set; } - public string HomeLocationNm { get; set; } - public int? RemoteLocationId { get; set; } - public string RemoteLocationNm { get; set; } - public dynamic CeisCounsel { get; set; } - - public string JustinApprId { get; set; } - - public string CeisAppearanceId { get; set; } - - public List JcmComments { get; set; } - public List AppearanceAdjudicatorRestriction { get; set; } - - public string StoodDownJCMYn { get; set; } - public string CourtClassCd { get; set; } - public string AppearanceSequenceNumber { get; set; } - - public string AslCourtFileNumber - { - get - { - return string.IsNullOrEmpty(this.CourtClassCd) ? this.CourtFileNumber : string.Format("{0}-{1}", this.CourtClassCd, this.CourtFileNumber); - } - } - - public string SelfRepresentedYn { get; set; } - public string OtherRepresentedYn { get; set; } - public PcssCounsel LinkedCounsel { get; set; } - public List AslFeederAdjudicators { get; set; } - } - - public class AslChildAppearance - { - public string AdjudicatorInitials { get; set; } - public string AdjudicatorNm { get; set; } - public string CourtRoomCd { get; set; } - public string AppearanceDt { get; set; } - public string AppearanceTm { get; set; } - } - - public class UpdateAslSortOrderRequest - { - public List Appearances { get; set; } - } - - public class AslSortOrderAppearance - { - public int? AslSortOrder { get; set; } - public int? PcssAppearanceId { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/Adjudicator.cs b/pcss-client/Models/REST/Adjudicator.cs deleted file mode 100644 index e064066d..00000000 --- a/pcss-client/Models/REST/Adjudicator.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class Adjudicator - { - public int? JudiciaryPersonId { get; set; } - public decimal? PartID { get; set; } - public string AdjudicatorNm { get; set; } - public string AdjudicatorInitials { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/AdjudicatorRestriction.cs b/pcss-client/Models/REST/AdjudicatorRestriction.cs deleted file mode 100644 index dd4c9a86..00000000 --- a/pcss-client/Models/REST/AdjudicatorRestriction.cs +++ /dev/null @@ -1,48 +0,0 @@ -using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class AdjudicatorRestriction - { - public string Pk { get; set; } - public string FileName { get; set; } //no data for this yet. - - public string JudgeName { get; set; } - public string AppearanceReasonCode { get; set; } - public string AppearanceReasonDescription { get; set; } - public string RestrictionCode { get; set; } - public bool HasIssue { get; set; } - public string ActivityCode { get; set; } - public string CourtRoomCode { get; set; } - public string CourtSittingCode { get; set; } - public int LocationId { get; set; } - - public bool IsCivil { get; set; } - public string JustinOrCeisId { get; set; } - public string EstimatedTimeHour { get; set; } - public string EstimatedTimeMin { get; set; } - public string EstimatedTimeString { get; set; } - - public AdjudicatorRestriction() { } - - public override bool Equals(object obj) - { - if (obj == null) return false; - var t = obj as AdjudicatorRestriction; - if (t == null) return false; - if (Pk == t.Pk) return true; - - return false; - } - public override int GetHashCode() - { - int hash = GetType().GetHashCode(); - hash = (hash * 397) ^ Pk.GetHashCode(); - return hash; - } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/AppearanceMethod.cs b/pcss-client/Models/REST/AppearanceMethod.cs deleted file mode 100644 index 3b04f831..00000000 --- a/pcss-client/Models/REST/AppearanceMethod.cs +++ /dev/null @@ -1,67 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class AppearanceMethod - { - public AppearanceMethod() - { - Details = new List(); - } - public string ResponseMessageTxt { get; set; } - public string ResponseCd { get; set; } - public string CourtDivisionCd { get; set; } - public List Details { get; set; } - } - - public class AppearanceMethodDetail - { - /* Both*/ - public string AppearanceId { get; set; } - /* Both*/ - public string RoleTypeCd { get; set; } - /* Both */ - public string AppearanceMethodCd { get; set; } - - /* Criminal Only */ - public string AssetUsageSeqNo { get; set; } - /* Criminal Only */ - public string PhoneNumberTxt { get; set; } - /* Criminal Only */ - public string InstructionTxt { get; set; } - /* Criminal Only */ - public string ApprMethodCcn { get; set; } - - /* Civil Only */ - public string OrigRoleCd { get; set; } - /* Civil Only */ - public string OrigAppearanceMethodCd { get; set; } - } - - /// - /// A flattened version of the model for saving and updating since the front end only supports one at a time - /// - public class AppearanceMethodSaveAndUpdateModel : AppearanceMethodDetail - { - public string CourtDivisionCd { get; set; } - } - - public class AssetType { - public string AssetTypeCd { get; set; } - public string AssetTypeDsc { get; set; } - } - - public class AppearanceMethodAllowedCombo - { - public AppearanceMethodAllowedCombo() - { - AssetTypes = new List(); - } - public string ParticipantRoleTypeCd { get; set; } - public string ParticipantRoleTypeDsc { get; set; } - public List AssetTypes { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/BestDateSearch.cs b/pcss-client/Models/REST/BestDateSearch.cs deleted file mode 100644 index 89475657..00000000 --- a/pcss-client/Models/REST/BestDateSearch.cs +++ /dev/null @@ -1,377 +0,0 @@ -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - - public class RequiredPerson - { - public string PartId { get; set; } - public string PersonTypeCd { get; set; } - } - - public class ActivityType - { - public string ActivityCd { get; set; } - public string ActivityClassCd { get; set; } - } - - public class FindBestDateParameters - { - public FindBestDateParameters() - { - RequiredPersonnel = new List(); - } - - public int LocationId { get; set; } - - public double? AdjPartId { get; set; } - - public double? EstimatedQty { get; set; } - public string EstimatedUnitCd { get; set; } - - public string StartDate { get; set; } - public string EndDate { get; set; } - public int? JustinNo { get; set; } - public double? PhysicalFileId { get; set; } - public List RequiredPersonnel { get; set; } - public List CounselIds { get; set; } - - public List ActivityCds { get; set; } - - public string BestDateYn { get; set; } - public string IncludeAppearancesYn { get; set; } - - - - } - - public class FindBestDateResult - { - public FindBestDateResult() - { - PersonnelAvailability = new List(); - OfferedDates = new List(); - CounselAvailability = new List(); - Restrictions = new List(); - Appearances = new List(); - } - public DateTime Date { get; set; } - public string DateStr { get; set; } - - public bool CapacityFlag { get; set; } - public double? CapacityScore { get; set; } - - public bool WitnessFlag { get; set; } - public double WitnessScore { get; set; } - public bool JudgeFlag { get; set; } - public bool AdditionsAllowedFlag { get; set; } - public string ClosedComments { get; set; } - public bool WrongDurationFlag { get; set; } - public bool CounselAvailabilityFlag { get; set; } - public bool CrownCounselAvailabilityFlag { get; set; } - public bool BestDateFlag { get; set; } - - public double? TotalQuantity { get; set; } - public double? UsedQuantity { get; set; } - public int? NumberOfCases { get; set; } - public double? NumberOfHours { get; set; } - - public List PersonnelAvailability { get; set; } - public List ActivityClassUsages { get; set; } - public string AvailabilityCd - { - get - { - return CounselAvailability.Any(x => x.Details != null && x.Details.Any()) ? Constants.AVAIL_PROV_COURT : Constants.AVAIL_UNKNOWN; - } - } - public string ActivityCd { get; set; } - public string ActivityCdDsc { get; set; } - public string CourtRoomCd { get; set; } - - public string CapacityConstraintCd { get; set; } - public List OfferedDates { get; set; } - public List CounselAvailability { get; set; } - public JudgeAvailability JudgeAvailability { get; set; } - public List Restrictions { get; set; } - public bool HasRestrictions { get { return Restrictions.Count > 0; } } - public bool HasAdjudicatorIssues { get { return Restrictions.Exists(x => x.HasIssue); } } - - // task2658 - public List Appearances { get; set; } - - - public bool CompletedPersonnelSearch { get; set; } - } - - public class ActivityClassUsage - { - public string ActivityClassCd { get; set; } - public int? NumberOfCases { get; set; } - public double? NumberOfHours { get; set; } - - public string ActivityClassDsc { get; set; } - - public double CapacityScore { get; set; } - - public double TotalQuantity { get; set; } - - public double UsedQuantity { get; set; } - } - - public class GetPersonnelAvailabilityParameters - { - public string StartDate { get; set; } - public string EndDate { get; set; } - public string AssignmentDate { get; set; } - public List RequiredPersonnel { get; set; } - public int? LocationId { get; set; } - - } - - public class GetCounselAvailabilityParameters - { - public string StartDate { get; set; } - public string EndDate { get; set; } - public List CounselIds { get; set; } - } - - public class GetJudgeAvailabilityParameters - { - public string StartDate { get; set; } - public string EndDate { get; set; } - public double AdjPartId { get; set; } - public int LocationId { get; set; } - public string ActivityCd { get; set; } - } - - public class Assignment - { - public string AssignmentTypeDsc { get; set; } - public string CreateDt { get; set; } - public string StartDt { get; set; } - public string EndDt { get; set; } - public string PoliceAgencyDsc { get; set; } - } - - public class Commitment - { - public string CommitmentTypeDsc { get; set; } - - public string ActivityTypeCd { get; set; } - public string ActivityTypeDsc { get; set; } - - public string CreatedDt { get; set; } - public string CourtAgencyId { get; set; } - public int? LocationId { get; set; } - public string LocationNm { get; set; } - public string RegionNm { get; set; } - public string CourtRoomCd { get; set; } - public string CommitmentDt { get; set; } - public string CommitmentTm { get; set; } - public string DurationHour { get; set; } - public string DurationMin { get; set; } - public string CourtFileNo { get; set; } - public string CommitmentTxt { get; set; } - - - } - - public class PersonnelAssignmentDetail - { - public string PartId { get; set; } - public string AssignmentDt { get; set; } - public string DutyDsc { get; set; } - public string ShiftLadderDsc { get; set; } - public List Assignments { get; set; } - public List Commitments { get; set; } - } - - public class GetPersonnelAvailabilityResult - { - public GetPersonnelAvailabilityResult() - { - PersonnelDetails = new List(); - WitnessScores = new List(); - } - - public List PersonnelDetails { get; set; } - public List WitnessScores { get; set; } - } - - public class PersonnelWitnessScores - { - public DateTime Date { get; set; } - public double WitnessScore { get; set; } - } - - public class PersonnelAvailabilityAndAssignmentDetails - { - public string FullNm { get; set; } - public string PartId { get; set; } - public string PersonTypeCd { get; set; } - public List PersonnelAvailability { get; set; } - public List AssignmentDetails { get; set; } - - public string PinCodeTxt { get; set; } - - public string AgencyDsc { get; set; } - - public string AgencyCd { get; set; } - } - - public class Personnel - { - public string LastNm { get; set; } - public string FirstNm { get; set; } - public string PinTxt { get; set; } - public string PartId { get; set; } - - public string AgencyDsc { get; set; } - - public string AgencyCd { get; set; } - } - - public class CounselAvailabilityResult - { - public int CounselId { get; set; } - public int? LawSocietyId { get; set; } - public string LastNm { get; set; } - public string GivenNm { get; set; } - public string PrefNm { get; set; } - public string FullNm { get { return LastNm + ", " + GivenNm; } } - public List CounselAvailabilities { get; set; } - } - - public class CounselAvailability - { - public int CounselId { get; set; } - public int? LawSocietyId { get; set; } - public string LastNm { get; set; } - public string GivenNm { get; set; } - public string PrefNm { get; set; } - public string FullNm { get { return LastNm + ", " + GivenNm; } } - public string OrgNm { get; set; } - public DateTime Date { get; set; } - public string DateStr { get; set; } - public List Details { get; set; } - public string AvailabilityCd - { - get - { - return (Details != null && Details.Any()) ? Constants.AVAIL_PROV_COURT : Constants.AVAIL_UNKNOWN; - } - } - } - - public class CounselAvailabilityDetail - { - public string AppearanceTm { get; set; } - public int? LocationId { get; set; } - public string LocationNm { get; set; } - public string CourtRoomCd { get; set; } - public double? EstimatedQty { get; set; } - public string EstimatedUnitCd { get; set; } - - public string CourtFileNumber { get; set; } - public int? PcssAppearanceId { get; set; } - public string JustinNo { get; set; } - public string PhysicalFileId { get; set; } - - public override bool Equals(object obj) - { - if (obj == null) return false; - var t = obj as CounselAvailabilityDetail; - if (t == null) return false; - return true; - } - - public override int GetHashCode() - { - int hash = GetType().GetHashCode(); - return hash; - } - } - - public class JudgeAvailabilityResult - { - public string FullNm { get; set; } - public double AdjPartId { get; set; } - public string HomeLocationSNm { get; set; } - public List JudgeAvailabilities { get; set; } - } - - public class JudgeAvailability - { - public JudgeAvailability() - { - AssignmentDetails = new List(); - Restrictions = new List(); - } - - public string FullNm { get; set; } - public double AdjPartId { get; set; } - public string HomeLocationSNm { get; set; } - public string AvailabilityCd { get; set; } - public string AvailabilityDsc { get; set; } - public DateTime Date { get; set; } - public string DateStr { get; set; } - public List AssignmentDetails { get; set; } - public List Restrictions { get; set; } - } - - public class JudgeAssignmentDetail - { - public int? LocationId { get; set; } - public string LocationNm { get; set; } - public string JudgeActivityCd { get; set; } - public string JudgeActivityDsc { get; set; } - public string CourtActivityCd { get; set; } - public string CourtActivityDsc { get; set; } - public int? CourtLocationId { get; set; } - public string CourtLocationNm { get; set; } - public string CourtRoomCd { get; set; } - public string CommentTxt { get; set; } - public string VideoYn { get; set; } - public string CourtSittingCd { get; set; } - } - - - public class BestDateAppearanceDetail - { - public BestDateAppearanceDetail() - { - AppearanceAdjudicatorRestriction = new List(); - } - public int LocationId { get; set; } - public string CourtRoomCd { get; set; } - - public int AppearanceId { get; set; } - public string AppearanceDt { get; set; } - public string AppearanceTm { get; set; } - - public string CourtFileNumber { get; set; } - public string CourtDivisionCd { get; set; } - - public string ActivityCd { get; set; } - - public string ActivityClassCd { get; set; } - - public string AppearanceReasonCd { get; set; } - - public int TotalAppearances { get; set; } - public int AppearanceNumber { get; set; } - - public string EstimatedTimeHour { get; set; } - public string EstimatedTimeMin { get; set; } - public string EstimatedTimeString { get; set; } - public string JustinNo { get; set; } - public string PhysicalFileId { get; set; } - - public List AppearanceAdjudicatorRestriction { get; set; } - } -} diff --git a/pcss-client/Models/REST/CourtActivities.cs b/pcss-client/Models/REST/CourtActivities.cs deleted file mode 100644 index a91a5a76..00000000 --- a/pcss-client/Models/REST/CourtActivities.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace PCSS.Models.REST -{ - public class CourtActivity - { - public virtual int? CourtActivityId { get; set; } - public virtual int? CourtActivitySlotId { get; set; } - public virtual string CourtActivityDt { get; set; } - public virtual int LocationId { get; set; } - public virtual string CourtRoomCd { get; set; } - public virtual string ActivityCd { get; set; } - public virtual string ActivityDsc { get; set; } - public virtual string CourtSittingCd { get; set; } - public virtual string StartTm { get; set; } - - public string ActivityClassCd { get; set; } - - public string ActivityClassDsc { get; set; } - } -} diff --git a/pcss-client/Models/REST/EquipmentBooking.cs b/pcss-client/Models/REST/EquipmentBooking.cs deleted file mode 100644 index 7908a977..00000000 --- a/pcss-client/Models/REST/EquipmentBooking.cs +++ /dev/null @@ -1,81 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - - public class EquipmentBooking - { - public string AppearanceId { get; set; } - public string CourtDivisionCd { get; set; } - public string ResourceId { get; set; } - public string BookingDt { get; set; } - public string BookingFromTm { get; set; } - public string BookingToTm { get; set; } - - public int? LocationId { get; set; } - public string LocationNm { get; set; } - - public string CourtRoomCd { get; set; } - - public string BookingCommentTxt { get; set; } - - public string CourtFileNumberTxt { get; set; } - public string BookedByNm { get; set; } - - //Only for edits - public string BookingId { get; set; } - public string BookingCcn { get; set; } - - //For the return values form the web service - public string ResponseMessageTxt { get; set; } - public string ResponseCd { get; set; } - } - - /// - /// Class to hold the search parameters for booking equipment - /// - public class EquipmentSearch - { - public string BookingDt { get; set; } - public string CourtDivisionCd { get; set; } - public string AssetTypeCd { get; set; } - public string BookingFromTm { get; set; } - public string BookingToTm { get; set; } - - public int? PrimaryLocationId { get; set; } - public string PrimaryCourtRoomCd { get; set; } - public int? SecondaryLocationId { get; set; } - public string SecondaryCourtRoomCd { get; set; } - } - - /// - /// For Equipment Search results - /// - public class Equipment - { - public int? LocationId { get; set; } - public string ResourceId { get; set; } - public string ResourceNm { get; set; } - public string AssetTypeCd { get; set; } - public string AssetUsageRuleCd { get; set; } - public string CommentTxt { get; set; } - public string PhoneNumberTxt { get; set; } - public List AvailableRooms { get; set; } - public List EquipmentBookings { get; set; } - } - - public class EquipmentSearchResults - { - //For the return values form the web service - public string AppearanceId { get; set; } - public string ResponseMessageTxt { get; set; } - public string ResponseCd { get; set; } - public List PrimaryResource { get; set; } - public List SecondaryResource { get; set; } - } - - -} \ No newline at end of file diff --git a/pcss-client/Models/REST/FileDetail.cs b/pcss-client/Models/REST/FileDetail.cs deleted file mode 100644 index 89f6f2b1..00000000 --- a/pcss-client/Models/REST/FileDetail.cs +++ /dev/null @@ -1,169 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class Ban - { - public string BanSeqNo { get; set; } - public string CommentTxt { get; set; } - public string BanTypeCd { get; set; } - public string BanTypeDsc { get; set; } - public string BanTypeAct { get; set; } - public string BanTypeSection { get; set; } - public string BanTypeSubSection { get; set; } - public string BanStatuteId { get; set; } - public string BanOrderDate { get; set; } - public string PartId { get; set; } - } - - public class AppearanceCount - { - public string AppearanceDate { get; set; } - public string ChargeTxt { get; set; } - public string ChargeDscTxt { get; set; } - public string CountNumber { get; set; } - public string Finding { get; set; } - public string AppearanceResult { get; set; } - public string ParticipantId { get; set; } - public List Sentences { get; set; } - } - - public class Sentence - { - public string AppearanceDate { get; set; } - public string Charge { get; set; } - public string CountNumber { get; set; } - public string Finding { get; set; } - public string ParticipantId { get; set; } - public string SntpCd { get; set; } - public string SentTermPeriodQty { get; set; } - public string SentTermCd { get; set; } - public string SentSubtermPeriodQty { get; set; } - public string SentSubtermCd { get; set; } - public string SentTertiaryTermPeriodQty { get; set; } - public string SentTertiaryTermCd { get; set; } - public string SentIntermittentYn { get; set; } - public string SentMonetaryAmt { get; set; } - public string SentDueTtpDt { get; set; } - public string SentEffectiveDt { get; set; } - public string SentDetailTxt { get; set; } - public string SentRecTxt { get; set; } - public string SentYcjaAdultYouthCd { get; set; } - public string SentCustodySecureYn { get; set; } - public List DocmIds { get; set; } - } - - public class Seal - { - public string SealTypeCd { get; set; } - public string SealTypeDsc { get; set; } - } - - public class Charge - { - public string SectionTxt { get; set; } - public string SectionDscTxt { get; set; } - } - - public class Crown - { - public string PartId { get; set; } - public string LastNm { get; set; } - public string GivenNm { get; set; } - public string AssignedYn { get; set; } - - } - - public class JustinCounsel - { - public string LastNm { get; set; } - public string GivenNm { get; set; } - public string CounselEnteredDt { get; set; } - public string CounselPartId { get; set; } - public string CounselRelatedRepTypeCd { get; set; } - public string CounselRrepId { get; set; } - } - - public class PcssCounsel - { - public int? CounselId { get; set; } - public int? LawSocietyId { get; set; } - public string LastNm { get; set; } - public string GivenNm { get; set; } - public string PrefNm { get; set; } - public string AddressLine1Txt { get; set; } - public string AddressLine2Txt { get; set; } - public string CityTxt { get; set; } - public string Province { get; set; } - public string PostalCode { get; set; } - public string PhoneNoTxt { get; set; } - public string EmailAddressTxt { get; set; } - public string ActiveYn { get; set; } - public string CounselType { get; set; } - public string OrgNm { get; set; } - } - - public class JcmComment - { - public int? JcmCommentId { get; set; } - public string JustinNo { get; set; } - public string PhysicalFileId { get; set; } - public string CommentTxt { get; set; } - public string EntDtm { get; set; } - public string UpdDtm { get; set;} - public string RotaInitialsCd { get; set; } - public string FullName { get; set; } - } - - public class CivilDocumentDetail - { - public string ImageId { get; set; } - public string CivilDocumentId { get; set; } - public string FileSeqNo { get; set; } - public string DocumentTypeCd { get; set; } - public string DocumentTypeDsc { get; set; } - public string OrderMadeDt { get; set; } - public string FiledDt { get; set; } - public string FiledByName { get; set; } - public string Category { get; set; } - public string CommentTxt { get; set; } - public string ConcludedYn { get; set; } - public bool? HasFutureAppearance { get; set; } - public string LastAppearanceDt { get; set; } - public string NextAppearanceDt { get; set; } - public string CeisAppearanceId { get; set; } - public string JcDocument { get; set; } - public string PageNumberTotal { get; set; } - public string SealedYN { get; set; } - public string SwornByNm { get;set;} - public string AffidavitNo { get;set;} - public IEnumerable DocumentSupport { get; set; } - public IEnumerable Issue { get; set; } - public IEnumerable ReferenceDocumentInterest { get;set; } - - } - - public class ReferenceDocumentInterest - { - public string PartyId { get;set; } - public string PartyName { get;set; } - public string NonPartyName { get;set; } - } - - public class DocumentSupport - { - public string ActCd { get; set; } - public string ActDsc { get; set; } - } - - public class Issue - { - public string IssueTypeCd { get; set; } - public string IssueNumber { get; set; } - public string IssueDsc { get; set; } - public string ConcludedYn { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/HearingRestriction.cs b/pcss-client/Models/REST/HearingRestriction.cs deleted file mode 100644 index 4118edf9..00000000 --- a/pcss-client/Models/REST/HearingRestriction.cs +++ /dev/null @@ -1,49 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public abstract class BaseHearingRestriction - { - public string HearingRestrictionId { get; set; } - public int? PcssHearingRestrictionId { get; set; } - public string AdjPartId { get; set; } - public string AdjFullNm { get; set; } - public string AdjInitialsTxt { get; set; } - public string HearingRestrictionTypeCd { get; set; } - public string HearingRestrictionTypeDsc { get; set; } - public string HearingRestrictionCcn { get; set; } - public string ResponseMessageTxt { get; set; } - public string ResponseCd { get; set; } - public string FileNoTxt { get; set; } - } - - public class CriminalHearingRestriction : BaseHearingRestriction - { - public string JustinNo { get; set; } - public string PartId { get; set; } - public string ProfSeqNo { get; set; } - public string PartNm { get; set; } - } - - public class CivilHearingRestriction : BaseHearingRestriction - { - public string PhysicalFileId { get; set; } - public string CivilDocumentId { get; set; } - public string ApplyToNm { get; set; } - } - - public class AppearanceAdjudicatorRestriction - { - public int? AppearanceAdjudicatorRestrictionId { get; set; } - public int? HearingRestrictionId { get; set; } - public string HearingRestrictionCd { get; set; } - public int? JudgeId { get; set; } - public string JudgesInitials { get; set; } - public string FileNoTxt { get; set; } - public string HearingRestrictionTxt { get; set; } - public bool HasIssue { get; set; } - } -} diff --git a/pcss-client/Models/REST/JudicialCalendar.cs b/pcss-client/Models/REST/JudicialCalendar.cs deleted file mode 100644 index 63bd9e82..00000000 --- a/pcss-client/Models/REST/JudicialCalendar.cs +++ /dev/null @@ -1,245 +0,0 @@ -using Newtonsoft.Json; -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST.JudicialCalendar -{ - public class JudicialCalendar - { - public int Id { get; set; } - public string RotaInitials { get; set; } - public double ParticipantId { get; set; } - - public int HomeLocationId { get; set; } - public string HomeLocationName { get; set; } - - public string RegionCode { get; set; } - public int? WorkAreaSequenceNo { get; set; } - - public string LastName { get; set; } - public string Name { get; set; } - public string PositionTypeCode { get; set; } - public string PositionTypeDescription { get; set; } - public string PositionCode { get; set; } - public string PositionDescription { get; set; } - public string PositionStatusCode { get; set; } - public string PositionStatusDescription { get; set; } - public bool IsPresider { get; set; } - public bool IsJudge { get; set; } - public bool IsAdmin { get; set; } - - public JudicialCalendar() - { - this.Days = new List(); - } - - public List Days { get; set; } - public void AddDay(JudicialCalendarDay day) - { - day.JudgeId = this.Id; - this.Days.Add(day); - } - public JudicialCalendarDay GetDay(DateTime date) - { - JudicialCalendarDay item = this.Days.Find(d => d.Date.Equals(date.ToString(Constants.DATE_FORMAT), StringComparison.OrdinalIgnoreCase)); - if (item == null) - { - item = new JudicialCalendarDay(this.Id, date); - AddDay(item); - } - return item; - } - - public JudicialCalendarDay GetDay(String dateStr) - { - JudicialCalendarDay item = this.Days.Find(d => d.Date.Equals(dateStr, StringComparison.OrdinalIgnoreCase)); - if (item == null) - { - item = new JudicialCalendarDay(this.Id, DateTime.ParseExact(dateStr, Constants.DATE_FORMAT, CultureInfo.CurrentCulture)); - AddDay(item); - } - return item; - } - } - - public class JudicialCalendarDay - { - private JudicialCalendarAssignment _assignment; - private List _restrictions = new List(); - public int JudgeId { get; set; } - public string Date { get; set; } - - // these things can change from day to day.... - public string Name { get; set; } - public string LastName { get; set; } - public string PositionTypeCode { get; set; } - public string PositionTypeDescription { get; set; } - public string PositionCode { get; set; } - public string PositionDescription { get; set; } - public string PositionStatusCode { get; set; } - public string PositionStatusDescription { get; set; } - public bool IsPresider { get; set; } - public bool IsJudge { get; set; } - public bool IsAdmin { get; set; } - - public List Restrictions { get { return _restrictions; } } - public bool HasRestrictions { get { return Restrictions.Count > 0; } } - public bool HasAdjudicatorIssues { get { return Restrictions.Exists(x => x.HasIssue); } } - - public List HaveJudgeDetails { get; set; } - - public JudicialCalendarDay() { } - - public JudicialCalendarDay(int judgeId, DateTime date) - { - this.JudgeId = judgeId; - this.Date = date.ToString(Constants.DATE_FORMAT); - } - - public JudicialCalendarAssignment Assignment - { - get { return _assignment; } - set - { - value.JudgeId = this.JudgeId; - value.Date = this.Date; - this._assignment = value; - } - } - - public DateTime GetDate() - { - return DateTime.ParseExact(Date, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); - } - - } - - public class JudicialCalendarAssignment - { - public int? Id { get; set; } - public int? TentativeScheduleId { get; set; } - public string TentativeScheduleName { get; set; } - - public int JudgeId { get; set; } - - public int? LocationId { get; set; } - public string LocationName { get; set; } - - public string Date { get; set; } - - public string ActivityCode { get; set; } - public string ActivityDisplayCode { get; set; } - public string ActivityDescription { get; set; } - public bool IsCommentRequired { get; set; } - - public string ActivityClassCode { get; set; } - public string ActivityClassDescription { get; set; } - - public string Comments { get; set; } - public bool IsVideo { get; set; } - public int? FromLocationId { get; set; } - public string FromLocationName { get; set; } - public bool IsExtraSeniorDay { get; set; } - - public bool Force { get; set; } // force this assignment regardless of GNSD or Weekend. - public bool IgnoreWeekendUpdate { get; set; } // don't validate GSND or weekend, as we won't save them... - - public JudicialCalendarActivity ActivityAm { get; set; } - public JudicialCalendarActivity ActivityPm { get; set; } - - [JsonProperty(PropertyName = "IsJj")] - public bool IsJJ { get; set; } - [JsonProperty(PropertyName = "IsPcj")] - public bool IsPCJ { get; set; } - [JsonProperty(PropertyName = "IsJp")] - public bool IsJP { get; set; } - [JsonProperty(PropertyName = "IsOther")] - public bool IsOther { get { return !(IsJJ || IsPCJ || IsJP || IsIAR); } } - [JsonProperty(PropertyName = "IsIar")] - public bool IsIAR { get { return !(IsJJ || IsPCJ || IsJP) && "IA" == this.ActivityCode; } } - [JsonIgnore] - public bool IsPublished { get; set; } - - // only used on save... - public bool RemoveFromActivityAm { get; set; } - public bool RemoveFromActivityPm { get; set; } - public string UpdateDate { get; set; } - - public string UpdateTime { get; set; } - public string UpdJcmInitials { get; set; } - } - public class JudicialCalendarActivity - { - public int CourtActivityId { get; set; } - public string ActivityCode { get; set; } - public string ActivityDescription { get; set; } - public string ActivityDisplayCode { get; set; } - public string ActivityClassCode { get; set; } - public string ActivityClassDescription { get; set; } - public string JudiciaryTypeCode { get; set; } - - public int LocationId { get; set; } - public string LocationName { get; set; } - public int? FromLocationId { get; set; } - public string FromLocationName { get; set; } - public string CourtRoomCode { get; set; } - public string CourtSittingCode { get; set; } - - public bool IsVideo { get { return this.FromLocationId != null && this.FromLocationId > 0; } } - public bool IsJJ { get { return "JJ" == this.JudiciaryTypeCode; } } - public bool IsPCJ { get { return "PCJ" == this.JudiciaryTypeCode; } } - public bool IsJP { get { return "JP" == this.JudiciaryTypeCode; } } - public bool IsOther { get { return !(IsJJ || IsPCJ || IsJP || IsIAR); } } - public bool IsIAR { get { return !(IsJJ || IsPCJ || IsJP) && "IA" == this.ActivityCode; } } - public bool IsWithinLookaheadWindow { get; set; } - - } - - public class Case - { - //Both - public string FileNumberTxt { get; set; } - public int LocationId { get; set; } - public string LocationNm { get; set; } - - public string NextApprDt { get; set; } - public string CourtDivisionCd { get; set; } - public List Participants { get; set; } - - //Criminal Only - public int? JustinNo { get; set; } - public double? ProfPartId { get; set; } - public double? ProfSeqNo { get; set; } - - //Civil Only - public double? PhysicalFileId { get; set; } - public double? CivilDocumentId { get; set; } - } - - public class Participant - { - public string FullName { get; set; } - public List Charges { get; set; } - } - - public class HaveJudgeResponse - { - - public int? HaveJudgeId { get; set; } - public int? JudiciaryPersonId { get; set; } - public int? JudicialScheduleId { get; set; } - public string RotaInitialsCd { get; set; } - public string FullNm { get; set; } - public int? LocationId { get; set; } - public string LocationNm { get; set; } - public DateTime CalendarDt { get; set; } - public string CourtSittingCd { get; set; } - public virtual string CourtSittingDsc { get; set; } - public string HaveJudgeTypeCd { get; set; } - public virtual string HaveJudgeTypeDsc { get; set; } - } -} diff --git a/pcss-client/Models/REST/OfferedDate.cs b/pcss-client/Models/REST/OfferedDate.cs deleted file mode 100644 index fbf738ce..00000000 --- a/pcss-client/Models/REST/OfferedDate.cs +++ /dev/null @@ -1,19 +0,0 @@ -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class OfferedDate - { - public string DeclineRoleCd { get; set; } - public DateTime OfferedDt { get; set; } - public string DeclineReasonTxt { get; set; } - public int? JustinNo { get; set; } - public double? PhysicalFileId { get; set; } - - - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/Person.cs b/pcss-client/Models/REST/Person.cs deleted file mode 100644 index 74abf26a..00000000 --- a/pcss-client/Models/REST/Person.cs +++ /dev/null @@ -1,475 +0,0 @@ -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class Person - { - public int? Id { get; set; } - - public int? UserId { get; set; } - public double? ParticipantId { get; set; } - public int? HomeLocationId { get; set; } - public string HomeLocationName { get; set; } - - public string GenderTypeCode { get; set; } - public string GenderTypeDescription { get; set; } - public string MaritalStatusCode { get; set; } - public string MaritalStatusDescription { get; set; } - public string RotaInitials { get; set; } - public string JudicialNo { get; set; } - public string SocialInsuranceNo { get; set; } - public string EmployeeNo { get; set; } - public string ScheduleGeneratedDate { get; set; } - public string SchedulePublishedDate { get; set; } - - public Person() - { - this.Names = new List(); - this.Statuses = new List(); - this.Addresses = new List(); - this.Communications = new List(); - this.Contacts = new List(); - this.Entitlements = new List(); - this.HomeLocations = new List(); - } - - public List Names { get; set; } - public void AddName(PersonName item) - { - item.PersonId = this.Id; - if (item.Id != null && this.Names.Exists(x => x.Id != null && x.Id.Value == item.Id.Value)) - { - this.Names.RemoveAll(x => x.Id.Value == item.Id.Value); - } - List casted = this.Names.Cast().ToList(); - item.AddToList(casted); - this.Names = casted.Cast().ToList(); - } - - - public List Statuses { get; set; } - public void AddStatus(PersonStatus item) - { - item.PersonId = this.Id; - if (item.Id != null && this.Statuses.Exists(x => x.Id != null && x.Id.Value == item.Id.Value) ) - { - this.Statuses.RemoveAll(x => x.Id.Value == item.Id.Value); - } - List casted = this.Statuses.Cast().ToList(); - item.AddToList(casted); - this.Statuses = casted.Cast().ToList(); - } - - - - public List HomeLocations { get; set; } - public void AddHomeLocation(HomeLocation item) - { - item.PersonId = this.Id; - if (item.Id != null && this.HomeLocations.Exists(x => x.Id != null && x.Id.Value == item.Id.Value)) - { - this.HomeLocations.RemoveAll(x => x.Id.Value == item.Id.Value); - } - List casted = this.HomeLocations.Cast().ToList(); - item.PlaceInList(casted); - this.HomeLocations = casted.Cast().ToList(); - } - - - - public List Addresses { get; set; } - public void AddAddress(PersonAddress item) - { - item.PersonId = this.Id; - this.Addresses.Add(item); - } - - public List Communications { get; set; } - public void AddCommunication(PersonCommunication item) - { - item.PersonId = this.Id; - this.Communications.Add(item); - } - - public List Contacts { get; set; } - public void AddContact(PersonContact item) - { - item.PersonId = this.Id; - this.Contacts.Add(item); - } - - public List Entitlements { get; set; } - public void AddEntitlement(PersonEntitlement item) - { - item.PersonId = this.Id; - this.Entitlements.Add(item); - } - - - public string CurrentJudiciaryTypeCode { get; set; } - public string CurrentIsSenior { get; set; } - - public string CurrentEntitlementCalcType { get; set; } - public bool CurrentIsHours { get { return "H".Equals(CurrentEntitlementCalcType, StringComparison.OrdinalIgnoreCase); } } - } - public class PersonAddress - { - public int? Id { get; set; } - public int? PersonId { get; set; } - - public string AddressTypeCode { get; set; } - public string AddressTypeDescription { get; set; } - - public string AddressLine1 { get; set; } - public string AddressLine2 { get; set; } - public string PostalCode { get; set; } - public string PhoneNumber { get; set; } - public bool IsActive { get; set; } - - public int? CityId { get; set; } - public string CityName { get; set; } - - public virtual string ProvinceCode { get; set; } - public virtual string ProvinceDescription { get; set; } - - public int? CountryId { get; set; } - public string CountryName { get; set; } - - } - public class PersonContact - { - public int? Id { get; set; } - public int? PersonId { get; set; } - - public string RelationshipCode { get; set; } - public string RelationshipDescription { get; set; } - - public string ContactName { get; set; } - public string PhoneNumber { get; set; } - } - public class PersonEntitlement - { - public int? Id { get; set; } - public int? PersonId { get; set; } - - public double? Hours { get; set; } - public double? Days { get; set; } - - public string Title { get; set; } - - public string EffectiveDate { get; set; } - public string ExpiryDate { get; set; } - - public DateTime? GetEffectiveDate() - { - try - { - return DateTime.ParseExact(EffectiveDate, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); - } - catch (Exception) - { - return null; - } - } - - public DateTime? GetExpiryDate() - { - try - { - return DateTime.ParseExact(ExpiryDate, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); - } - catch (Exception) - { - return null; - } - } - } - public class PersonName : EffectiveRange - { - public int? Id { get; set; } - public int? PersonId { get; set; } - public string LastName { get; set; } - public string FirstName { get; set; } - public string Initials { get; set; } - } - public class PersonStatus : EffectiveRange - { - public int? Id { get; set; } - public int? PersonId { get; set; } - - // position status... - public int? PositionStatusId { get; set; } - //... position type - public int? PositionTypeId { get; set; } - public string PositionCode { get; set; } - public string PositionDescription { get; set; } - //... judiciary type - public string JudiciaryTypeCode { get; set; } - public string JudiciaryTypeDescription { get; set; } - //... status - public string StatusCode { get; set; } - public string StatusDescription { get; set; } - - public string InactiveReasonCode { get; set; } - public string InactiveReasonDescription { get; set; } - - public string EntitlementCalcType { get; set; } - public bool IsHours { get { return "H".Equals(EntitlementCalcType, StringComparison.OrdinalIgnoreCase); } } - } - public class PersonCommunication - { - public int? Id { get; set; } - public int? PersonId { get; set; } - public string CommunicationTypeCode { get; set; } - public string CommunicationTypeDescription { get; set; } - public string IdentifierText { get; set; } - public bool IsActive { get; set; } - } - - public class HomeLocation : EffectiveRange - { - public int? Id { get; set; } - public int? UserId { get; set; } - public int? PersonId { get; set; } - public int? LocationId { get; set; } - public string LocationName { get; set; } - } - - public interface IEffectiveRange - { - string EffectiveDate { get; set; } - string ExpiryDate { get; set; } - - DateTime EffDate { get; } - DateTime ExpDate { get; } - - bool IsEffective(DateTime date); - - void AddToList(List list); - } - - public class EffectiveRange: IEffectiveRange - { - private string _effectiveDate; - private string _expiryDate; - private DateTime _effDate = DateTime.MinValue; - private DateTime _expDate = DateTime.MaxValue; - private bool _effectiveValid = false; - - //Disable the warning for now. - #pragma warning disable 0414 - private bool _expiryValid = false; - #pragma warning restore 0414 - - - public string EffectiveDate - { - get { return _effectiveDate; } - set - { - _effDate = DateTime.MinValue; - _effectiveValid = false; - _effectiveDate = value; - if (IsValidDateFormat(_effectiveDate)) - { - _effDate = GetDate(_effectiveDate, DateTime.MinValue).Value; - _effectiveValid = true; - } - } - } - public string ExpiryDate - { - get { return _expiryDate; } - set - { - _expDate = DateTime.MaxValue; - _expiryValid = false; - _expiryDate = value; - if (IsValidDateFormat(_expiryDate)) - { - _expDate = GetDate(_expiryDate, DateTime.MaxValue).Value; - _expiryValid = true; - } - } - } - - - public DateTime EffDate { get { return _effDate; } } - public DateTime ExpDate { get { return _expDate; } } - - public bool IsEffective(DateTime date) - { - if (string.IsNullOrEmpty(EffectiveDate)) { return false; } - return date.Date.Ticks >= EffDate.Ticks && date.Date.Ticks <= ExpDate.Ticks; - } - - public void AddToList(List items) - { - if (!_effectiveValid) - return; - - if (items.Count > 0) - { - //do we predate existing???? - DateTime minEff = items.Min(x => x.EffDate); - if (this.EffDate.Ticks <= minEff.Ticks) - { - items.Clear(); - } - else - { - IEffectiveRange eff = items.Find(x => x.IsEffective(this.EffDate)); - DateTime exp = this.EffDate.Date.AddDays(-1); - eff.ExpiryDate = exp.ToString(Constants.DATE_FORMAT); - } - } - this.ExpiryDate = null; - items.Add(this); - } - - public void PlaceInList(List items) - { - // only use for home locations... - - // find the exact place where this range item would fit in... - if (!_effectiveValid) - return; - if (items.Count == 0) - { - items.Add(this); - } - else - { - // if this doesn't expire... wipe out any thing after this... - if (string.IsNullOrEmpty(this._expiryDate)) - { - items.RemoveAll(x => x.EffDate >= this.EffDate); - // also, find the one that is effective when this starts and expire it... - IEffectiveRange eff = items.FirstOrDefault(x => x.IsEffective(this.EffDate)); - if (eff != null) - { - DateTime exp = this.EffDate.Date.AddDays(-1); - eff.ExpiryDate = exp.ToString(Constants.DATE_FORMAT); - } - } - else - { - // has effective and expiry... - // remove any that completely fall in the range - items.RemoveAll(x => x.EffDate.Date >= this.EffDate.Date && x.ExpDate.Date <= this.ExpDate.Date); - - - IEffectiveRange er = items.FirstOrDefault(x => x.IsEffective(this.EffDate)); - if (er != null) - { - HomeLocation hl = (HomeLocation)er; - if (string.IsNullOrEmpty(er.ExpiryDate)) - { - items.Add(new HomeLocation() { ExpiryDate = null, EffectiveDate = this.ExpDate.Date.AddDays(1).ToString(Constants.DATE_FORMAT), LocationId = hl.LocationId, UserId = hl.UserId }); - } - else if (er.ExpDate.Date > this.ExpDate.Date) - { - items.Add(new HomeLocation() { ExpiryDate = er.ExpiryDate, EffectiveDate = this.ExpDate.Date.AddDays(1).ToString(Constants.DATE_FORMAT), LocationId = hl.LocationId, UserId = hl.UserId }); - } - - // make it end the day before this starts - DateTime d = this.EffDate.Date.AddDays(-1); - er.ExpiryDate = d.ToString(Constants.DATE_FORMAT); - } - - er = items.FirstOrDefault(x => x.IsEffective(this.ExpDate)); - if (er != null) - { - HomeLocation hl = (HomeLocation)er; - if (er.EffDate.Date < this.EffDate.Date) - { - items.Add(new HomeLocation() { ExpiryDate = this.EffDate.Date.AddDays(-1).ToString(Constants.DATE_FORMAT), EffectiveDate = er.EffectiveDate, LocationId = hl.LocationId, UserId = hl.UserId }); - } - - // make it start the day after this ends - DateTime d = this.ExpDate.Date.AddDays(1); - er.EffectiveDate = d.ToString(Constants.DATE_FORMAT); - } - } - items.Add(this); - } - } - - private DateTime? GetDate(string value, DateTime? defaultValue) - { - if (string.IsNullOrEmpty(value)) - { - return defaultValue; - } - - try - { - return DateTime.ParseExact(value, Constants.DATE_FORMAT, CultureInfo.CurrentCulture); - } - catch (Exception) - { - return defaultValue; - } - } - - private bool IsValidDateFormat(string value) - { - if (string.IsNullOrEmpty(EffectiveDate)) - { - return false; - } - if (GetDate(value, null) == null) - { - return false; - } - return true; - } - } - - - #region PersonSearchItem - - public class PersonSearchItem - { - public int PersonId { get; set; } - - public int UserId { get; set; } - public double? ParticipantId { get; set; } - - public int HomeLocationId { get; set; } - public string HomeLocationName { get; set; } - public string RegionCode { get; set; } - public string RegionDescription { get; set; } - public int WorkAreaSeqNo { get; set; } - public string WorkAreaDescription { get; set; } - - public string RotaInitials { get; set; } - - public string LastName { get; set; } - public string FirstName { get; set; } - public string Initials { get; set; } - public string FullName { get; set; } - - public string JudiciaryTypeCode { get; set; } - public string JudiciaryTypeDescription { get; set; } - public string PositionCode { get; set; } - public string PositionDescription { get; set; } - public string StatusCode { get; set; } - public string StatusDescription { get; set; } - - public string InactiveReasonCode { get; set; } - public string InactiveReasonDescription { get; set; } - - public bool IsNonStatus { get; set; } - - public string ScheduleGeneratedDate { get; set; } - public string SchedulePublishedDate { get; set; } - } - #endregion - -} \ No newline at end of file diff --git a/pcss-client/Models/REST/PersonalAvailability.cs b/pcss-client/Models/REST/PersonalAvailability.cs deleted file mode 100644 index 35993df4..00000000 --- a/pcss-client/Models/REST/PersonalAvailability.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class PersonnelAvailability - { - public string PartId { get; set; } - public string FullNm { get; set; } - public string AvailabilityCd { get; set; } - public string AvailabilityDsc { get; set; } - public int? AvailabilityWeightFactorCd { get; set; } - public DateTime? Date { get; set; } - public string DateStr { get; set;} - public string PersonTypeCd { get; set; } - - //task 2651 - extend personnel availability to include commitments/counts - public List Commitments { get; set; } - - public PersonnelAvailability() - { - Commitments = new List(); - } - - public string PinCodeTxt { get; set; } - public string AgencyDsc { get; set; } - public string AgencyCd { get; set; } - - public string CCSSAvailabilityCode { get; set; } - public string CCSSAvailabilityNoteToJCM { get; set; } - - public static string ConvertToShortDesc(string ccssAvailCode) - { - if (ccssAvailCode == "AVAILABLE_ALL") return "A"; - if (ccssAvailCode == "AVAILABLE_AM") return "AA"; - if (ccssAvailCode == "AVAILABLE_PM") return "AP"; - if (ccssAvailCode == "LIMITED") return "LA"; - return "NA"; - } - } - - public class PersonnelCommitment : Commitment { - public string CommitmentCount { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/PoliceAgencyUpdate.cs b/pcss-client/Models/REST/PoliceAgencyUpdate.cs deleted file mode 100644 index d2b3066b..00000000 --- a/pcss-client/Models/REST/PoliceAgencyUpdate.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace PCSS.Models.REST -{ - public class PoliceAgencyUpdate - { - public double AgenId { get; set; } - public string AgenAgencyNm { get; set; } - public string AgenAgencyIdentifierCd { get; set; } - } -} diff --git a/pcss-client/Models/REST/ScheduleEvent.cs b/pcss-client/Models/REST/ScheduleEvent.cs deleted file mode 100644 index a6de9404..00000000 --- a/pcss-client/Models/REST/ScheduleEvent.cs +++ /dev/null @@ -1,343 +0,0 @@ -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class Accused - { - public double? ProfSeqNo { get; set; } - public double? PartId { get; set; } - - public string LastNm { get; set; } - - public string GivenNm { get; set; } - - public string OrgNm { get; set; } - - public string InCustodyYn { get; set; } - - public string WarrantYn { get; set; } - - public string BirthDt { get; set; } - - public object Charge { get; set; } - } - - public class CivilDocument - { - public string CivilDocumentId { get; set; } - - public string FileSeqNo { get; set; } - - public string DocumentTypeCd { get; set; } - - public string DocumentTypeDsc { get; set; } - - public string FiledDt { get; set; } - - public string ConcludedYn { get; set; } - - public bool Selected { get; set; } - } - - public class CivilParty - { - public double? PartyId { get; set; } - - public string LastNm { get; set; } - - public string GivenNm { get; set; } - - public string OrgNm { get; set; } - - public string RoleTypeCd { get; set; } - - public string RoleTypeDesc { get; set; } - - public bool Selected { get; set; } - } - - public abstract class AbstractScheduleEvent - { - //Used in most cases except for TBA special processing when we need to create the activity on the fly - public int CourtActivitySlotId { get; set; } - - //Only used when the slot is -1 and looking at TBA - public string ActivityCd { get; set; } - public string AppearanceDt { get; set; } - public int LocationId { get; set; } - - //Rest is used as appropriate - public double EstimatedQty { get; set; } - public string EstimatedUnitCd { get; set; } - public string AppearanceTm { get; set; } - public string AppearanceReasonCd { get; set; } - - public string ActivityClassCd { get; set; } - - public string ScheduleNoteTxt { get; set; } - - public string TentativeYn { get; set; } - public string TentativeExpiryDt { get; set; } - - public string SupplementalEquipmentTxt { get; set; } - public string SecurityRestrictionTxt { get; set; } - public string OutOfTownJudgeTxt { get; set; } - - public string BulkLoadFlag { get; set; } - - public dynamic EditAppearanceSupportingData { get; set; } - - //Logging features - public string SearchedForDate { get; set; } - public double? WitnessScore { get; set; } - public double? CapacityScore { get; set; } - - public string FileNumberTxt { get; set; } - - public virtual List Validate() - { - var errors = new List(); - DateTime dt; - - if (CourtActivitySlotId == 0) - { - errors.Add("Court Activity Slot cannot be 0"); - } - if (String.IsNullOrEmpty(AppearanceReasonCd)) - { - errors.Add("AppearanceReasonCd cannot be null or empty"); - } - if (String.IsNullOrEmpty(TentativeYn) || !(Constants.Y_N.Contains(TentativeYn))) - { - errors.Add("TentativeYn must be Y or N"); - } - if (!DateTime.TryParseExact(AppearanceTm, Constants.TIME_FORMAT, CultureInfo.InvariantCulture, DateTimeStyles.None, out dt)) - { - errors.Add("AppearanceTm must be in the format " + Constants.TIME_FORMAT); - } - if (TentativeYn == "Y" && !DateTime.TryParseExact(TentativeExpiryDt, Constants.DATE_FORMAT, CultureInfo.InvariantCulture, DateTimeStyles.None, out dt)) - { - errors.Add("TentativeExpiryDt must be in the format " + Constants.DATE_FORMAT); - } - if (String.IsNullOrEmpty(ActivityClassCd) || !(new string[] { "R", "I", "F" }.Contains(ActivityClassCd))) - { - errors.Add("ActivityClassCd must be R, I, or F"); - } - - return errors; - } - } - - /// - /// Rest api model for setting the date for a criminal file - /// - public class CriminalScheduleEvent: AbstractScheduleEvent - { - public int? JustinNo { get; set; } - public IList Accused { get; set; } - - public string BulkLoadJustinApprID { get; set; } - public List HearingRestrictions { get; set; } - - public override List Validate() - { - var errors = base.Validate(); - - if (JustinNo == null) - { - errors.Add("JustinNo is required"); - } - - if (TentativeYn == "N") - { - if (Accused == null || !Accused.Any()) - { - errors.Add("Accused is required"); - } - else if (Accused.Any(x => x.PartId == null || x.ProfSeqNo == null)) - { - errors.Add("PartId and ProfSeqNo is required for every accused"); - } - } - return errors; - } - } - - /// - /// Rest api model for setting the date for a criminal file - /// - public class CivilScheduleEvent : AbstractScheduleEvent - { - public string PcssCourtDivisionCd { get; set; } //Bug 2562 - ui is setting this to the proper class cd, so let's accept it and use it. - - public double? PhysicalFileId { get; set; } - public IList Documents { get; set; } - public IList Parties { get; set; } - public List HearingRestrictions { get; set; } - public string BulkLoadCeisApprID { get; set; } - - public override List Validate() - { - var errors = base.Validate(); - - if (PhysicalFileId == null) - { - errors.Add("PhysicalFileId is required"); - } - - if (TentativeYn == "N") - { - if (Documents == null || !Documents.Any()) - { - errors.Add("Documents is required"); - } - else if (Documents.Any(x => String.IsNullOrEmpty(x.CivilDocumentId))) - { - errors.Add("CivilDocumentId is required for every document"); - } - - if (Parties == null || !Parties.Any()) - { - errors.Add("Parties is required"); - } - else if (Parties.Any(x => x.PartyId == null)) - { - errors.Add("PartyId is required for every party"); - } - } - return errors; - - - } - } - - public class SchedulingEvents - { - //Only used for TBA activities - public string ActivityCd { get; set; } - public int LocationId { get; set; } - - public List criminalFiles { get; set; } - public List civilFiles { get; set; } - - public List Validate() - { - var errorList = new List(); - - if (criminalFiles == null && civilFiles == null) - { - errorList.Add("Both the criminal and civil file list is null"); - //Stop here - return errorList; - } - - if ((criminalFiles != null && !criminalFiles.Any()) - && (civilFiles != null && !civilFiles.Any())) - { - errorList.Add("Both the criminal and civil file list is empty"); - //Stop here - return errorList; - } - - if ((criminalFiles != null && criminalFiles.Any()) - && (civilFiles != null && civilFiles.Any())) - { - errorList.Add("Both the criminal and civil file list have items. Only one is supported at a time"); - //Stop here - return errorList; - } - - if (criminalFiles != null) - { - foreach (var file in criminalFiles) - { - errorList.AddRange(file.Validate()); - } - } - - if (civilFiles != null) - { - foreach (var file in civilFiles) - { - errorList.AddRange(file.Validate()); - } - } - - return errorList; - } - } - - public class AssignmentListScheduling - { - public int? CourtActivityId { get; set; } - public string CourtRoomCd { get; set; } - public int PcssAppearanceId { get; set; } - public string TrialTrackerCd { get; set; } - public double? EstimatedQty { get; set; } - public string EstimatedUnitCd { get; set; } - public string AppearanceReasonCd { get; set; } - public string JcmComments { get; set; } - } - - public class AssignmentListSchedulingEmail - { - public int CourtActivityId { get; set; } - public string CourtRoomCd { get; set; } - public string JcmComments { get; set; } - public string AppearanceReasonCd { get; set; } - public string AdjToPCJYn { get; set; } - public List Appearances { get; set; } - } - - public class JustinCeisSchedulingResponseDetail - { - public string PcssAppearanceId { get; set; } - public string AppearanceId { get; set; } - public string AppearanceCcn { get; set; } - public int? LocationId { get; set; } - public string JustinNo { get; set; } - public string PhysicalFileId { get; set; } - public string ProfSeqNo { get; set; } - public string ProfPartId { get; set; } - public string ActivityClassCd { get; set; } - } - - public class JustinCeisSchedulingResponse - { - public string ResponseCd { get; set; } - public string ResponseMessageTxt { get; set; } - public List Details { get; set; } - public override string ToString() - { - var detailsStr = ""; - if (Details != null) - { - foreach (var detail in Details) - { - if (!string.IsNullOrWhiteSpace(detailsStr)) { - detailsStr = detailsStr + ","; - } - detailsStr = detailsStr + string.Format(" PCSS AppearanceId = {0}, Justin/Ceis Id = {1} ", detail.PcssAppearanceId, detail.AppearanceId); - } - } - return string.Format("JustinCeisSchedulingResponse - {0} - {1} [{2}]", ResponseCd, ResponseMessageTxt, detailsStr); - } - } - - public class AlternativeCourtRoom - { - public int CourtActivitySlotId { get; set; } - public string CourtRoomCd { get; set; } - public string ActivityCd { get; set; } - public string ActivityDisplayCd { get; set; } - public string ActivityDsc { get; set; } - public string RotaInitialsCd { get; set; } - public string CourtSittingTypeCd { get; set; } - public string AssignmentListRoomYn { get; set; } - } -} \ No newline at end of file diff --git a/pcss-client/Models/REST/ScheduleSlot.cs b/pcss-client/Models/REST/ScheduleSlot.cs deleted file mode 100644 index 281233fb..00000000 --- a/pcss-client/Models/REST/ScheduleSlot.cs +++ /dev/null @@ -1,88 +0,0 @@ -using PCSS.Infrastructure; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; - -namespace PCSS.Models.REST -{ - public class ScheduleSlotRoom - { - public int? Id { get; set; } - public string CourtRoomCode { get; set; } - public bool IsAssignmentListRoom{ get; set;} - - public ScheduleSlotRoom() - { - } - public ScheduleSlotRoom(int? id, string courtRoomCode, bool isAssignmentListRoom) - { - this.Id = id; - this.CourtRoomCode = courtRoomCode; - this.IsAssignmentListRoom = isAssignmentListRoom; - } - } - - public class ScheduleSlotTime - { - public string StartTime { get; set; } - public List Rooms { get; set; } - - public ScheduleSlotTime() - { - this.Rooms = new List(); - } - } - - public class ScheduleSlotSitting - { - public string CourtSittingCode { get; set; } - public List Times { get; set; } - - public ScheduleSlotSitting() - { - this.Times = new List(); - } - } - - public class ScheduleSlotActivity - { - public string ActivityCode { get; set; } - public string ActivityDescription { get; set; } - public string ActivityClassCode { get; set; } - public string ActivityClassDescription { get; set; } - public string CapacityConstraintCode { get; set; } - public List Sittings { get; set; } - - public ScheduleSlotActivity() - { - this.Sittings = new List(); - } - } - - public class ScheduleSlotDay - { - public string Date { get; set; } - public List Activities { get; set; } - - public ScheduleSlotDay(DateTime date) - { - this.Date = date.ToString(Constants.DATE_FORMAT); - this.Activities = new List(); - } - } - - public class ScheduleSlotLocation - { - public int Id { get; set; } - public string Name { get; set; } - public List Days { get; set; } - - public ScheduleSlotLocation(int id, string name) - { - this.Id = id; - this.Name = name; - this.Days = new List(); - } - } -} \ No newline at end of file diff --git a/pcss-client/Models/UserLoginInfo.cs b/pcss-client/Models/UserLoginInfo.cs index 41830e92..67b2971f 100644 --- a/pcss-client/Models/UserLoginInfo.cs +++ b/pcss-client/Models/UserLoginInfo.cs @@ -1,17 +1,18 @@ -namespace PCSS.Models +#pragma warning disable 8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable. + +namespace PCSSCommon.Models { public class UserLoginInfo { public string TemporaryAccessGUID { get; set; } public string GivenName { get; set; } public string Surname { get; set; } - public string GUID { get; set; } public string AuthorizationDirectory { get; set; } public string AccountName { get; set; } - public double ParticipantId { get; set; } - public string Name { get { return string.Format("{0} {1}", GivenName, Surname); } } } -} \ No newline at end of file +} + +#pragma warning restore 8618 \ No newline at end of file diff --git a/pcss-client/pcss-client.csproj b/pcss-client/pcss-client.csproj index 7bfba1c7..ec0110a3 100644 --- a/pcss-client/pcss-client.csproj +++ b/pcss-client/pcss-client.csproj @@ -2,22 +2,18 @@ net9.0 - pcss_client + PCSSCommon enable enable + true - - - - - diff --git a/tests/api/Controllers/CourtListControllerTests.cs b/tests/api/Controllers/CourtListControllerTests.cs index bce39181..77726d7a 100644 --- a/tests/api/Controllers/CourtListControllerTests.cs +++ b/tests/api/Controllers/CourtListControllerTests.cs @@ -4,17 +4,17 @@ using JCCommon.Clients.FileServices; using JCCommon.Clients.LocationServices; using JCCommon.Clients.LookupCodeServices; -using Microsoft.Extensions.Logging; using LazyCache; using MapsterMapper; +using Microsoft.AspNetCore.Http; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; using Scv.Api.Controllers; using Scv.Api.Helpers; using Scv.Api.Services; using tests.api.Helpers; using Xunit; -using System.Threading; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Http; +using PCSSLocationServices = PCSSCommon.Clients.LocationServices; namespace tests.api.Controllers { @@ -35,11 +35,17 @@ public CourtListControllerTests() var fileServices = new EnvironmentBuilder("FileServicesClient:Username", "FileServicesClient:Password", "FileServicesClient:Url"); var lookupServices = new EnvironmentBuilder("LookupServicesClient:Username", "LookupServicesClient:Password", "LookupServicesClient:Url"); var locationServices = new EnvironmentBuilder("LocationServicesClient:Username", "LocationServicesClient:Password", "LocationServicesClient:Url"); + var pcssServices = new EnvironmentBuilder("PCSS:Username", "PCSS:Password", "PCSS:Url"); var lookupServiceClient = new LookupCodeServicesClient(lookupServices.HttpClient); var locationServiceClient = new LocationServicesClient(locationServices.HttpClient); var fileServicesClient = new FileServicesClient(fileServices.HttpClient); var lookupService = new LookupService(lookupServices.Configuration, lookupServiceClient, new CachingService()); - var locationService = new LocationService(locationServices.Configuration, locationServiceClient, new CachingService()); + var pcssLocationServicesClient = new PCSSLocationServices.LocationServicesClient(pcssServices.HttpClient); + var locationService = new LocationService( + locationServices.Configuration, + locationServiceClient, + pcssLocationServicesClient, + new CachingService()); var claims = new[] { new Claim(CustomClaimTypes.ApplicationCode, "SCV"), diff --git a/tests/api/Controllers/DashboardControllerTests.cs b/tests/api/Controllers/DashboardControllerTests.cs index 4c3eaacc..69547333 100644 --- a/tests/api/Controllers/DashboardControllerTests.cs +++ b/tests/api/Controllers/DashboardControllerTests.cs @@ -1,20 +1,13 @@ -using System; -using System.Linq; -using System.Security.Claims; +using System.Security.Claims; using JCCommon.Clients.FileServices; using JCCommon.Clients.LocationServices; using JCCommon.Clients.LookupCodeServices; -using Microsoft.Extensions.Logging; using LazyCache; -using MapsterMapper; using Scv.Api.Controllers; using Scv.Api.Helpers; using Scv.Api.Services; using tests.api.Helpers; -using Xunit; -using System.Threading; -using Microsoft.AspNetCore.Mvc; -using Microsoft.AspNetCore.Http; +using PCSSLocationServices = PCSSCommon.Clients.LocationServices; namespace tests.api.Controllers { @@ -39,12 +32,15 @@ public DashboardControllerTests() var lookupServiceClient = new LookupCodeServicesClient(lookupServices.HttpClient); var locationServiceClient = new LocationServicesClient(locationServices.HttpClient); - // var pcssServiceClient = new PCSSServicesClient(locationServices.HttpClient); + var pcssLocationServicesClient = new PCSSLocationServices.LocationServicesClient(pcssServices.HttpClient); var fileServicesClient = new FileServicesClient(fileServices.HttpClient); var lookupService = new LookupService(lookupServices.Configuration, lookupServiceClient, new CachingService()); - // var pcssService = new PCSSService(pcssServices.Cosnfiguration, pcssServiceClient, new CachingService()); - var locationService = new LocationService(locationServices.Configuration, locationServiceClient, new CachingService()); + var locationService = new LocationService( + locationServices.Configuration, + locationServiceClient, + pcssLocationServicesClient, + new CachingService()); var claims = new[] { new Claim(CustomClaimTypes.ApplicationCode, "SCV"), @@ -63,8 +59,5 @@ public DashboardControllerTests() } #endregion Constructor - - - } } diff --git a/tests/api/Controllers/FilesControllerTests.cs b/tests/api/Controllers/FilesControllerTests.cs index c02dbcfa..0ceae8ac 100644 --- a/tests/api/Controllers/FilesControllerTests.cs +++ b/tests/api/Controllers/FilesControllerTests.cs @@ -1,31 +1,31 @@ -using JCCommon.Clients.FileServices; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Security.Claims; +using System.Text; +using System.Threading.Tasks; +using JCCommon.Clients.FileServices; using JCCommon.Clients.LocationServices; +using JCCommon.Clients.LookupCodeServices; using LazyCache; using MapsterMapper; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using Microsoft.AspNetCore.WebUtilities; using Microsoft.Extensions.Logging; using Moq; using Scv.Api.Controllers; -using Scv.Api.Services; -using Scv.Api.Services.Files; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Security.Claims; -using Scv.Api.Helpers.Exceptions; -using tests.api.Helpers; -using Xunit; -using System.Text; -using System.Threading.Tasks; -using JCCommon.Clients.LookupCodeServices; -using Microsoft.AspNetCore.WebUtilities; -using Newtonsoft.Json; using Scv.Api.Helpers; +using Scv.Api.Helpers.Exceptions; using Scv.Api.Infrastructure.Authorization; using Scv.Api.Models.archive; -using Scv.Db.Models; using Scv.Api.Models.Search; +using Scv.Api.Services; +using Scv.Api.Services.Files; +using Scv.Db.Models; +using tests.api.Helpers; +using Xunit; +using PCSSLocationServices = PCSSCommon.Clients.LocationServices; namespace tests.api.Controllers { @@ -54,12 +54,18 @@ public FilesControllerTests() var fileServices = new EnvironmentBuilder("FileServicesClient:Username", "FileServicesClient:Password", "FileServicesClient:Url"); var lookupServices = new EnvironmentBuilder("LookupServicesClient:Username", "LookupServicesClient:Password", "LookupServicesClient:Url"); var locationServices = new EnvironmentBuilder("LocationServicesClient:Username", "LocationServicesClient:Password", "LocationServicesClient:Url"); + var pcssServices = new EnvironmentBuilder("PCSS:Username", "PCSS:Password", "PCSS:Url"); var lookupServiceClient = new LookupCodeServicesClient(lookupServices.HttpClient); var locationServiceClient = new LocationServicesClient(locationServices.HttpClient); var fileServicesClient = new FileServicesClient(fileServices.HttpClient); _fileServicesClient = fileServicesClient; + var pcssLocationServicesClient = new PCSSLocationServices.LocationServicesClient(pcssServices.HttpClient); var lookupService = new LookupService(lookupServices.Configuration, lookupServiceClient, new CachingService()); - var locationService = new LocationService(locationServices.Configuration, locationServiceClient, new CachingService()); + var locationService = new LocationService( + locationServices.Configuration, + locationServiceClient, + pcssLocationServicesClient, + new CachingService()); var contextAccessor = new TestHttpContextAccessor(); _agencyIdentifierId = fileServices.Configuration.GetNonEmptyValue("Request:AgencyIdentifierId"); diff --git a/web/src/components/calendar/Calendar.vue b/web/src/components/calendar/Calendar.vue index 9b3f0538..5015c6da 100644 --- a/web/src/components/calendar/Calendar.vue +++ b/web/src/components/calendar/Calendar.vue @@ -38,26 +38,94 @@ } }, customEventContent(arg) { + // function to load the content of the event, could be simplified and divided into 3 pieces - am,pm and assignemnt. + // check if this could be simplified and divided into 3 pieces - am,pm and assignemnt. + // video icon could be attached to any of the pieces if (arg.event.extendedProps.assignment) { + let amLocation = ''; + let pmLocation = ''; + let pmDescription = ''; + let amDescription = ''; + let amCourtRoomCode = ''; + let pmCourtRoomCode = ''; + if (arg.event.extendedProps.assignment.activityAm) { + if (arg.event.extendedProps.assignment.activityAm.locationName) { + amLocation = + arg.event.extendedProps.assignment.activityAm.locationName; + } + if ( + arg.event.extendedProps.assignment.activityAm.activityDescription + ) { + amDescription = + arg.event.extendedProps.assignment.activityAm + .activityDescription; + } + if (arg.event.extendedProps.assignment.activityAm.courtRoomCode) { + amCourtRoomCode = + '(' + + arg.event.extendedProps.assignment.activityAm.courtRoomCode + + ')'; + } + } else if (!arg.event.extendedProps.assignment.activityPm) { + if (arg.event.extendedProps.assignment.locationName) { + amLocation = arg.event.extendedProps.assignment.locationName; + } + if (arg.event.extendedProps.assignment.activityDescription) { + amDescription = + arg.event.extendedProps.assignment.activityDescription; + } + // if(arg.event.extendedProps.assignment.activityPm.courtRoomCode){ + // pmCourtRoomCode = "(" + arg.event.extendedProps.assignment.activityPm.courtRoomCode + ")"; + // } + } + + if ( + arg.event.extendedProps.showPM && + arg.event.extendedProps.assignment.activityPm + ) { + if ( + arg.event.extendedProps.assignment.activityPm.locationName && + arg.event.extendedProps.showPMLocation + ) { + pmLocation = + arg.event.extendedProps.assignment.activityPm.locationName; + } + if ( + arg.event.extendedProps.assignment.activityPm.activityDescription + ) { + pmDescription = + arg.event.extendedProps.assignment.activityPm + .activityDescription; + } + if (arg.event.extendedProps.assignment.activityPm.courtRoomCode) { + pmCourtRoomCode = + '(' + + arg.event.extendedProps.assignment.activityPm.courtRoomCode + + ')'; + } + } if (this.isMySchedule) { + // less compact schedule because loads only my events + // check if camera could be for both am and pm and assignment return { html: `
- ${"
" + arg.event.extendedProps.assignment.locationName + (arg.event.extendedProps.assignment.isVideo ? "" : '') + '
'} -
${arg.event.extendedProps.showAM ? "AM" : ''}${arg.event.extendedProps.assignment.activityAm.activityDescription}${arg.event.extendedProps.assignment.activityAm.courtRoomCode ? '(' + arg.event.extendedProps.assignment.activityAm.courtRoomCode + ')' : ''}
- ${arg.event.extendedProps.showPMLocation ? "
" + arg.event.extendedProps.assignment.activityPm.locationName + (arg.event.extendedProps.assignment.isVideo ? "" : '') + '
' : ''} - ${arg.event.extendedProps.showPM ? "
PM" + arg.event.extendedProps.assignment.activityPm.activityDescription + "" + (arg.event.extendedProps.assignment.activityPm.courtRoomCode ? '(' + arg.event.extendedProps.assignment.activityPm.courtRoomCode + ')' : '') + '
' : ''} + ${"
" + amLocation + (arg.event.extendedProps.assignment.isVideo ? "" : '') + '
'} +
${arg.event.extendedProps.showAM ? "AM" : ''}${amDescription}${amCourtRoomCode}
+ ${arg.event.extendedProps.showPMLocation ? "
" + pmLocation + (arg.event.extendedProps.assignment.isVideo ? "" : '') + '
' : ''} + ${arg.event.extendedProps.showPM ? "
PM" + pmDescription + "" + pmCourtRoomCode + '
' : ''}
`, }; } return { + // compact schedule because loads all assignemnts ( adds judge initials) html: `
${"
" + arg.event.extendedProps.rotaInitials + ' - ' + arg.event.extendedProps.assignment.locationName + '
'} -
${arg.event.extendedProps.showAM ? "AM" : ''}${arg.event.extendedProps.assignment.activityAm.activityDescription}${arg.event.extendedProps.assignment.activityAm.courtRoomCode ? '(' + arg.event.extendedProps.assignment.activityAm.courtRoomCode + ')' : ''}
- ${arg.event.extendedProps.showPMLocation ? "
" + arg.event.extendedProps.assignment.activityPm.locationName + '
' : ''} - ${arg.event.extendedProps.showPM ? "
PM" + arg.event.extendedProps.assignment.activityPm.activityDescription + "" + (arg.event.extendedProps.assignment.activityPm.courtRoomCode ? '(' + arg.event.extendedProps.assignment.activityPm.courtRoomCode + ')' : '') + '
' : ''} +
${arg.event.extendedProps.showAM ? "AM" : ''}${amDescription}${amCourtRoomCode}
+ ${arg.event.extendedProps.showPMLocation ? "
" + pmLocation + '
' : ''} + ${arg.event.extendedProps.showPM ? "
PM" + pmDescription + "" + pmCourtRoomCode + '
' : ''}
`, }; @@ -115,10 +183,6 @@ }, data: function () { return { - calendarConfig: { - year: new Date().getFullYear(), - month: new Date().getMonth() + 1, - }, date: { from: null, to: null, diff --git a/web/src/components/dashboard/Dashboard.vue b/web/src/components/dashboard/Dashboard.vue index a4ebdb89..78158988 100644 --- a/web/src/components/dashboard/Dashboard.vue +++ b/web/src/components/dashboard/Dashboard.vue @@ -42,11 +42,11 @@ - + + @@ -223,7 +226,7 @@ size="lg" hide-backdrop ref="presidersModal" - v-model="showPresiderModal" + v-model="isPresiderModalVisible" >
@@ -234,7 +237,7 @@ v-model="selectedPresiders" :options="presiders" name="presiders-filter" - @change="onCheckboxPresidersChange" + @change="onPreciderChecked" >
@@ -252,7 +255,7 @@ size="lg" hide-backdrop ref="activitiesModal" - v-model="showActivitiesModal" + v-model="isActivitiesModalVisible" >
@@ -263,7 +266,7 @@ v-model="selectedActivities" :options="activities" name="activities-filter" - @change="onCheckboxActivitiesChange" + @change="onActivityChecked" >
@@ -544,274 +547,246 @@ }