Skip to content

Commit

Permalink
Move protocol.
Browse files Browse the repository at this point in the history
  • Loading branch information
yspreen committed Apr 29, 2021
1 parent 4f58509 commit 4e16b30
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
5 changes: 0 additions & 5 deletions DGCAVerifier/Models/HCert.swift
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,3 @@ struct HCert {
return isValid ? .valid : .invalid
}
}

protocol HCertEntry {
var info: [InfoSection] { get }
var isValid: Bool { get }
}
34 changes: 34 additions & 0 deletions DGCAVerifier/Protocols/HCertEntry.swift
Original file line number Diff line number Diff line change
@@ -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 }
}

0 comments on commit 4e16b30

Please sign in to comment.