123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155 |
- //
- // AppConstant.swift
- // LMS
- //
- // Created by Suraj Kumar Mandal on 17/08/22.
- //
- import UIKit
- import Foundation
- struct AppConstant {
-
- // App colors
- static let BASE_COLOR = #colorLiteral(red: 0, green: 0.2823529412, blue: 0.6431372549, alpha: 1)
-
- //Alert View Constants
- static let Ok = "OK"
- static let defaultTitle = "Alert"
- static let defaultMsg = "Something went wrong"
- static let internetAlertTitle = "No Internet"
- static let internetAlertMessage = "Internet connection is not available, please check your internet connection and try again"
-
- static let quizInstruction = ["There will be 5 questions for digital literacy assessment.", "For each question only one possible answer can be given.", "You have to choose the correct one by clicking the mouse.", "Exam can be accessed only twice before final submission.", "The time limit will be 5 minutes."]
-
- static let answerInstruction = ["Drag And Drop Correct Match From Right Hand Side", "Enter Answer In Input Box", "Select [ One ] Options", "Select [ One / More Than One ] Options", "Choose One Option"]
-
- // QUiz constants
- static let MultipleMCQ = "Multiple select MCQ"
- static let SingleMCQ = "Single select MCQ"
- static let Match = "Match the following"
- static let Fill = "Fill in the blanks"
- static let TrueFalse = "True and False"
-
- static let boolOption = ["True", "False"]
-
- // API's constant values
- static let ProdClientSecret = "IYTMU3ULXzXZ6XYSZMKtrJzpRmkXusZr"
- static let DevClientSecret = "YRA0h2JB0vLyChqLSarWXPsU2LdPaaZN"
-
- static let ClientSecret = ProdClientSecret
- static let ClientId = "lms-mobile-app"
-
- }
- struct ApiURL {
-
- private struct ProdUrl {
- static let Keycloak = "https://hindujaauth.finlabsindia.org"
- static let AppData = "https://hindujalms.finlabsindia.org:444"
- }
-
- private struct DevUrl {
- static let Keycloak = "https://keytest.finlabsindia.org"
- static let AppData = "https://hindujadev.finlabsindia.org:444"
- }
-
- private static let KeycloakDomain = ProdUrl.Keycloak
- private static let AppDataDomain = ProdUrl.AppData
-
- static var AccessToken: String {
- return KeycloakDomain + "/realms/lms/protocol/openid-connect/token"
- }
-
- static var GetUserDetails: String {
- return AppDataDomain + "/user/api/v1/lms-user/getUserByUserId"
- }
-
- static var GetStudentDetails: String {
- return AppDataDomain + "/admin/api/v1/lms-admin/student/getStudentDetailsByUserId"
- }
-
- static var GetSessionList: String {
- return AppDataDomain + "/admin/api/v1/lms-admin/calendar"
- }
-
- static var GetAssessmentList: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/schedule/getByUserId"
- }
-
- static var GetCalendarData: String {
- return AppDataDomain + "/admin/api/v1/lms-admin/schedule/light/user"
- }
-
- static var GetSessionIntervention: String {
- return AppDataDomain + "/admin/api/v1/lms-admin/interventions/view"
- }
-
- static var GetInterventionLevel: String {
- return AppDataDomain + "admin/api/v1/lms-admin/interventions/intervention-level/byInterventionId"
- }
-
- static var GetBatchList: String {
- return AppDataDomain + "/batch/api/v1/lms-batch/batch/list/Approved"
- }
-
- static var GetUnitsList: String {
- return AppDataDomain + "/content/api/v1/lms-content/unit/getByUserId"
- }
-
- static var GetLessons: String {
- return AppDataDomain + "/content/api/v1/lms-content/lesson/filter"
- }
-
- static var GetLessonsList: String {
- return AppDataDomain + "/content/api/v1/lms-content/content/filter"
- }
-
- static var DownloadBase64: String {
- return AppDataDomain + "/files/files/download/base64"
- }
-
- static var GetQuizAttempts: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/attempt/mgmt/user/attempts"
- }
-
- static var GetQuizData: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/data/mgmt/beneficiary/assessment"
- }
-
- static var GetQuizTime: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/data/mgmt/assessment/time"
- }
-
- static var SubmitQuizAnswer: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/attempt/mgmt/user/answer/post"
- }
-
- static var UploadAssessment: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/attempt/mgmt/offline/upload"
- }
-
- static var GetNewAssessmentList: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/getAssessmentList"
- }
-
- static var SubmitAnswer: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/attempt/mgmt/user/answer/post2"
- }
-
- static var SubmitTotalAssessment: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/attempt/mgmt/submit/assignment2"
- }
-
- static var GeAllSubmittedAnswers: String {
- return AppDataDomain + "/lms-assessment-service/api/v1/lms_assessment/getAllAnswerAttemptByUser"
- }
-
- }
- struct PlaceHolderText {
-
- static let UserName = "Username or email"
- static let Password = "Password"
- }
|