You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.5 KiB
Dart
86 lines
3.5 KiB
Dart
import 'package:mohem_flutter_app/models/marathon/question_model.dart';
|
|
import 'package:mohem_flutter_app/ui/marathon/widgets/question_card.dart';
|
|
|
|
class ApiConsts {
|
|
//static String baseUrl = "http://10.200.204.20:2801/"; // Local server
|
|
static String baseUrl = "https://uat.hmgwebservices.com"; // UAT server
|
|
// static String baseUrl = "https://hmgwebservices.com"; // Live server
|
|
static String baseUrlServices = baseUrl + "/Services/"; // server
|
|
// static String baseUrlServices = "https://api.cssynapses.com/tangheem/"; // Live server
|
|
static String utilitiesRest = baseUrlServices + "Utilities.svc/REST/";
|
|
static String erpRest = baseUrlServices + "ERP.svc/REST/";
|
|
static String swpRest = baseUrlServices + "SWP.svc/REST/";
|
|
static String user = baseUrlServices + "api/User/";
|
|
static String cocRest = baseUrlServices + "COCWS.svc/REST/";
|
|
|
|
//Chat
|
|
static String chatServerBaseUrl = "https://apiderichat.hmg.com";
|
|
static String chatServerBaseApiUrl = "https://apiderichat.hmg.com/api/";
|
|
static String chatHubConnectionUrl = chatServerBaseUrl + "/ConnectionChatHub";
|
|
static String chatSearchMember = "user/getUserWithStatusAndFavAsync/";
|
|
static String chatRecentUrl = "UserChatHistory/getchathistorybyuserid"; //For a Mem
|
|
static String chatSingleUserHistoryUrl = "UserChatHistory/GetUserChatHistory";
|
|
static String chatMediaImageUploadUrl = "shared/upload";
|
|
static String chatFavoriteUsers = "FavUser/getFavUserById/";
|
|
|
|
// 42062 is CurrentUserID and 36745 is targetUserID and 0 is For Pagination
|
|
// static String chatSearchMember = "https://apiderichat.hmg.com/api/user/getUserWithStatusAndFavAsync/aamir.muhammad/36239";
|
|
|
|
//Brain Marathon Constants
|
|
static String marathonBaseUrl = "https://18.188.181.12/service/";
|
|
static String marathonParticipantLoginUrl = marathonBaseUrl + "api/auth/participantlogin";
|
|
static String marathonProjectGetUrl = marathonBaseUrl + "api/Project/Project_Get";
|
|
static String marathonUpcomingUrl = marathonBaseUrl + "api/marathon/upcoming/";
|
|
static String marathonHubConnectionUrl = marathonBaseUrl + "MarathonBroadCast";
|
|
|
|
//DummyCards for the UI
|
|
static List<QuestionOptions> questionOptions = <QuestionOptions>[
|
|
QuestionOptions(
|
|
id: "id",
|
|
image: "image",
|
|
isCorrectOption: true,
|
|
questionId: "questionId",
|
|
sequence: 0,
|
|
titleAr: "titleAr",
|
|
titleEn: "titleEn",
|
|
),
|
|
];
|
|
|
|
static QuestionModel dummyQuestion = QuestionModel(
|
|
id: "id",
|
|
titleEn: "titleEn",
|
|
titleAr: "titleAr",
|
|
marathonId: "marathonId",
|
|
questionTypeId: 0,
|
|
questionTime: 0,
|
|
nextQuestGap: 5,
|
|
gapType: 0,
|
|
gapText: "gapText",
|
|
gapImage: "gapImage",
|
|
questOptionsLimit: 4,
|
|
questionOptions: questionOptions,
|
|
);
|
|
|
|
static List<CardContent> dummyQuestions = <CardContent>[
|
|
CardContent(question: dummyQuestion),
|
|
CardContent(question: dummyQuestion),
|
|
CardContent(question: dummyQuestion),
|
|
CardContent(question: dummyQuestion),
|
|
CardContent(question: dummyQuestion),
|
|
];
|
|
}
|
|
|
|
class SharedPrefsConsts {
|
|
static String isRememberMe = "remember_me";
|
|
static String username = "username";
|
|
static String password = "password";
|
|
static String privilegeList = "privilegeList";
|
|
static String firebaseToken = "firebaseToken";
|
|
static String memberInformation = "memberInformation";
|
|
static String welcomeVideoUrl = "welcomeVideoUrl";
|
|
static String doNotShowWelcomeVideo = "doNotShowWelcomeVideo";
|
|
static String mohemmWifiSSID = "mohemmWifiSSID";
|
|
static String mohemmWifiPassword = "mohemmWifiPassword";
|
|
static String editItemForSale = "editItemForSale";
|
|
}
|