This repository was archived by the owner on Aug 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathFullTokenModel.swift
More file actions
43 lines (37 loc) · 1.52 KB
/
FullTokenModel.swift
File metadata and controls
43 lines (37 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// BlockV AG. Copyright (c) 2018, all rights reserved.
//
// Licensed under the BlockV SDK License (the "License"); you may not use this file or
// the BlockV SDK except in compliance with the License accompanying it. Unless
// required by applicable law or agreed to in writing, the BlockV SDK 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.
//
import Foundation
/// Full token response model.
public struct FullTokenModel: Codable, Equatable {
public let id: String
public let meta: MetaModel
public let properties: Properties
public struct Properties: Codable, Equatable {
public let appID: String
public let isConfirmed: Bool
public let isDefault: Bool
public let isDisabled: Bool
public let token: String
public let tokenType: String
public let userID: String
public let verifyCodeExpires: Date
enum CodingKeys: String, CodingKey {
case appID = "app_id"
case isConfirmed = "confirmed"
case isDefault = "is_default"
case isDisabled = "disabled"
case token = "token"
case tokenType = "token_type"
case userID = "user_id"
case verifyCodeExpires = "verify_code_expires"
}
}
}