From 4e16b30b6b45dacefa98fc751adc7ed6de1dd284 Mon Sep 17 00:00:00 2001 From: Yannick Spreen Date: Wed, 28 Apr 2021 21:09:56 +0200 Subject: [PATCH] Move protocol. --- DGCAVerifier/Models/HCert.swift | 5 ---- DGCAVerifier/Protocols/HCertEntry.swift | 34 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 5 deletions(-) create mode 100644 DGCAVerifier/Protocols/HCertEntry.swift diff --git a/DGCAVerifier/Models/HCert.swift b/DGCAVerifier/Models/HCert.swift index 642de39..d1121cd 100644 --- a/DGCAVerifier/Models/HCert.swift +++ b/DGCAVerifier/Models/HCert.swift @@ -264,8 +264,3 @@ struct HCert { return isValid ? .valid : .invalid } } - -protocol HCertEntry { - var info: [InfoSection] { get } - var isValid: Bool { get } -} diff --git a/DGCAVerifier/Protocols/HCertEntry.swift b/DGCAVerifier/Protocols/HCertEntry.swift new file mode 100644 index 0000000..7c7abc0 --- /dev/null +++ b/DGCAVerifier/Protocols/HCertEntry.swift @@ -0,0 +1,34 @@ +// +/*- + * ---license-start + * eu-digital-green-certificates / dgca-verifier-app-ios + * --- + * Copyright (C) 2021 T-Systems International GmbH and all other contributors + * --- + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ---license-end + */ +// +// HCertEntry.swift +// DGCAVerifier +// +// Created by Yannick Spreen on 4/28/21. +// + + +import Foundation + +protocol HCertEntry { + var info: [InfoSection] { get } + var isValid: Bool { get } +}