-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathConstants.swift
106 lines (86 loc) · 3.38 KB
/
Constants.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
//
// Constants.swift
// FOSSAsia
//
// Created by Jurvis Tan on 5/2/16.
// Copyright © 2016 FossAsia. All rights reserved.
//
import Foundation
struct Constants {
static let numberOfTracks = 15
static let jsonFileExtension = ".json"
static let localNotificationIdentifier = "LocalNotification"
static let sessionsStoryboardName = "Sessions"
static let individualEventStoryboard = "IndividualEvent"
static let eventViewControllerID = "EventViewController"
static let okTitle = "OK"
static let cancelTitle = "Cancel"
static let appStoreAlertTitle = "Open App Store?"
static let appStoreAlertMessage = "Tapping OK will temporarily exit this application and open the app's page on the App Store"
struct UserDefaultsKey {
static let FilteredTrackIds = "FilteredTrackIds"
static let dataJsonKey = "data"
static let attributesJsonKey = "attributes"
static let emailJsonKey = "email"
static let passwordJsonKey = "password"
static let typeJsonKey = "type"
static let userJsonValue = "user"
static let firstName = "firstName"
static let lastName = "lastName"
static let acessToken = "acessToken"
}
struct Url {
static let registerUrl = "https://open-event-api-dev.herokuapp.com/v1/users"
static let loginUrl = "https://open-event-api-dev.herokuapp.com/auth/session"
}
struct alertMessage {
static let logoutMessageTitle = "Do you want to Logout?"
static let logoutMessage = "Click Yes to Logout!"
static let noTitle = "No"
static let yesTitle = "Yes"
}
struct Header {
static let contentType = "Content-Type"
static let contentTypeValueSignup = "application/vnd.api+json"
static let contentTypeValueLogin = "application/json"
}
struct ResponseMessages {
static let InvalidParams = "Email ID / Password incorrect"
static let ServerError = "Problem connecting to server!"
static let successMessageSignup = "Successfully Signed Up"
static let successMessageLogin = "Successfully Logged In"
static let checkParameter = "Please Check Parameters Entered"
}
struct Sessions {
static let track = "track"
static let id = "id"
static let sessionId = "session_id"
static let title = "title"
static let description = "description"
static let location = "location"
static let speakers = "speakers"
static let startTime = "start_time"
static let endTime = "end_time"
static let speakerName = "name"
}
struct Location {
static let lattitude = 1.288424
static let longitude = 103.846694
static let spanCoordinate = 0.0002
static let annotationTitle = "FOSSASIA"
}
struct SettingsManager {
static let keyForEvent = "HasEvents"
static let keyForMicrolocations = "HasMicrolocations"
static let favesJSON = "faves.json"
}
struct Images {
static let navbarFaveHighlighted = "navbar_fave_highlighted"
static let navbarFave = "navbar_fave"
}
struct MoreViewController {
static let message = "I am using the Open Event iOS , for browsing information about the event visit https://fossasia.org/ "
static let subject = "Check out the Open Event iOS!"
static let Title = "Subject"
}
}