Skip to content

Commit

Permalink
Updated document types
Browse files Browse the repository at this point in the history
  • Loading branch information
perevoznyk committed Jun 10, 2022
1 parent 3552417 commit 8a4ee2e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 19 deletions.
28 changes: 13 additions & 15 deletions Swelio.Engine/Swelio.Engine/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//===============================================================================

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.IO;
Expand Down Expand Up @@ -83,6 +82,8 @@ public Identity ReadIdentity()
id.DocumentType = DocumentType.BelgianCitizen;
break;
case 02:
case 31:
case 32:
id.DocumentType = DocumentType.EuropeanCommunity;
break;
case 03:
Expand All @@ -101,27 +102,24 @@ public Identity ReadIdentity()
id.DocumentType = DocumentType.HabilitationCard;
break;
case 11:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 12:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 13:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 14:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 15:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 16:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 17:
id.DocumentType = DocumentType.ForeignerCard;
break;
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 27:
case 28:
case 33:
case 34:
case 35:
case 36:
id.DocumentType = DocumentType.ForeignerCard;
break;
default:
Expand Down
4 changes: 0 additions & 4 deletions Swelio.Engine/Swelio.Engine/DocumentType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================

using System;
using System.Collections.Generic;
using System.Text;

namespace Swelio.Engine
{
public enum DocumentType
Expand Down
19 changes: 19 additions & 0 deletions Swelio.Engine/Swelio.Engine/Organization.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//===============================================================================
// Copyright (c) Serhiy Perevoznyk. All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================

namespace Swelio.Engine
{
public enum Organization
{
Unknown,
SHAPE,
NATO,
BlueCard,
Researcher
}
}

0 comments on commit 8a4ee2e

Please sign in to comment.