-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathPaywallViewModel.swift
81 lines (75 loc) · 3.09 KB
/
PaywallViewModel.swift
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//
// PaywallViewModel.swift
// Lockdown
//
// Created by Pavel Vilbik on 22.02.24.
// Copyright © 2024 Confirmed Inc. All rights reserved.
//
import Foundation
struct PaywallViewModel {
let title: String
let subtitle: String
let bulletPoints: [String]
let mounthProductId: String
let annualProductId: String
static func empty() -> Self {
.init(
title: "",
subtitle: "",
bulletPoints: [],
mounthProductId: "",
annualProductId: ""
)
}
static func advancedDetails() -> Self {
.init(
title: NSLocalizedString("Advanced Level \nProtection", comment:""),
subtitle: NSLocalizedString("Used by 100,000+ Privacy-Conscious People", comment: ""),
bulletPoints: [
"Custom block lists",
"Advanced malware & ads blocking",
"Unlimited blocking",
"App-specific block lists",
"Advanced encryption protocols",
"Import/Export block lists for more tailored protection"
],
mounthProductId: VPNSubscription.productIdAdvancedMonthly,
annualProductId: VPNSubscription.productIdAdvancedYearly
)
}
static func anonymousDetails() -> Self {
.init(
title: NSLocalizedString("Secure Tunnel VPN + Advanced Firewall", comment:""),
subtitle: NSLocalizedString("Private Browsing with Hidden IP and Global Region Switching", comment: ""),
bulletPoints: [
"Anonymized browsing",
"Change your IP address to another region",
"Maximum security with VPN and firewall",
"Location and IP address hidden",
"Custom block lists to block specific websites or domains",
"Advanced malware and ads blocking",
"Unlimited bandwidth and data usage",
"Import/Export block lists for more tailored protection"
],
mounthProductId: VPNSubscription.productIdMonthly,
annualProductId: VPNSubscription.productIdAnnual
)
}
static func universalDetails() -> Self {
.init(
title: NSLocalizedString("Unlimited Universal Protection", comment:""),
subtitle: NSLocalizedString("Achieve Maximum Security for All Your Apple Devices", comment: ""),
bulletPoints: [
"Comprehensive protection across all Apple devices (iPhone, iPad, and Mac)",
"Activation/Deactivation of MacOS protection",
"Device-specific block lists for tailored protection",
"Anonymized browsing and IP address change across all devices",
"Maximum security with VPN and firewall",
"Hidden location and IP address with advanced malware",
"Unlimited bandwidth and data usage for all devices"
],
mounthProductId: VPNSubscription.productIdMonthlyPro,
annualProductId: VPNSubscription.productIdAnnualPro
)
}
}