Commit 6a925671 by Anand.suthar

Resolve issues

parent 4fe80ced
...@@ -2881,7 +2881,7 @@ ...@@ -2881,7 +2881,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Bhagyashree/Bhagyashree.entitlements; CODE_SIGN_ENTITLEMENTS = Bhagyashree/Bhagyashree.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = S5AR757G56; DEVELOPMENT_TEAM = S5AR757G56;
INFOPLIST_FILE = Bhagyashree/Info.plist; INFOPLIST_FILE = Bhagyashree/Info.plist;
...@@ -2889,8 +2889,8 @@ ...@@ -2889,8 +2889,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.gdi.yuanzhongsiu-seller"; PRODUCT_BUNDLE_IDENTIFIER = "com.gdi.yuanzhongsiu-seller";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "6f086210-986e-4363-bee7-4d19b9926e76"; PROVISIONING_PROFILE = "602859fb-319a-4c6c-9f5d-c18ff8e1ea2c";
PROVISIONING_PROFILE_SPECIFIER = fengshui_seller_dev; PROVISIONING_PROFILE_SPECIFIER = FengShui_Seller_AdHok;
SWIFT_OBJC_BRIDGING_HEADER = "Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.0; SWIFT_VERSION = 4.0;
...@@ -2906,7 +2906,7 @@ ...@@ -2906,7 +2906,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Bhagyashree/Bhagyashree.entitlements; CODE_SIGN_ENTITLEMENTS = Bhagyashree/Bhagyashree.entitlements;
CODE_SIGN_IDENTITY = "iPhone Developer"; CODE_SIGN_IDENTITY = "iPhone Distribution";
CODE_SIGN_STYLE = Manual; CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = S5AR757G56; DEVELOPMENT_TEAM = S5AR757G56;
INFOPLIST_FILE = Bhagyashree/Info.plist; INFOPLIST_FILE = Bhagyashree/Info.plist;
...@@ -2914,8 +2914,8 @@ ...@@ -2914,8 +2914,8 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "com.gdi.yuanzhongsiu-seller"; PRODUCT_BUNDLE_IDENTIFIER = "com.gdi.yuanzhongsiu-seller";
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "6f086210-986e-4363-bee7-4d19b9926e76"; PROVISIONING_PROFILE = "602859fb-319a-4c6c-9f5d-c18ff8e1ea2c";
PROVISIONING_PROFILE_SPECIFIER = fengshui_seller_dev; PROVISIONING_PROFILE_SPECIFIER = FengShui_Seller_AdHok;
SWIFT_OBJC_BRIDGING_HEADER = "Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h";
SWIFT_VERSION = 4.0; SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2"; TARGETED_DEVICE_FAMILY = "1,2";
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
moduleName = "Bhagyashree" moduleName = "Bhagyashree"
usesParentBreakpointCondition = "Yes" usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/sunarcmac/Documents/Futurecommerce/Fengshui-Seller-iOS/Bhagyashree/Sunarc/Controller/Appointment/Cells/PlayAudioCell.swift" urlString = "file:///Users/sunarcmac/Documents/Futurecommerce/Fengshui-Seller-iOS/Bhagyashree/Sunarc/Controller/Appointment/Cells/PlayAudioCell.swift"
timestampString = "558090421.170235" timestampString = "558436696.539937"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "46" startingLineNumber = "46"
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
moduleName = "Bhagyashree" moduleName = "Bhagyashree"
usesParentBreakpointCondition = "Yes" usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/sunarcmac/Documents/Futurecommerce/Fengshui-Seller-iOS/Bhagyashree/Sunarc/Controller/Appointment/Cells/PlayAudioCell.swift" urlString = "file:///Users/sunarcmac/Documents/Futurecommerce/Fengshui-Seller-iOS/Bhagyashree/Sunarc/Controller/Appointment/Cells/PlayAudioCell.swift"
timestampString = "558090421.1732301" timestampString = "558436696.5445189"
startingColumnNumber = "9223372036854775807" startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807" endingColumnNumber = "9223372036854775807"
startingLineNumber = "47" startingLineNumber = "47"
...@@ -99,5 +99,69 @@ ...@@ -99,5 +99,69 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bhagyashree/Sunarc/Model/Me/Service.swift"
timestampString = "558349856.4012671"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "51"
endingLineNumber = "51"
landmarkName = "initWithJSON(json:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bhagyashree/Sunarc/Model/Appointment/Appointment.swift"
timestampString = "558349856.401841"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "38"
endingLineNumber = "38"
landmarkName = "initWithJSON(json:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bhagyashree/Sunarc/Other/HTTP/HTTP.swift"
timestampString = "558437756.32651"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "113"
endingLineNumber = "113"
landmarkName = "connectWithRequestObject(api:parameters:method:contentType:indicator:success:failure:)"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bhagyashree/Sunarc/Controller/Me/ChangePasswordViewController.swift"
timestampString = "558434383.435323"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "36"
endingLineNumber = "36"
landmarkName = "confirm()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>
...@@ -15,8 +15,8 @@ var DEFAULT_WEBSITE_ID = "1" ...@@ -15,8 +15,8 @@ var DEFAULT_WEBSITE_ID = "1"
//var BASE_DOMAIN = "http://18.136.9.203" // test var BASE_DOMAIN = "http://18.136.9.203" // test
var BASE_DOMAIN = "http://54.251.144.17" // dev //var BASE_DOMAIN = "http://54.251.144.17" // dev
//var BASE_DOMAIN = "http://13.251.93.24" //var BASE_DOMAIN = "http://13.251.93.24"
var HOST_NAME = BASE_DOMAIN+"/index.php/" var HOST_NAME = BASE_DOMAIN+"/index.php/"
......
...@@ -11,13 +11,13 @@ ...@@ -11,13 +11,13 @@
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>Fengshui Seller</string> <string>iAstro(Master)</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>1.0</string> <string>1.0</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>12</string> <string>14</string>
<key>Fabric</key> <key>Fabric</key>
<dict> <dict>
<key>APIKey</key> <key>APIKey</key>
......
...@@ -116,6 +116,7 @@ extension CompletedServicesViewController: UITableViewDelegate, UITableViewDataS ...@@ -116,6 +116,7 @@ extension CompletedServicesViewController: UITableViewDelegate, UITableViewDataS
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -116,6 +116,7 @@ extension InvalidServicesViewController: UITableViewDelegate, UITableViewDataSou ...@@ -116,6 +116,7 @@ extension InvalidServicesViewController: UITableViewDelegate, UITableViewDataSou
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -122,6 +122,7 @@ extension OnGoingServicesViewController: UITableViewDelegate, UITableViewDataSou ...@@ -122,6 +122,7 @@ extension OnGoingServicesViewController: UITableViewDelegate, UITableViewDataSou
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -116,6 +116,7 @@ extension ProcessingViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -116,6 +116,7 @@ extension ProcessingViewController: UITableViewDelegate, UITableViewDataSource {
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Riding App.ipa</key>
<array>
<dict>
<key>architectures</key>
<array>
<string>arm64</string>
</array>
<key>certificate</key>
<dict>
<key>SHA1</key>
<string>21DF4DE08BA640774E2E15C3B582EC89ACC484BE</string>
<key>dateExpires</key>
<string>09/05/19</string>
<key>type</key>
<string>iOS Distribution</string>
</dict>
<key>embeddedBinaries</key>
<array>
<dict>
<key>architectures</key>
<array>
<string>arm64</string>
</array>
<key>certificate</key>
<dict>
<key>SHA1</key>
<string>21DF4DE08BA640774E2E15C3B582EC89ACC484BE</string>
<key>dateExpires</key>
<string>09/05/19</string>
<key>type</key>
<string>iOS Distribution</string>
</dict>
<key>entitlements</key>
<dict>
<key>application-identifier</key>
<string>WC72QNYT4F.com.ridingapp.sunarc.notification</string>
<key>com.apple.developer.team-identifier</key>
<string>WC72QNYT4F</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>WC72QNYT4F.com.ridingapp.sunarc.notification</string>
</array>
</dict>
<key>name</key>
<string>AudioNotification.appex</string>
<key>profile</key>
<dict>
<key>UUID</key>
<string>7c9dc39e-151f-4eba-9815-2aae7e3d2e8d</string>
<key>name</key>
<string>RidingAppExt</string>
</dict>
<key>team</key>
<dict>
<key>id</key>
<string>WC72QNYT4F</string>
<key>name</key>
<string>SUNARC TECHNOLOGIES PRIVATE LIMITED</string>
</dict>
</dict>
</array>
<key>entitlements</key>
<dict>
<key>application-identifier</key>
<string>WC72QNYT4F.com.ridingapp.sunarc</string>
<key>com.apple.developer.team-identifier</key>
<string>WC72QNYT4F</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>WC72QNYT4F.com.ridingapp.sunarc</string>
</array>
</dict>
<key>name</key>
<string>Riding App.app</string>
<key>profile</key>
<dict>
<key>UUID</key>
<string>4cb40185-51be-4d68-83a5-54e0582a8ac0</string>
<key>name</key>
<string>Riding_AdHoc</string>
</dict>
<key>team</key>
<dict>
<key>id</key>
<string>WC72QNYT4F</string>
<key>name</key>
<string>SUNARC TECHNOLOGIES PRIVATE LIMITED</string>
</dict>
</dict>
</array>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>compileBitcode</key>
<false/>
<key>method</key>
<string>ad-hoc</string>
<key>provisioningProfiles</key>
<dict>
<key>com.ridingapp.sunarc</key>
<string>Riding_AdHoc</string>
<key>com.ridingapp.sunarc.notification</key>
<string>RidingAppExt</string>
</dict>
<key>signingCertificate</key>
<string>iPhone Distribution</string>
<key>signingStyle</key>
<string>manual</string>
<key>stripSwiftSymbols</key>
<true/>
<key>teamID</key>
<string>WC72QNYT4F</string>
<key>thinning</key>
<string>&lt;none&gt;</string>
</dict>
</plist>
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -40,7 +40,6 @@ class ServiceDetailViewController: UIViewController { ...@@ -40,7 +40,6 @@ class ServiceDetailViewController: UIViewController {
appointment.getAppointmentDetails(incrementId: incrementId, success: { appointment.getAppointmentDetails(incrementId: incrementId, success: {
if self.appointment.orderStatus == "Service Upload Result" { if self.appointment.orderStatus == "Service Upload Result" {
self.serviceStatus = .uploadResult self.serviceStatus = .uploadResult
} else if self.appointment.orderStatus == "Processing" { } else if self.appointment.orderStatus == "Processing" {
...@@ -255,14 +254,41 @@ class CustomerDetailCell: UITableViewCell { ...@@ -255,14 +254,41 @@ class CustomerDetailCell: UITableViewCell {
var status: ServiceStatus? { var status: ServiceStatus? {
didSet { didSet {
if let status = status { if let status = status {
if status == .completed { switch status {
imgStatus.image = UIImage(named: "status-done") case .tbc:
} else if status == .ongoing { self.imgStatus.image = UIImage(named: "tbc")
imgStatus.image = UIImage(named: "status-inprogress") case .ongoing:
} else { self.imgStatus.image = UIImage(named: "status-inprogress")
imgStatus.image = UIImage(named: "status-tbc") case .completed:
self.imgStatus.image = UIImage(named: "status-done")
case .uploadResult:
self.imgStatus.image = UIImage(named: "status-inprogress")
case .processing:
self.imgStatus.image = UIImage(named: "tbc")
} }
} }
// switch status {
// case .CANCELED:
// self.imgStatus.image = nil
// case .CLOSED:
// self.imgStatus.image = UIImage(named: "status-done")
// case .COMPLETE:
// self.imgStatus.image = UIImage(named: "status-done")
// case .PENDING:
// self.imgStatus.image = UIImage(named: "status-tbc")
// case .PROCESSING:
// self.imgStatus.image = UIImage(named: "tbc")
// case .SERVICE_COMPLETE:
// self.imgStatus.image = UIImage(named: "status-done")
// case .SERVICE_ONGOING:
// self.imgStatus.image = UIImage(named: "status-inprogress")
// case .SERVICE_UPLOAD_RESULT:
// self.imgStatus.image = UIImage(named: "status-inprogress")
// case .ONGOING:
// self.imgStatus.image = UIImage(named: "status-inprogress")
// }
} }
} }
......
...@@ -121,6 +121,7 @@ extension ServicesListViewController: UITableViewDelegate, UITableViewDataSource ...@@ -121,6 +121,7 @@ extension ServicesListViewController: UITableViewDelegate, UITableViewDataSource
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -42,6 +42,7 @@ extension EnquiryDetailsViewController { ...@@ -42,6 +42,7 @@ extension EnquiryDetailsViewController {
chatViewController.isOrderCompleted = true chatViewController.isOrderCompleted = true
chatViewController.customerProfileImage = appointmentDetails.customerProfileImage chatViewController.customerProfileImage = appointmentDetails.customerProfileImage
chatViewController.customerName = appointmentDetails.customerName! chatViewController.customerName = appointmentDetails.customerName!
chatViewController.customerId = appointmentDetails.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
......
...@@ -14,26 +14,37 @@ import FirebaseDatabase ...@@ -14,26 +14,37 @@ import FirebaseDatabase
class HomePageViewController: BaseViewController { class HomePageViewController: BaseViewController {
let dashboard = Dashboard() let dashboard = Dashboard()
var isThereAnyUnreadMessage = false
@IBOutlet var tblSellerDashbord: UITableView! @IBOutlet var tblSellerDashbord: UITableView!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
let ref = Database.database().reference().child("sellers") let ref = Database.database().reference().child("seller").child("\(User.customerId)")
ref.observe(DataEventType.value) { (snapshot) in ref.observe(DataEventType.value) { (snapshot) in
let postDict = snapshot.value as? [String : AnyObject] ?? [:] if let postDict = snapshot.value as? [String : AnyObject] {
if let status = postDict["\(User.customerId)"] as? String { if let status = postDict["userStatus"] as? String {
if status == "offline" { if status == "offline" {
User.isOnline = false User.isOnline = false
} else { } else {
User.isOnline = true User.isOnline = true
}
}
self.isThereAnyUnreadMessage = false
if let chatCountIds = postDict["chatCountId"] as? String {
if chatCountIds.count > 0 {
if chatCountIds.components(separatedBy: ",").count > 0 {
self.isThereAnyUnreadMessage = true
}
}
} }
self.tblSellerDashbord.reloadData() self.tblSellerDashbord.reloadData()
} }
} }
Database.database().reference().child("sellers").onDisconnectSetValue(["\(User.customerId)": "offline"]) Database.database().reference().child("seller").child("\(User.customerId)").child("userStatus").onDisconnectSetValue("offline")
let headerForLoading = MJRefreshNormalHeader { let headerForLoading = MJRefreshNormalHeader {
...@@ -102,6 +113,14 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -102,6 +113,14 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource {
cell.sellerImage.kf.setImage(with: url, placeholder: UIImage(named: "placeholder"), options: [.transition(ImageTransition.fade(1)), .scaleFactor(1.0)], progressBlock: nil, completionHandler: nil) cell.sellerImage.kf.setImage(with: url, placeholder: UIImage(named: "placeholder"), options: [.transition(ImageTransition.fade(1)), .scaleFactor(1.0)], progressBlock: nil, completionHandler: nil)
} }
if isThereAnyUnreadMessage == true {
cell.imgUnreadMsg.image = UIImage(named: "email")
} else {
cell.imgUnreadMsg.image = UIImage(named: "email-box")
}
cell.lblStatus.text = User.isOnline == true ? "Online" : "Offline" cell.lblStatus.text = User.isOnline == true ? "Online" : "Offline"
cell.switchMode.setOn(User.isOnline, animated: true) cell.switchMode.setOn(User.isOnline, animated: true)
return cell return cell
...@@ -141,6 +160,7 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource { ...@@ -141,6 +160,7 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource {
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = order.orderId { if let orderId = order.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = order.customerDetail.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
...@@ -195,6 +215,7 @@ class SellerProfileCell: UITableViewCell { ...@@ -195,6 +215,7 @@ class SellerProfileCell: UITableViewCell {
@IBOutlet var lblThisWeekIncome: UILabel! @IBOutlet var lblThisWeekIncome: UILabel!
@IBOutlet var lblThisMonthTransection: UILabel! @IBOutlet var lblThisMonthTransection: UILabel!
@IBOutlet var lblThisMonthIncome: UILabel! @IBOutlet var lblThisMonthIncome: UILabel!
@IBOutlet var imgUnreadMsg: UIImageView!
var delegate: SellerProfileCellDelegate! var delegate: SellerProfileCellDelegate!
...@@ -206,12 +227,10 @@ class SellerProfileCell: UITableViewCell { ...@@ -206,12 +227,10 @@ class SellerProfileCell: UITableViewCell {
@IBAction func goToOnlineOffline(statusSwitch: UISwitch) { @IBAction func goToOnlineOffline(statusSwitch: UISwitch) {
if statusSwitch.isOn == true { if statusSwitch.isOn == true {
Dashboard.goOnlineOffline(status: true, success: { Dashboard.goOnlineOffline(status: true, success: {
Database.database().reference().child("sellers").setValue(["\(User.customerId)": "online"]) Database.database().reference().child("seller").child("\(User.customerId)").child("userStatus").setValue("online")
self.delegate.showToast(message: "You are now online") self.delegate.showToast(message: "You are now online")
self.lblStatus.text = "Online" self.lblStatus.text = "Online"
}) { (message) in }) { (message) in
...@@ -221,9 +240,8 @@ class SellerProfileCell: UITableViewCell { ...@@ -221,9 +240,8 @@ class SellerProfileCell: UITableViewCell {
} else { } else {
Dashboard.goOnlineOffline(status: false, success: { Dashboard.goOnlineOffline(status: false, success: {
Database.database().reference().child("sellers").setValue(["\(User.customerId)": "offline"]) Database.database().reference().child("seller").child("\(User.customerId)").child("userStatus").setValue("offline")
self.delegate.showToast(message: "You are now offline") self.delegate.showToast(message: "You are now offline")
self.lblStatus.text = "Offline" self.lblStatus.text = "Offline"
}) { (message) in }) { (message) in
......
...@@ -109,6 +109,7 @@ extension OngoingEnquiryViewController: UITableViewDataSource, UITableViewDelega ...@@ -109,6 +109,7 @@ extension OngoingEnquiryViewController: UITableViewDataSource, UITableViewDelega
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerProfileImage = enquiry.enquiries[indexPath.row].customerProfileImage chatViewController.customerProfileImage = enquiry.enquiries[indexPath.row].customerProfileImage
chatViewController.customerName = enquiry.enquiries[indexPath.row].customerName! chatViewController.customerName = enquiry.enquiries[indexPath.row].customerName!
chatViewController.customerId = enquiry.enquiries[indexPath.row].customerId
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} }
......
...@@ -28,11 +28,14 @@ class OnlineEnquiryViewController: UIViewController { ...@@ -28,11 +28,14 @@ class OnlineEnquiryViewController: UIViewController {
var isViewVisable = true var isViewVisable = true
var customerProfileImage: String? var customerProfileImage: String?
var customerName: String = "" var customerName: String = ""
var customerId: String? = ""
var chatCountId = ""
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
lblCustomerName.text = customerName lblCustomerName.text = customerName
ref = Database.database().reference().child(orderId) ref = Database.database().reference().child(orderId)
ref.queryOrdered(byChild: "timestamp") .observe(DataEventType.value, with: { (snapshot) in ref.queryOrdered(byChild: "timestamp") .observe(DataEventType.value, with: { (snapshot) in
self.chats = [Chat]() self.chats = [Chat]()
...@@ -52,6 +55,17 @@ class OnlineEnquiryViewController: UIViewController { ...@@ -52,6 +55,17 @@ class OnlineEnquiryViewController: UIViewController {
} }
}) })
Database.database().reference().child("seller").child("\(User.customerId)").observe(DataEventType.value) { (snapshot) in
if let dict = snapshot.value as? [String: Any] {
self.chatCountId = dict["chatCountId"] as? String ?? ""
}
// in seller app will remove customer id
Database.database().reference().child("seller").child("\(User.customerId)").child("chatCountId").setValue(self.removeCustomerIdFromCSV())
}
if isOrderCompleted == true { if isOrderCompleted == true {
chatInputView.isHidden = true chatInputView.isHidden = true
btnEndService.isHidden = true btnEndService.isHidden = true
...@@ -104,8 +118,26 @@ extension OnlineEnquiryViewController { ...@@ -104,8 +118,26 @@ extension OnlineEnquiryViewController {
]) ])
txtComment.text = "" txtComment.text = ""
} }
func removeCustomerIdFromCSV() -> String {
var customerIds = ""
for customerId in chatCountId.components(separatedBy: ",") {
if customerId != customerId {
customerIds += customerId + ","
}
}
if customerIds.count > 0 {
customerIds.removeLast()
}
return customerIds
}
@IBAction func endService() { @IBAction func endService() {
let alerController = UIAlertController(title: "", message: "Is the service finished?", preferredStyle: .alert) let alerController = UIAlertController(title: "", message: "Is the service finished?", preferredStyle: .alert)
......
...@@ -32,9 +32,14 @@ class ChangePasswordViewController: UIViewController { ...@@ -32,9 +32,14 @@ class ChangePasswordViewController: UIViewController {
User.changePassword(oldPassword: txtCurrentPassword.text!, newPassword: txtNewPassword.text!, success: { User.changePassword(oldPassword: txtCurrentPassword.text!, newPassword: txtNewPassword.text!, success: {
print("success")
User.clearData()
let loginVc = Utils.viewController(storyboardName: "Fengshui", ofType: LoginViewController.self)
self.present(loginVc, animated: true, completion: nil)
}) { (errorMessage) in }) { (errorMessage) in
print(errorMessage) self.view.showToast(errorMessage, position: .bottom, popTime: 2.0, dismissOnTap: false)
} }
} }
......
...@@ -115,6 +115,7 @@ extension MyAllServiceOrderViewController: UITableViewDelegate, UITableViewDataS ...@@ -115,6 +115,7 @@ extension MyAllServiceOrderViewController: UITableViewDelegate, UITableViewDataS
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -114,6 +114,7 @@ extension MyCompletedOrdersViewController: UITableViewDelegate, UITableViewDataS ...@@ -114,6 +114,7 @@ extension MyCompletedOrdersViewController: UITableViewDelegate, UITableViewDataS
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -121,6 +121,7 @@ extension MyOngoingServiceOrderViewController: UITableViewDelegate, UITableViewD ...@@ -121,6 +121,7 @@ extension MyOngoingServiceOrderViewController: UITableViewDelegate, UITableViewD
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -114,6 +114,7 @@ extension MyUploadResultViewController: UITableViewDelegate, UITableViewDataSour ...@@ -114,6 +114,7 @@ extension MyUploadResultViewController: UITableViewDelegate, UITableViewDataSour
let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self) let chatViewController = Utils.viewController(storyboardName: "Home", ofType: OnlineEnquiryViewController.self)
if let orderId = selectedService.orderId { if let orderId = selectedService.orderId {
chatViewController.orderId = orderId chatViewController.orderId = orderId
chatViewController.customerId = selectedService.customerId!
self.navigationController?.pushViewController(chatViewController, animated: true) self.navigationController?.pushViewController(chatViewController, animated: true)
} }
} else { } else {
......
...@@ -7,30 +7,72 @@ ...@@ -7,30 +7,72 @@
// //
import UIKit import UIKit
import MJRefresh
class NotificationsViewController: BaseViewController { class NotificationsViewController: BaseViewController {
var notification = MyNotification() var notification = MyNotification()
@IBOutlet var tblNotification: UITableView! @IBOutlet var tblNotification: UITableView!
var footerForLoading: MJRefreshAutoNormalFooter!
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
self.setupRefreshHeaderFooter()
} }
override func viewWillAppear(_ animated: Bool) { override func viewDidAppear(_ animated: Bool) {
super.viewWillAppear(animated) super.viewDidAppear(animated)
if notification.notifications.count == 0 {
notification.getNotifications({ tblNotification.mj_header.beginRefreshing()
self.tblNotification.reloadData()
}) { (errorMessage) in
if errorMessage != nil {
self.view.showToast(errorMessage!, position: .bottom, popTime: 2.0, dismissOnTap: false)
}
} }
} }
func setupRefreshHeaderFooter() {
let headerForLoading = MJRefreshNormalHeader {
self.notifications(nextPage: false)
}
headerForLoading?.activityIndicatorViewStyle = .gray
headerForLoading?.lastUpdatedTimeLabel.isHidden = true
headerForLoading?.stateLabel.isHidden = true
tblNotification.mj_header = headerForLoading
footerForLoading = MJRefreshAutoNormalFooter {
self.notifications(nextPage: true)
}
footerForLoading.isRefreshingTitleHidden = true
footerForLoading.activityIndicatorViewStyle = .gray
footerForLoading.stateLabel.isHidden = true
tblNotification.mj_footer = footerForLoading
}
func notifications(nextPage: Bool) {
if nextPage == true {
notification.nextPage(success: {
self.tblNotification.reloadData()
self.tblNotification.mj_footer.endRefreshing()
}) { (message) in
self.tblNotification.mj_footer.endRefreshing()
self.view.showToast(message, position: .bottom, popTime: 2.0, dismissOnTap: false)
}
} else {
notification.getFollwers(success: {
self.tblNotification.reloadData()
self.tblNotification.mj_header.endRefreshing()
}) { (message) in
self.view.showToast(message, position: .bottom, popTime: 2.0, dismissOnTap: false)
self.tblNotification.mj_header.endRefreshing()
}
}
}
} }
extension NotificationsViewController: UITableViewDataSource, UITableViewDelegate { extension NotificationsViewController: UITableViewDataSource, UITableViewDelegate {
...@@ -45,11 +87,11 @@ extension NotificationsViewController: UITableViewDataSource, UITableViewDelegat ...@@ -45,11 +87,11 @@ extension NotificationsViewController: UITableViewDataSource, UITableViewDelegat
return ongoinCell return ongoinCell
} }
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { // func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let serviceDetail = Utils.viewController(storyboardName: "Appointment", ofType: ServiceDetailViewController.self) // let serviceDetail = Utils.viewController(storyboardName: "Appointment", ofType: ServiceDetailViewController.self)
serviceDetail.serviceStatus = .tbc // serviceDetail.serviceStatus = .tbc
self.navigationController?.pushViewController(serviceDetail, animated: true) // self.navigationController?.pushViewController(serviceDetail, animated: true)
} // }
} }
......
...@@ -12,6 +12,7 @@ import Foundation ...@@ -12,6 +12,7 @@ import Foundation
class Appointment { class Appointment {
var customerName: String? var customerName: String?
var customerId: String?
var customerProfileImage: String? var customerProfileImage: String?
var incrementId: String? var incrementId: String?
var DOB: String? var DOB: String?
...@@ -34,7 +35,10 @@ class Appointment { ...@@ -34,7 +35,10 @@ class Appointment {
func initWithJSON(json: Any) { func initWithJSON(json: Any) {
print(json)
if let response = json as? [String: Any] { if let response = json as? [String: Any] {
self.customerId = response["customer_Id"] as? String
self.customerName = response["buyerName"] as? String self.customerName = response["buyerName"] as? String
self.customerProfileImage = response["buyerProfileImage"] as? String self.customerProfileImage = response["buyerProfileImage"] as? String
self.incrementId = response["incrementId"] as? String self.incrementId = response["incrementId"] as? String
...@@ -129,16 +133,34 @@ class Appointment { ...@@ -129,16 +133,34 @@ class Appointment {
var timing: String { var timing: String {
get { get {
if self.bookingFrom != nil && self.bookingTill != nil {
return self.bookingFrom! + "-" + self.bookingTill! // TO DO if self.bookingFrom == nil || self.bookingTill == nil {
return ""
}
let dateComponents = self.bookingFrom?.components(separatedBy: ",")
let dateComponentsBookingTill = self.bookingTill?.components(separatedBy: ",")
var bookingDate = ""
if dateComponents!.count > 0 {
bookingDate += dateComponents![0]
} }
if self.bookingFrom != nil { if dateComponents!.count > 1 {
return self.bookingFrom! bookingDate += dateComponents![1]
} }
if self.bookingTill != nil {
return self.bookingFrom! var bookingFromsSlot = ""
var bookingTillSlot = ""
if dateComponents!.count > 2 {
bookingFromsSlot = dateComponents![2]
}
if dateComponentsBookingTill!.count > 2 {
bookingTillSlot = dateComponentsBookingTill![2]
} }
return ""
return bookingDate + "," + bookingFromsSlot + "-" + bookingTillSlot
} }
} }
......
...@@ -22,8 +22,6 @@ extension Appointment { ...@@ -22,8 +22,6 @@ extension Appointment {
HTTP().connectionWithRequestObjectFormUrl(api: API.VIEW_ORDER, parameters: parameters, method: .post, indicator: true, success: { (response) in HTTP().connectionWithRequestObjectFormUrl(api: API.VIEW_ORDER, parameters: parameters, method: .post, indicator: true, success: { (response) in
print(response)
if let validJSON = response as? [String: Any] { if let validJSON = response as? [String: Any] {
self.initWithJSON(json: validJSON) self.initWithJSON(json: validJSON)
success() success()
......
...@@ -24,6 +24,7 @@ class Enquiry { ...@@ -24,6 +24,7 @@ class Enquiry {
var orderId: String? var orderId: String?
var incrementId: String? var incrementId: String?
var customerName: String? var customerName: String?
var customerId: String?
var customerProfileImage: String? var customerProfileImage: String?
var enquiryFor = EnquiryStatus.PROCESSING var enquiryFor = EnquiryStatus.PROCESSING
...@@ -33,6 +34,9 @@ class Enquiry { ...@@ -33,6 +34,9 @@ class Enquiry {
func initWithJSON(json: Any) { func initWithJSON(json: Any) {
print(json)
if let response = json as? [String: Any] { if let response = json as? [String: Any] {
self.bookingTill = response["Booking Till"] as? String self.bookingTill = response["Booking Till"] as? String
self.orderId = response["orderId"] as? String self.orderId = response["orderId"] as? String
...@@ -43,6 +47,7 @@ class Enquiry { ...@@ -43,6 +47,7 @@ class Enquiry {
if let customerDetails = response["customerDetails"] as? [String: Any] { if let customerDetails = response["customerDetails"] as? [String: Any] {
self.customerName = customerDetails["name"] as? String self.customerName = customerDetails["name"] as? String
self.customerId = customerDetails["customer_id"] as? String
self.customerProfileImage = customerDetails["profile_image"] as? String self.customerProfileImage = customerDetails["profile_image"] as? String
} }
......
...@@ -14,14 +14,17 @@ class Customer { ...@@ -14,14 +14,17 @@ class Customer {
var profileImage: String? var profileImage: String?
var baseTotal: String? var baseTotal: String?
var purchaseTotal: String? var purchaseTotal: String?
var customerId: String?
func initWithJSON(json: Any) { func initWithJSON(json: Any) {
if let response = json as? [String: Any] { if let response = json as? [String: Any] {
self.name = response["name"] as? String self.name = response["name"] as? String
self.date = response["date"] as? String self.date = response["date"] as? String
self.profileImage = response["profile_image"] as? String self.profileImage = response["profile_image"] as? String
self.baseTotal = response["baseTotal"] as? String self.baseTotal = response["baseTotal"] as? String
self.purchaseTotal = response["purchaseTotal"] as? String self.purchaseTotal = response["purchaseTotal"] as? String
self.customerId = response["customer_id"] as? String
} }
} }
} }
...@@ -31,6 +31,7 @@ class Service { ...@@ -31,6 +31,7 @@ class Service {
var bookingTill: String? var bookingTill: String?
var BOD: String? var BOD: String?
var customerName: String? var customerName: String?
var customerId: String?
var customerProfileImage: String? var customerProfileImage: String?
var customerDate: String? var customerDate: String?
var baseTotal: String? var baseTotal: String?
...@@ -47,6 +48,8 @@ class Service { ...@@ -47,6 +48,8 @@ class Service {
func initWithJSON(json: [String: Any]) { func initWithJSON(json: [String: Any]) {
print(json)
if let status = json["status"] as? String { if let status = json["status"] as? String {
self.status = MyServiceStatus(rawValue: status)! self.status = MyServiceStatus(rawValue: status)!
} }
...@@ -57,6 +60,7 @@ class Service { ...@@ -57,6 +60,7 @@ class Service {
if let productInfo = productsInfo.first { if let productInfo = productsInfo.first {
self.productName = productInfo["name"] as? String self.productName = productInfo["name"] as? String
self.productId = productInfo["productId"] as? String self.productId = productInfo["productId"] as? String
self.customerId = productInfo["customer_id"] as? String
if let categoryType_ = productInfo["category_type"] as? String { if let categoryType_ = productInfo["category_type"] as? String {
self.categoryType = CategoryType(rawValue: categoryType_)! self.categoryType = CategoryType(rawValue: categoryType_)!
......
...@@ -19,6 +19,9 @@ class MyNotification { ...@@ -19,6 +19,9 @@ class MyNotification {
var notificationType: String? var notificationType: String?
var title: String? var title: String?
var maxRecords: Int = 0
var currentPage: Int = 1
var notifications = [MyNotification]() var notifications = [MyNotification]()
func initWithJSON(json: [String: Any]) { func initWithJSON(json: [String: Any]) {
......
...@@ -11,13 +11,33 @@ import Foundation ...@@ -11,13 +11,33 @@ import Foundation
extension MyNotification { extension MyNotification {
func getNotifications(_ success:@escaping () -> Void, failur: @escaping (_ errorMessage: String?) -> Void) {
func getFollwers(success: @escaping () -> Void, failuer: @escaping (_ message: String) -> Void) {
self.currentPage = 1
self.notifications = [MyNotification]()
self.getNotificationsForPage(success, failur: failuer)
}
func nextPage(success: @escaping () -> Void, failuer: @escaping (_ message: String) -> Void) {
if self.notifications.count >= self.maxRecords {
failuer("No more records")
return
}
self.currentPage = self.currentPage + 1
self.getNotificationsForPage(success, failur: failuer)
}
private func getNotificationsForPage(_ success:@escaping () -> Void, failur: @escaping (_ message: String) -> Void) {
let parameters: [String: Any] = ["storeId": UserDefaults.standard.value(forKey: "storeId") as! String, let parameters: [String: Any] = ["storeId": UserDefaults.standard.value(forKey: "storeId") as! String,
"customerId": User.customerId "customerId": User.customerId,
"page": self.currentPage
] ]
HTTP().connectionWithRequestObjectFormUrl(api: API.NOTIFICATION, parameters: parameters, method: .post, indicator: true, success: { (response) in HTTP().connectionWithRequestObjectFormUrl(api: API.NOTIFICATION, parameters: parameters, method: .post, indicator: false, success: { (response) in
print(response)
if let json = response as? [String: Any] { if let json = response as? [String: Any] {
if let notificationList = json["notificationList"] as? [[String: Any]] { if let notificationList = json["notificationList"] as? [[String: Any]] {
...@@ -31,11 +51,15 @@ extension MyNotification { ...@@ -31,11 +51,15 @@ extension MyNotification {
success() success()
} else { } else {
failur(nil) failur("Try again")
}
if let totalCount = json["totalCount"] as? Int {
self.maxRecords = totalCount
} }
} else { } else {
failur(nil) failur("Try again")
} }
......
...@@ -239,7 +239,29 @@ extension User { ...@@ -239,7 +239,29 @@ extension User {
let paramenters = ["currentPassword": oldPassword, "newPassword": newPassword] let paramenters = ["currentPassword": oldPassword, "newPassword": newPassword]
HTTP().connectionWithRequestObject(api: API.CHANGE_PASWORD, parameters: paramenters, method: .put, indicator: true, success: { (response) in HTTP().connectionWithRequestObject(api: API.CHANGE_PASWORD, parameters: paramenters, method: .put, indicator: true, success: { (response) in
print(response)
if let isSuccess = response as? Bool {
if isSuccess == true {
success()
} else {
failure("Try again")
}
} else {
if let dict = response as? [String: Any] {
if let message = dict["message"] as? String {
failure(message)
} else {
failure("Try again")
}
} else {
failure("Try again")
}
}
}) { (errorMessage) in }) { (errorMessage) in
failure(errorMessage) failure(errorMessage)
} }
......
...@@ -77,7 +77,6 @@ class HTTP: NSObject { ...@@ -77,7 +77,6 @@ class HTTP: NSObject {
SVProgressHUD.dismiss() SVProgressHUD.dismiss()
UIApplication.shared.isNetworkActivityIndicatorVisible = false UIApplication.shared.isNetworkActivityIndicatorVisible = false
print(response)
if response.response == nil { if response.response == nil {
failure("No network found") failure("No network found")
} }
...@@ -110,8 +109,9 @@ class HTTP: NSObject { ...@@ -110,8 +109,9 @@ class HTTP: NSObject {
HTTP().connectionWithRequestObject(api: api, parameters: parameters, method: method, indicator: indicator, success: success, failure: failure) HTTP().connectionWithRequestObject(api: api, parameters: parameters, method: method, indicator: indicator, success: success, failure: failure)
} }
} }
} else {
success(response.result.value!)
} }
} }
} else { } else {
......
...@@ -2594,7 +2594,7 @@ ...@@ -2594,7 +2594,7 @@
</connections> </connections>
</tableView> </tableView>
</subviews> </subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> <color key="backgroundColor" red="0.89019607840000003" green="0.97254901959999995" blue="0.99607843139999996" alpha="0.50464469180000004" colorSpace="calibratedRGB"/>
<constraints> <constraints>
<constraint firstItem="37g-wV-xCA" firstAttribute="bottom" secondItem="Pk4-Ne-5Ef" secondAttribute="bottom" id="MGv-cH-x01"/> <constraint firstItem="37g-wV-xCA" firstAttribute="bottom" secondItem="Pk4-Ne-5Ef" secondAttribute="bottom" id="MGv-cH-x01"/>
<constraint firstItem="37g-wV-xCA" firstAttribute="trailing" secondItem="Pk4-Ne-5Ef" secondAttribute="trailing" id="qRh-1n-2i8"/> <constraint firstItem="37g-wV-xCA" firstAttribute="trailing" secondItem="Pk4-Ne-5Ef" secondAttribute="trailing" id="qRh-1n-2i8"/>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<action selector="goToOnlineOfflineWithStatusSwitch:" destination="IQN-b7-9c3" eventType="valueChanged" id="dzg-xp-xHm"/> <action selector="goToOnlineOfflineWithStatusSwitch:" destination="IQN-b7-9c3" eventType="valueChanged" id="dzg-xp-xHm"/>
</connections> </connections>
</switch> </switch>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="email" translatesAutoresizingMaskIntoConstraints="NO" id="iBc-qO-d0E"> <imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="email-box" translatesAutoresizingMaskIntoConstraints="NO" id="iBc-qO-d0E">
<rect key="frame" x="335" y="5" width="32" height="28"/> <rect key="frame" x="335" y="5" width="32" height="28"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="28" id="AGH-gH-Nqm"/> <constraint firstAttribute="height" constant="28" id="AGH-gH-Nqm"/>
...@@ -365,6 +365,7 @@ ...@@ -365,6 +365,7 @@
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<connections> <connections>
<outlet property="imgUnreadMsg" destination="iBc-qO-d0E" id="eFk-9l-7zF"/>
<outlet property="lblSellerName" destination="rzY-FX-CaY" id="9dD-eo-HjZ"/> <outlet property="lblSellerName" destination="rzY-FX-CaY" id="9dD-eo-HjZ"/>
<outlet property="lblSellerTitle" destination="4Hi-PZ-J2X" id="MVS-B4-83Y"/> <outlet property="lblSellerTitle" destination="4Hi-PZ-J2X" id="MVS-B4-83Y"/>
<outlet property="lblStatus" destination="hHp-qg-oek" id="XGM-si-MFw"/> <outlet property="lblStatus" destination="hHp-qg-oek" id="XGM-si-MFw"/>
...@@ -1824,7 +1825,7 @@ ...@@ -1824,7 +1825,7 @@
<resources> <resources>
<image name="back" width="18" height="31"/> <image name="back" width="18" height="31"/>
<image name="border" width="228" height="228"/> <image name="border" width="228" height="228"/>
<image name="email" width="57" height="34"/> <image name="email-box" width="50" height="34"/>
<image name="emptyStar" width="15" height="15"/> <image name="emptyStar" width="15" height="15"/>
<image name="home" width="25" height="25"/> <image name="home" width="25" height="25"/>
<image name="placeholder" width="140" height="144"/> <image name="placeholder" width="140" height="144"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment