You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

1 year ago
  1. //
  2. // UrlManager.swift
  3. // GMERemittance
  4. //
  5. // Created by Sujal on 12/25/17.
  6. // Copyright © 2017 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class UrlManager {
  10. static let sharedInstance = UrlManager()
  11. var version = "v1"
  12. var baseURL = ""
  13. let baseSocialURL = ""
  14. // let liveServerUrl = "https://mobile.japanremit.com:8443/api/" // "https://mobile.japanremit.com:8443/api/"
  15. let testUrl = "https://sandboxapi.japanremit.com:8083/api/" //"http://202.166.220.36:8083/api/"
  16. // let liveServerUrl = "http://77.68.15.91:1082/api/"
  17. let liveServerUrl = "https://mobile.imelondon.co.uk:2086/api/"
  18. init() {
  19. switch server {
  20. case .live:
  21. self.baseURL = liveServerUrl
  22. case .testLive:
  23. self.baseURL = liveServerUrl
  24. }
  25. }
  26. func refreshBaseURL() {
  27. switch server {
  28. case .live:
  29. self.baseURL = liveServerUrl
  30. case .testLive:
  31. self.baseURL = testUrl
  32. }
  33. }
  34. }