|
|
@ -1,4 +1,4 @@
|
|
|
|
class URLs{
|
|
|
|
class URLs {
|
|
|
|
URLs._();
|
|
|
|
URLs._();
|
|
|
|
static const host2 = "http://194.163.164.213/atoms/api";
|
|
|
|
static const host2 = "http://194.163.164.213/atoms/api";
|
|
|
|
static const host1 = "https://atomsuat.hmg.com"; // uat url
|
|
|
|
static const host1 = "https://atomsuat.hmg.com"; // uat url
|
|
|
@ -11,8 +11,7 @@ class URLs{
|
|
|
|
|
|
|
|
|
|
|
|
set host(String value) => _host = value;
|
|
|
|
set host(String value) => _host = value;
|
|
|
|
|
|
|
|
|
|
|
|
static String getFileUrl(String file) => file == null || file.isEmpty
|
|
|
|
static String getFileUrl(String file) => file == null || file.isEmpty ? null : "$_host/attachment/$file";
|
|
|
|
? null : "$_host/attachment/$file";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// API Routes
|
|
|
|
// API Routes
|
|
|
|
static get login => "$_baseUrl/MobileAuth/Login"; // post
|
|
|
|
static get login => "$_baseUrl/MobileAuth/Login"; // post
|
|
|
@ -39,7 +38,7 @@ class URLs{
|
|
|
|
static get getRecentNotifications => "$_baseUrl/return/user/recent/notification"; // get
|
|
|
|
static get getRecentNotifications => "$_baseUrl/return/user/recent/notification"; // get
|
|
|
|
static get createRequest => "$_baseUrl/CallRequest/AddCallRequest"; // get
|
|
|
|
static get createRequest => "$_baseUrl/CallRequest/AddCallRequest"; // get
|
|
|
|
static get createReport => "$_baseUrl/handle/create/report/issue"; // get
|
|
|
|
static get createReport => "$_baseUrl/handle/create/report/issue"; // get
|
|
|
|
static get updateRequestDate => "$_baseUrl/handle/update/request"; // get
|
|
|
|
static get updateRequestDate => "$_baseUrl/CallRequest/UpdateCallRequest"; // get
|
|
|
|
|
|
|
|
|
|
|
|
// service report
|
|
|
|
// service report
|
|
|
|
static get createServiceReport => "$_baseUrl/WorkOrder/AddWorkOrder"; // get
|
|
|
|
static get createServiceReport => "$_baseUrl/WorkOrder/AddWorkOrder"; // get
|
|
|
@ -47,7 +46,7 @@ class URLs{
|
|
|
|
static get getServiceReport => "$_baseUrl/WorkOrder/GetWorkOrderById"; // get
|
|
|
|
static get getServiceReport => "$_baseUrl/WorkOrder/GetWorkOrderById"; // get
|
|
|
|
static get createDuplicatedReport => "$_baseUrl/handle/duplicate/request"; // get
|
|
|
|
static get createDuplicatedReport => "$_baseUrl/handle/duplicate/request"; // get
|
|
|
|
|
|
|
|
|
|
|
|
static get getServiceReportReasons => "$_baseUrl/Lookups/GetLookup?lookupEnum=522"; // get
|
|
|
|
static get getServiceReportReasons => "$_baseUrl/Lookups/GetLookup?lookupEnum=522"; // get
|
|
|
|
static get getServiceReportTypes => "$_baseUrl/Lookups/GetLookup?lookupEnum=501"; // get
|
|
|
|
static get getServiceReportTypes => "$_baseUrl/Lookups/GetLookup?lookupEnum=501"; // get
|
|
|
|
static get getServiceReportStatus => "$_baseUrl/Lookups/GetLookup?lookupEnum=521"; // get
|
|
|
|
static get getServiceReportStatus => "$_baseUrl/Lookups/GetLookup?lookupEnum=521"; // get
|
|
|
|
static get getServiceReportLastCalls => "$_baseUrl/Lookups/GetLookup?lookupEnum=520"; // get
|
|
|
|
static get getServiceReportLastCalls => "$_baseUrl/Lookups/GetLookup?lookupEnum=520"; // get
|
|
|
@ -83,5 +82,4 @@ class URLs{
|
|
|
|
static get getPentryStatus => "$_baseUrl/Lookups/GetLookup?lookupEnum=401"; // get
|
|
|
|
static get getPentryStatus => "$_baseUrl/Lookups/GetLookup?lookupEnum=401"; // get
|
|
|
|
// contacts
|
|
|
|
// contacts
|
|
|
|
static get getPentryContacts => "$_baseUrl/handle/return/all/contacts"; // get
|
|
|
|
static get getPentryContacts => "$_baseUrl/handle/return/all/contacts"; // get
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|