forked from itskutush/Sign-Engage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGreetingsDataModel.swift
76 lines (66 loc) · 2.96 KB
/
GreetingsDataModel.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
//
// DataModel.swift
// videoLesson
//
// Created by user@90 on 31/10/24.
//
// DataModel.swift
import Foundation
struct GreetingsVideo {
let fileName: String // The file name of the video
let title: String // Title to display
let transcriptions: [(String, TimeInterval)]
var isCompleted: Bool = false
var alreadyViewed : Bool = false// Transcriptions with timestamps
}
class GreetingsDataModel{
static let shared = GreetingsDataModel()
var videos: [GreetingsVideo] = [
GreetingsVideo(fileName: "Hello", title: "Hello", transcriptions: [
("1. Raise your hand your forehead side", 2.0),
("2. Wave your hand", 3.0),
("3. Bring your hand down", 4.0)
],alreadyViewed : true),
GreetingsVideo(fileName: "Good Morning", title: "Good Afternoon", transcriptions: [
("1. Do a thumbs up", 2.0),
("2. Make a flower blooming gesture ", 3.0),
("3. Move your hand from your stomach to chest", 3.5),
]),
GreetingsVideo(fileName: "Good Afternoon (male)", title: "Good Morning", transcriptions: [
("1. Do a thumbs up", 2.0),
("2. Raise your hand above your head ", 3.0),
("3. Bring your fingers together & release", 3.5),
]),
GreetingsVideo(fileName: "Good Night", title: "Good Night", transcriptions: [
("1. Do a thumbs up", 2.0),
("2. Bring your finger tips closer and move your hand downwards from your chest to your stomach", 2.5),
("3. Close your fingertips", 3.0),
]),
GreetingsVideo(fileName: "Yes", title: "Yes", transcriptions: [
(" 1. Keep your head steady", 1.0),
(" 2. Nod your hand back & forth", 1.5)
]),
GreetingsVideo(fileName: "No", title: "No", transcriptions: [
(" 1. Keep your head steady", 1.0),
(" 2. Move your head sideways", 1.5)
]),
GreetingsVideo(fileName: "Thank You Very Much (male)", title: "Thank You Very Much", transcriptions: [
(" 1. Move your non-dominant hand from your mouth to chest", 1.0),
(" 2. Use both hands", 2.7),
("3. Sweep hands slightly outwards in a downward motion ", 3.0)
]),
GreetingsVideo(fileName: "Welcome(Male)", title: "Welcome", transcriptions: [
(" 1. Raise your hand away from your chest", 2.0),
(" 2. Move your palm from a outward to inward direction ", 3.0),
]),
GreetingsVideo(fileName: "Bye - Bye", title: "Bye Bye", transcriptions: [
(" 1. Raise your hand", 1.0),
(" 2. Wave", 2.0),
]),
GreetingsVideo(fileName: "Sorry", title: "Sorry", transcriptions: [
(" 1. Make a fist", 3.0),
(" 2. Move the fist in a circular motion over ur chest", 5.0),
]),
]
// Array of videos with transcription data
}