Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
Fengshui-Seller-iOS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Monika Agarwal
Fengshui-Seller-iOS
Commits
1a3bb3d0
Commit
1a3bb3d0
authored
Aug 29, 2018
by
Anand.suthar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues
parent
fd0d4f4f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
208 additions
and
62 deletions
+208
-62
Bhagyashree.xcodeproj/project.pbxproj
+7
-7
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+80
-0
Bhagyashree/Info.plist
+1
-1
Bhagyashree/Sunarc/Controller/Appointment/ServiceDetailViewController.swift
+22
-19
Bhagyashree/Sunarc/Controller/Appointment/VideoCallingViewController.swift
+0
-6
Bhagyashree/Sunarc/Controller/Home/HomePageViewController.swift
+29
-25
Bhagyashree/Sunarc/Controller/Home/OnlineEnquiryViewController.swift
+1
-0
Bhagyashree/Sunarc/Controller/Me/ChangePasswordViewController.swift
+45
-0
Bhagyashree/Sunarc/Model/Appointment/Appointment.swift
+4
-1
Bhagyashree/Sunarc/Model/Appointment/AppointmentExt.swift
+3
-1
Bhagyashree/Sunarc/Model/UserExt.swift
+14
-0
Bhagyashree/Sunarc/Other/HTTP/API.swift
+1
-1
Bhagyashree/Sunarc/View/Appointment.storyboard
+1
-1
Bhagyashree/Sunarc/View/Me.storyboard
+0
-0
No files found.
Bhagyashree.xcodeproj/project.pbxproj
View file @
1a3bb3d0
...
...
@@ -2061,7 +2061,7 @@
EC04CD312052CC0100B425BB
=
{
CreatedOnToolsVersion
=
9.2
;
LastSwiftMigration
=
0920
;
ProvisioningStyle
=
Manual
;
ProvisioningStyle
=
Automatic
;
SystemCapabilities
=
{
com.apple.Push
=
{
enabled
=
1
;
...
...
@@ -2834,11 +2834,11 @@
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
Bhagyashree/Bhagyashree.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
DEVELOPMENT_TEAM
=
""
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
WC72QNYT4F
;
INFOPLIST_FILE
=
Bhagyashree/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller
-dev2
"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
...
@@ -2858,11 +2858,11 @@
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
Bhagyashree/Bhagyashree.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Manual
;
DEVELOPMENT_TEAM
=
""
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
WC72QNYT4F
;
INFOPLIST_FILE
=
Bhagyashree/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller
-dev2
"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
...
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/UserInterfaceState.xcuserstate
View file @
1a3bb3d0
No preview for this file type
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
1a3bb3d0
...
...
@@ -83,5 +83,85 @@
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Model/Appointment/AppointmentExt.swift"
timestampString =
"557220733.8655649"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"25"
endingLineNumber =
"25"
landmarkName =
"unknown"
landmarkType =
"0"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Model/UserExt.swift"
timestampString =
"557228254.156836"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"236"
endingLineNumber =
"236"
landmarkName =
"callAPI(oldPassword:newPassword: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 =
"557228596.9233069"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"32"
endingLineNumber =
"32"
landmarkName =
"unknown"
landmarkType =
"0"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Controller/Me/ChangePasswordViewController.swift"
timestampString =
"557228598.131186"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"30"
endingLineNumber =
"30"
landmarkName =
"unknown"
landmarkType =
"0"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Model/UserExt.swift"
timestampString =
"557228607.042542"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"238"
endingLineNumber =
"238"
landmarkName =
"changePassword(oldPassword:newPassword:success:failure:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Bhagyashree/Info.plist
View file @
1a3bb3d0
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
8
<
/string
>
<
string
>
9
<
/string
>
<
k
e
y
>
Fabric
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
APIKey
<
/k
e
y
>
...
...
Bhagyashree/Sunarc/Controller/Appointment/ServiceDetailViewController.swift
View file @
1a3bb3d0
...
...
@@ -54,33 +54,16 @@ class ServiceDetailViewController: UIViewController {
if
let
orderId
=
self
.
orderId
{
self
.
appointment
.
detailOfComlpeted
(
orderId
:
orderId
,
success
:
{
self
.
serviceStatus
=
.
completed
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
self
.
tblServiceDetail
.
reloadData
()
self
.
showHideButtons
()
},
failure
:
{
(
errorMessage
)
in
if
errorMessage
.
count
>
0
{
self
.
view
.
showToast
(
errorMessage
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
self
.
showHideButtons
()
})
}
switch
self
.
serviceStatus
{
case
.
tbc
:
self
.
btnStartMeeting
.
isHidden
=
false
self
.
btnEditResult
.
isHidden
=
true
case
.
ongoing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
completed
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
case
.
uploadResult
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
processing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
}
})
{
(
errorMessage
)
in
...
...
@@ -92,6 +75,26 @@ class ServiceDetailViewController: UIViewController {
}
func
showHideButtons
()
{
switch
self
.
serviceStatus
{
case
.
tbc
:
self
.
btnStartMeeting
.
isHidden
=
false
self
.
btnEditResult
.
isHidden
=
true
case
.
ongoing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
completed
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
case
.
uploadResult
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
processing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
}
}
}
...
...
Bhagyashree/Sunarc/Controller/Appointment/VideoCallingViewController.swift
View file @
1a3bb3d0
...
...
@@ -25,9 +25,6 @@ class VideoCallingViewController: UIViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
print
(
orderId
)
initializeAgoraEngine
()
setupVideo
()
setupLocalVideo
()
...
...
@@ -102,9 +99,6 @@ extension VideoCallingViewController {
agoraKit
.
setupLocalVideo
(
videoCanvas
)
}
func
joinChannel
()
{
self
.
view
.
showToast
(
orderId
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
agoraKit
.
joinChannel
(
byToken
:
nil
,
channelId
:
orderId
,
info
:
nil
,
uid
:
0
)
{[
weak
self
]
(
sid
,
uid
,
elapsed
)
->
Void
in
// Join channel "demoChannel1"
if
let
weakSelf
=
self
{
...
...
Bhagyashree/Sunarc/Controller/Home/HomePageViewController.swift
View file @
1a3bb3d0
...
...
@@ -122,11 +122,19 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource {
let
order
=
dashboard
.
orders
[
indexPath
.
row
-
1
]
if
order
.
products
.
first
?
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
incrementId
=
order
.
incrementId
appointmentdetails
.
orderId
=
order
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
if
order
.
status
==
.
SERVICE_ONGOING
{
let
videoCallVC
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
VideoCallingViewController
.
self
)
videoCallVC
.
orderId
=
order
.
orderId
!
self
.
navigationController
?
.
pushViewController
(
videoCallVC
,
animated
:
true
)
}
else
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
incrementId
=
order
.
incrementId
appointmentdetails
.
orderId
=
order
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
}
}
else
if
order
.
products
.
first
?
.
serviceType
==
.
FAQ
{
if
order
.
status
==
.
PROCESSING
{
...
...
@@ -194,31 +202,27 @@ class SellerProfileCell: UITableViewCell {
if
statusSwitch
.
isOn
==
true
{
Database
.
database
()
.
reference
()
.
child
(
"sellers"
)
.
setValue
([
"
\(
User
.
customerId
)
"
:
"online"
])
self
.
delegate
.
showToast
(
message
:
"You are now online"
)
self
.
lblStatus
.
text
=
"Online"
// Dashboard.goOnlineOffline(status: true, success: {
// self.delegate.showToast(message: "You are now online")
// self.lblStatus.text = "Online"
// }) { (message) in
// self.delegate.showToast(message: message)
// statusSwitch.setOn(false, animated: true)
// }
Dashboard
.
goOnlineOffline
(
status
:
true
,
success
:
{
Database
.
database
()
.
reference
()
.
child
(
"sellers"
)
.
setValue
([
"
\(
User
.
customerId
)
"
:
"online"
])
self
.
delegate
.
showToast
(
message
:
"You are now online"
)
self
.
lblStatus
.
text
=
"Online"
})
{
(
message
)
in
self
.
delegate
.
showToast
(
message
:
message
)
statusSwitch
.
setOn
(
false
,
animated
:
true
)
}
}
else
{
Database
.
database
()
.
reference
()
.
child
(
"sellers"
)
.
setValue
([
"
\(
User
.
customerId
)
"
:
"offline"
])
self
.
delegate
.
showToast
(
message
:
"You are now offline"
)
self
.
lblStatus
.
text
=
"Offline"
// Dashboard.goOnlineOffline(status: false, success: {
// self.delegate.showToast(message: "You are now offline")
// self.lblStatus.text = "Offline"
// }) { (message) in
// self.delegate.showToast(message: message)
// statusSwitch.setOn(true, animated: true)
// }
Dashboard
.
goOnlineOffline
(
status
:
false
,
success
:
{
Database
.
database
()
.
reference
()
.
child
(
"sellers"
)
.
setValue
([
"
\(
User
.
customerId
)
"
:
"offline"
])
self
.
delegate
.
showToast
(
message
:
"You are now offline"
)
self
.
lblStatus
.
text
=
"Offline"
})
{
(
message
)
in
self
.
delegate
.
showToast
(
message
:
message
)
statusSwitch
.
setOn
(
true
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Home/OnlineEnquiryViewController.swift
View file @
1a3bb3d0
...
...
@@ -115,6 +115,7 @@ extension OnlineEnquiryViewController {
let
actionYes
=
UIAlertAction
(
title
:
"Yes"
,
style
:
.
default
)
{
(
_
)
in
UpdateOrder
.
toComplete
(
orderId
:
self
.
orderId
,
success
:
{
self
.
ref
.
child
(
"isServiceEnd"
)
.
setValue
(
true
)
self
.
navigationController
?
.
popToRootViewController
(
animated
:
true
)
},
failuer
:
{
(
errorMessage
)
in
self
.
view
.
showToast
(
errorMessage
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
...
...
Bhagyashree/Sunarc/Controller/Me/ChangePasswordViewController.swift
View file @
1a3bb3d0
...
...
@@ -10,6 +10,10 @@ import UIKit
class
ChangePasswordViewController
:
UIViewController
{
@IBOutlet
var
txtCurrentPassword
:
UITextField
!
@IBOutlet
var
txtNewPassword
:
UITextField
!
@IBOutlet
var
txtConfirmPassword
:
UITextField
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
}
...
...
@@ -20,4 +24,45 @@ class ChangePasswordViewController: UIViewController {
}
@IBAction
func
confirm
()
{
if
self
.
validations
()
==
false
{
return
}
User
.
changePassword
(
oldPassword
:
txtCurrentPassword
.
text
!
,
newPassword
:
txtNewPassword
.
text
!
,
success
:
{
print
(
"success"
)
})
{
(
errorMessage
)
in
print
(
errorMessage
)
}
}
func
validations
()
->
Bool
{
if
txtCurrentPassword
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please enter current password"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
txtNewPassword
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please enter new password"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
txtConfirmPassword
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please enter new password"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
txtCurrentPassword
.
text
!=
txtConfirmPassword
.
text
{
self
.
view
.
showToast
(
"New password and current password should be same"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
return
true
}
}
Bhagyashree/Sunarc/Model/Appointment/Appointment.swift
View file @
1a3bb3d0
...
...
@@ -102,6 +102,9 @@ class Appointment {
for
image
in
images
{
self
.
images
=
self
.
images
+
","
+
image
}
if
self
.
images
.
count
>
0
{
self
.
images
.
removeFirst
()
}
}
if
let
audios
=
json
[
"reply_audio"
]
as?
[
String
]
{
self
.
audio
=
""
...
...
@@ -127,7 +130,7 @@ class Appointment {
var
timing
:
String
{
get
{
if
self
.
bookingFrom
!=
nil
&&
self
.
bookingTill
!=
nil
{
return
self
.
bookingFrom
!
+
self
.
bookingTill
!
// TO DO
return
self
.
bookingFrom
!
+
"-"
+
self
.
bookingTill
!
// TO DO
}
if
self
.
bookingFrom
!=
nil
{
return
self
.
bookingFrom
!
...
...
Bhagyashree/Sunarc/Model/Appointment/AppointmentExt.swift
View file @
1a3bb3d0
...
...
@@ -21,7 +21,9 @@ extension Appointment {
HTTP
()
.
connectionWithRequestObjectFormUrl
(
api
:
API
.
VIEW_ORDER
,
parameters
:
parameters
,
method
:
.
post
,
indicator
:
true
,
success
:
{
(
response
)
in
print
(
response
)
if
let
validJSON
=
response
as?
[
String
:
Any
]
{
self
.
initWithJSON
(
json
:
validJSON
)
success
()
...
...
Bhagyashree/Sunarc/Model/UserExt.swift
View file @
1a3bb3d0
...
...
@@ -228,6 +228,20 @@ extension User {
}
class
func
changePassword
(
oldPassword
:
String
,
newPassword
:
String
,
success
:
@escaping
()
->
Void
,
failure
:
@escaping
(
_
errorMessage
:
String
)
->
Void
)
{
let
paramenters
=
[
"currentPassword"
:
oldPassword
,
"newPassword"
:
newPassword
]
HTTP
()
.
connectionWithRequestObject
(
api
:
API
.
CHANGE_PASWORD
,
parameters
:
paramenters
,
method
:
.
put
,
indicator
:
true
,
success
:
{
(
response
)
in
print
(
response
)
})
{
(
errorMessage
)
in
failure
(
errorMessage
)
}
}
}
...
...
Bhagyashree/Sunarc/Other/HTTP/API.swift
View file @
1a3bb3d0
...
...
@@ -33,7 +33,7 @@ class API {
static
let
COMPLETED_SERVICE
=
"/rest/V1/service/completed"
static
let
CORPORATE_CULTURE
=
"/rest/V1/bannerInfo"
static
let
REGENERATE_TOKEN
=
"/rest/V1/customer/regenerate"
static
let
CHANGE_PASWORD
=
"/rest/V1/customers/me/password"
// Appointment
static
let
VIEW_ORDER
=
"mobikulmphttp/marketplace/viewOrder"
...
...
Bhagyashree/Sunarc/View/Appointment.storyboard
View file @
1a3bb3d0
...
...
@@ -584,7 +584,7 @@
<constraint
firstAttribute=
"height"
constant=
"70"
id=
"VVO-LI-z6l"
/>
</constraints>
</imageView>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fu5-VY-bcA"
customClass=
"DrawView"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
>
<view
hidden=
"YES"
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Fu5-VY-bcA"
customClass=
"DrawView"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"9"
y=
"255"
width=
"159"
height=
"32"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"Audio"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"e0b-8x-2hk"
>
...
...
Bhagyashree/Sunarc/View/Me.storyboard
View file @
1a3bb3d0
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment