mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 11:47:40 +00:00
Merged branch Rapid-Dev-Branch into RDB-Make-Detail-View-for-Listings-View
This commit is contained in:
commit
50911da49d
Binary file not shown.
@ -6,16 +6,16 @@
|
|||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
<BreakpointContent
|
<BreakpointContent
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
filePath = "Vendoo/ServiceNotificationManager.swift"
|
||||||
timestampString = "493861477.436016"
|
timestampString = "494388533.467001"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "111"
|
startingLineNumber = "70"
|
||||||
endingLineNumber = "111"
|
endingLineNumber = "70"
|
||||||
landmarkName = "prepareForSegue(_:sender:)"
|
landmarkName = "pollServices()"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
@ -25,358 +25,43 @@
|
|||||||
shouldBeEnabled = "No"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
filePath = "Vendoo/ServiceNotificationManager.swift"
|
||||||
timestampString = "493861794.122107"
|
timestampString = "494388607.180284"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "98"
|
startingLineNumber = "71"
|
||||||
endingLineNumber = "98"
|
endingLineNumber = "71"
|
||||||
landmarkName = "prepareForSegue(_:sender:)"
|
landmarkName = "pollServices()"
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493861800.925503"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "99"
|
|
||||||
endingLineNumber = "99"
|
|
||||||
landmarkName = "prepareForSegue(_:sender:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493861890.626697"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "70"
|
|
||||||
endingLineNumber = "70"
|
|
||||||
landmarkName = "setListing()"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493930954.132313"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "567"
|
|
||||||
endingLineNumber = "567"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "608"
|
|
||||||
endingLineNumber = "608"
|
|
||||||
landmarkName = "collectionView(_:cellForItemAtIndexPath:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493930954.132313"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "579"
|
|
||||||
endingLineNumber = "579"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "700"
|
|
||||||
endingLineNumber = "700">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "595"
|
|
||||||
endingLineNumber = "595"
|
|
||||||
landmarkName = "collectionView(_:cellForItemAtIndexPath:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "678"
|
|
||||||
endingLineNumber = "678">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494029920.313663"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "224"
|
|
||||||
endingLineNumber = "224"
|
|
||||||
landmarkName = "addImagesToListing(_:imageURL:onCompletion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "643"
|
|
||||||
endingLineNumber = "643"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494029920.313663"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "229"
|
|
||||||
endingLineNumber = "229"
|
|
||||||
landmarkName = "addImagesToListing(_:imageURL:onCompletion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493923752.375488"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "459"
|
|
||||||
endingLineNumber = "459"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
<Locations>
|
<Locations>
|
||||||
<Location
|
<Location
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.publishItem (Swift.AnyObject) -> ()"
|
symbolName = "Vendoo.ServiceNotificationManager.(pollServices () -> ()).(closure #1)"
|
||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ServiceNotificationManager.swift"
|
||||||
timestampString = "494211344.051886"
|
timestampString = "494388607.183022"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "460"
|
startingLineNumber = "71"
|
||||||
endingLineNumber = "460"
|
endingLineNumber = "71"
|
||||||
offsetFromSymbolStart = "119876">
|
offsetFromSymbolStart = "4017">
|
||||||
</Location>
|
</Location>
|
||||||
<Location
|
<Location
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #4)"
|
symbolName = "Vendoo.ServiceNotificationManager.(pollServices () -> ()).(closure #1).(closure #1)"
|
||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ServiceNotificationManager.swift"
|
||||||
timestampString = "494211344.052162"
|
timestampString = "494388607.183149"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "460"
|
startingLineNumber = "73"
|
||||||
endingLineNumber = "460"
|
endingLineNumber = "73"
|
||||||
offsetFromSymbolStart = "3537">
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493924171.32457"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "477"
|
|
||||||
endingLineNumber = "477"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #5)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494211344.059888"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "479"
|
|
||||||
endingLineNumber = "479"
|
|
||||||
offsetFromSymbolStart = "4771">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #5).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494211344.062411"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "481"
|
|
||||||
endingLineNumber = "481"
|
|
||||||
offsetFromSymbolStart = "27">
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493924171.32457"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "487"
|
|
||||||
endingLineNumber = "487"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493930954.132313"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "497"
|
|
||||||
endingLineNumber = "497"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #5).(closure #1).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494211344.069134"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "498"
|
|
||||||
endingLineNumber = "498"
|
|
||||||
offsetFromSymbolStart = "1030">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #5).(closure #1).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494211344.069421"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "498"
|
|
||||||
endingLineNumber = "498"
|
|
||||||
offsetFromSymbolStart = "2770">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #5).(closure #1).(closure #1).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494211344.06972"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "500"
|
|
||||||
endingLineNumber = "500"
|
|
||||||
offsetFromSymbolStart = "20">
|
offsetFromSymbolStart = "20">
|
||||||
</Location>
|
</Location>
|
||||||
</Locations>
|
</Locations>
|
||||||
@ -388,61 +73,13 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
filePath = "Vendoo/ServiceNotificationManager.swift"
|
||||||
timestampString = "493930954.132313"
|
timestampString = "494388796.589441"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "507"
|
startingLineNumber = "73"
|
||||||
endingLineNumber = "507"
|
endingLineNumber = "73"
|
||||||
landmarkName = "publishItem(_:)"
|
landmarkName = "pollServices()"
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493930954.132313"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "568"
|
|
||||||
endingLineNumber = "568"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "493953484.620568"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "561"
|
|
||||||
endingLineNumber = "561"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494029920.313663"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "228"
|
|
||||||
endingLineNumber = "228"
|
|
||||||
landmarkName = "addImagesToListing(_:imageURL:onCompletion:)"
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
@ -453,133 +90,11 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
timestampString = "494033422.080596"
|
timestampString = "494685275.012942"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "576"
|
startingLineNumber = "573"
|
||||||
endingLineNumber = "576">
|
endingLineNumber = "573">
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "273"
|
|
||||||
endingLineNumber = "273"
|
|
||||||
landmarkName = "listItem(_:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "334"
|
|
||||||
endingLineNumber = "334"
|
|
||||||
landmarkName = "EbayWebServiceManager"
|
|
||||||
landmarkType = "3">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "654"
|
|
||||||
endingLineNumber = "654">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "687"
|
|
||||||
endingLineNumber = "687">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "312"
|
|
||||||
endingLineNumber = "312"
|
|
||||||
landmarkName = "getSubCategories(_:detailLevel:catCode:onCompletion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "426"
|
|
||||||
endingLineNumber = "426"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "663"
|
|
||||||
endingLineNumber = "663">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033422.080596"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "241"
|
|
||||||
endingLineNumber = "241"
|
|
||||||
landmarkName = "listItem(_:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -589,29 +104,11 @@
|
|||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
timestampString = "494033422.080596"
|
timestampString = "494685275.012942"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "245"
|
startingLineNumber = "571"
|
||||||
endingLineNumber = "245"
|
endingLineNumber = "571">
|
||||||
landmarkName = "listItem(_:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494033579.105862"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "262"
|
|
||||||
endingLineNumber = "262"
|
|
||||||
landmarkName = "listItem(_:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
@ -620,13 +117,13 @@
|
|||||||
shouldBeEnabled = "No"
|
shouldBeEnabled = "No"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/HomeViewController.swift"
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
timestampString = "494087787.593663"
|
timestampString = "494630189.759007"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "33"
|
startingLineNumber = "82"
|
||||||
endingLineNumber = "33"
|
endingLineNumber = "82"
|
||||||
landmarkName = "viewDidLoad()"
|
landmarkName = "checkVisibility()"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
@ -636,29 +133,13 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/SignUpViewController.swift"
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
timestampString = "494088185.778354"
|
timestampString = "494630189.759007"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "46"
|
startingLineNumber = "178"
|
||||||
endingLineNumber = "46"
|
endingLineNumber = "178"
|
||||||
landmarkName = "signUpUser(_:)"
|
landmarkName = "tableView(_:cellForRowAtIndexPath:)"
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignUpViewController.swift"
|
|
||||||
timestampString = "494088193.276749"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "88"
|
|
||||||
endingLineNumber = "88"
|
|
||||||
landmarkName = "signUpUser(_:)"
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
@ -668,29 +149,13 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/SignUpViewController.swift"
|
filePath = "Vendoo/CategoriesTableViewController.swift"
|
||||||
timestampString = "494088196.172254"
|
timestampString = "494631326.508326"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "89"
|
startingLineNumber = "583"
|
||||||
endingLineNumber = "89"
|
endingLineNumber = "583"
|
||||||
landmarkName = "signUpUser(_:)"
|
landmarkName = "tableView(_:didSelectRowAtIndexPath:)"
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "494208703.800413"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "65"
|
|
||||||
endingLineNumber = "65"
|
|
||||||
landmarkName = "signInUser(_:)"
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
@ -700,44 +165,60 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/MenuPanelViewController.swift"
|
filePath = "Vendoo/CategoriesTableViewController.swift"
|
||||||
timestampString = "494210317.414309"
|
timestampString = "494631326.508326"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "137"
|
startingLineNumber = "695"
|
||||||
endingLineNumber = "137"
|
endingLineNumber = "695"
|
||||||
landmarkName = "logoutUser(_:)"
|
landmarkName = "tableView(_:didSelectRowAtIndexPath:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494635088.267954"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "788"
|
||||||
|
endingLineNumber = "788"
|
||||||
|
landmarkName = "toggleAuth(_:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
<Locations>
|
<Locations>
|
||||||
<Location
|
<Location
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
symbolName = "Vendoo.MenuPanelViewController.logoutUser (Swift.AnyObject) -> ()"
|
symbolName = "Vendoo.NetworksTableViewController.toggleAuth (__ObjC.UIButton) -> ()"
|
||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/MenuPanelViewController.swift"
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/NetworksTableViewController.swift"
|
||||||
timestampString = "494211344.086761"
|
timestampString = "494637260.284101"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "137"
|
startingLineNumber = "788"
|
||||||
endingLineNumber = "137"
|
endingLineNumber = "788"
|
||||||
offsetFromSymbolStart = "312">
|
offsetFromSymbolStart = "1462">
|
||||||
</Location>
|
</Location>
|
||||||
<Location
|
<Location
|
||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
symbolName = "Vendoo.MenuPanelViewController.logoutUser (Swift.AnyObject) -> ()"
|
symbolName = "Vendoo.NetworksTableViewController.(toggleAuth (__ObjC.UIButton) -> ()).(closure #1)"
|
||||||
moduleName = "Vendoo"
|
moduleName = "Vendoo"
|
||||||
usesParentBreakpointCondition = "Yes"
|
usesParentBreakpointCondition = "Yes"
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/MenuPanelViewController.swift"
|
urlString = "file:///Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk/usr/include/dispatch/queue.h"
|
||||||
timestampString = "494211344.086887"
|
timestampString = "494637260.284213"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "137"
|
startingLineNumber = "325"
|
||||||
endingLineNumber = "137"
|
endingLineNumber = "325"
|
||||||
offsetFromSymbolStart = "4725">
|
offsetFromSymbolStart = "44">
|
||||||
</Location>
|
</Location>
|
||||||
</Locations>
|
</Locations>
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
@ -748,13 +229,141 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/MenuPanelViewController.swift"
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
timestampString = "494210917.083247"
|
timestampString = "494636143.418834"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "161"
|
startingLineNumber = "791"
|
||||||
endingLineNumber = "161"
|
endingLineNumber = "791"
|
||||||
landmarkName = "logoutUser(_:)"
|
landmarkName = "toggleAuth(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
<Locations>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.NetworksTableViewController.(toggleAuth (__ObjC.UIButton) -> ()).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494637260.28507"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "791"
|
||||||
|
endingLineNumber = "791"
|
||||||
|
offsetFromSymbolStart = "64">
|
||||||
|
</Location>
|
||||||
|
<Location
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
symbolName = "Vendoo.NetworksTableViewController.(toggleAuth (__ObjC.UIButton) -> ()).(closure #1).(closure #1)"
|
||||||
|
moduleName = "Vendoo"
|
||||||
|
usesParentBreakpointCondition = "Yes"
|
||||||
|
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494637260.285178"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "792"
|
||||||
|
endingLineNumber = "792"
|
||||||
|
offsetFromSymbolStart = "34">
|
||||||
|
</Location>
|
||||||
|
</Locations>
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494685275.012942"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "411"
|
||||||
|
endingLineNumber = "411"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "No"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494636097.069833"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "764"
|
||||||
|
endingLineNumber = "764"
|
||||||
|
landmarkName = "webViewDidFinishLoad(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494685275.012942"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "309"
|
||||||
|
endingLineNumber = "309"
|
||||||
|
landmarkName = "fetchToken()"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494636370.565199"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "793"
|
||||||
|
endingLineNumber = "793"
|
||||||
|
landmarkName = "toggleAuth(_:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/EbayWebServiceManager.swift"
|
||||||
|
timestampString = "494685275.012942"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "473"
|
||||||
|
endingLineNumber = "473"
|
||||||
|
landmarkName = "parser(_:foundCharacters:)"
|
||||||
|
landmarkType = "5">
|
||||||
|
</BreakpointContent>
|
||||||
|
</BreakpointProxy>
|
||||||
|
<BreakpointProxy
|
||||||
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
|
<BreakpointContent
|
||||||
|
shouldBeEnabled = "Yes"
|
||||||
|
ignoreCount = "0"
|
||||||
|
continueAfterRunningActions = "No"
|
||||||
|
filePath = "Vendoo/NetworksTableViewController.swift"
|
||||||
|
timestampString = "494637280.732776"
|
||||||
|
startingColumnNumber = "9223372036854775807"
|
||||||
|
endingColumnNumber = "9223372036854775807"
|
||||||
|
startingLineNumber = "765"
|
||||||
|
endingLineNumber = "765"
|
||||||
|
landmarkName = "webViewDidFinishLoad(_:)"
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
|||||||
BIN
Vendoo/.DS_Store
vendored
BIN
Vendoo/.DS_Store
vendored
Binary file not shown.
@ -17,7 +17,10 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
private var ebayManager: EbayWebServiceManager! = EbayWebServiceManager()
|
private var ebayManager: EbayWebServiceManager! = EbayWebServiceManager()
|
||||||
private var selectedCategory: String!
|
private var selectedCategory: String!
|
||||||
private var selectedSub: String!
|
private var selectedSub: String!
|
||||||
|
private var potentialEbay = false
|
||||||
|
private var potentialEtsy = false
|
||||||
|
private var potentialAmazon = false
|
||||||
|
|
||||||
private var categories = ["Accessories",
|
private var categories = ["Accessories",
|
||||||
"Antiques",
|
"Antiques",
|
||||||
"Art",
|
"Art",
|
||||||
@ -124,9 +127,16 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
|
|
||||||
// Configure the cell...
|
// Configure the cell...
|
||||||
|
|
||||||
|
|
||||||
dispatch_async(dispatch_get_main_queue(), {
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
cell.categoryName.text = self.categories[indexPath.row]
|
cell.categoryName.text = self.categories[indexPath.row]
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = true //facebook
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 2, inSection: 0))?.hidden = true //etsy
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 1, inSection: 0))?.hidden = true //amazon
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 0, inSection: 0))?.hidden = true //ebay
|
||||||
|
|
||||||
|
//leaving this in for category debugging purposes
|
||||||
|
/*
|
||||||
switch (cell.categoryName.text!) {
|
switch (cell.categoryName.text!) {
|
||||||
case ("Accessories") :
|
case ("Accessories") :
|
||||||
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = false //facebook
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = false //facebook
|
||||||
@ -514,7 +524,7 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
}
|
}*/
|
||||||
|
|
||||||
/*//ebay
|
/*//ebay
|
||||||
if(true){
|
if(true){
|
||||||
@ -569,22 +579,123 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
||||||
self.selectedCategory = self.categories[indexPath.row]
|
|
||||||
|
switch self.categories[indexPath.row] {
|
||||||
|
case "Antiques":
|
||||||
|
self.selectedCategory = "Antiques"
|
||||||
|
break
|
||||||
|
case "Art":
|
||||||
|
self.selectedCategory = "Art"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Baby":
|
||||||
|
self.selectedCategory = "Baby"
|
||||||
|
break
|
||||||
|
case "Bath, Beauty & Health":
|
||||||
|
self.selectedCategory = "Health and Beauty"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Books":
|
||||||
|
self.selectedCategory = "Books"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Business & Industrial":
|
||||||
|
self.selectedCategory = "Business and Industrial"
|
||||||
|
break
|
||||||
|
case "Cameras & Photo":
|
||||||
|
self.selectedCategory = "Cameras and Photo"
|
||||||
|
break
|
||||||
|
case "Cell Phones & Accessories":
|
||||||
|
self.selectedCategory = "Cell Phones and Accessories"
|
||||||
|
break
|
||||||
|
case "Clothing & Shoes":
|
||||||
|
self.selectedCategory = "Clothing, Shoes and Accessories"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Coins & Paper Money":
|
||||||
|
self.selectedCategory = "Coins and Paper Money"
|
||||||
|
break
|
||||||
|
case "Collectibles":
|
||||||
|
self.selectedCategory = "Collectibles"
|
||||||
|
break
|
||||||
|
case "Computers/Tablets and Networking":
|
||||||
|
self.selectedCategory = "Computers/Tablets and Networking"
|
||||||
|
break
|
||||||
|
case "Consumer Electronics":
|
||||||
|
self.selectedCategory = "Consumer Electronics"
|
||||||
|
break
|
||||||
|
case "Crafts":
|
||||||
|
self.selectedCategory = "Crafts"
|
||||||
|
break
|
||||||
|
case "Dolls & Miniatures":
|
||||||
|
self.selectedCategory = "Dolls and Bears"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "DVDs & Movies":
|
||||||
|
self.selectedCategory = "DVDs & Movies"
|
||||||
|
break
|
||||||
|
case "Entertainment Memorabilia":
|
||||||
|
self.selectedCategory = "Entertainment Memorabilia"
|
||||||
|
break
|
||||||
|
case "Everything Else":
|
||||||
|
self.selectedCategory = "Everything Else"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Gift Cards & Coupons":
|
||||||
|
self.selectedCategory = "Gift Cards and Coupons"
|
||||||
|
break
|
||||||
|
case "Home/Houseware & Garden":
|
||||||
|
self.selectedCategory = "Home and Garden"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Jewelry & Watches":
|
||||||
|
self.selectedCategory = "Jewelry and Watches"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Musical Instruments & Gear":
|
||||||
|
self.selectedCategory = "Musical Instruments and Gear"
|
||||||
|
break
|
||||||
|
case "Pet Supplies":
|
||||||
|
self.selectedCategory = "Pet Supplies"
|
||||||
|
break
|
||||||
|
case "Pottery & Glass":
|
||||||
|
self.selectedCategory = "Pottery and Glass"
|
||||||
|
break
|
||||||
|
case "Real Estate":
|
||||||
|
self.selectedCategory = "Real Estate"
|
||||||
|
break
|
||||||
|
case "Specialty Services":
|
||||||
|
self.selectedCategory = "Specialty Services"
|
||||||
|
break
|
||||||
|
case "Sporting Goods":
|
||||||
|
self.selectedCategory = "Sporting Goods"
|
||||||
|
break
|
||||||
|
case "Sports Memorabilia & Fan Shop":
|
||||||
|
self.selectedCategory = "Sports Mem, Cards and Fan Shop"
|
||||||
|
break
|
||||||
|
case "Tickets & Experiences":
|
||||||
|
self.selectedCategory = "Tickets and Experiences"
|
||||||
|
break
|
||||||
|
case "Toys & Hobbies":
|
||||||
|
self.selectedCategory = "Toys and Hobbies"
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
case "Travel":
|
||||||
|
self.selectedCategory = "Travel"
|
||||||
|
break
|
||||||
|
case "Video Games & Consoles":
|
||||||
|
self.selectedCategory = "Video Games and Consoles"
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
self.selectedCategory = self.categories[indexPath.row]
|
||||||
|
self.potentialEtsy = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
let cell: CategoryCell! = tableView.cellForRowAtIndexPath(indexPath) as! CategoryCell//tableView.dequeueReusableCellWithIdentifier("CategoryCell", forIndexPath: indexPath) as? CategoryCell
|
let cell: CategoryCell! = tableView.cellForRowAtIndexPath(indexPath) as! CategoryCell//tableView.dequeueReusableCellWithIdentifier("CategoryCell", forIndexPath: indexPath) as? CategoryCell
|
||||||
if(cell.shouldAskAboutLeafCategories){
|
if(self.ebayManager.isAuthorized && cell.shouldAskAboutLeafCategories){
|
||||||
var alert = UIAlertController(title: "Explore Subcategories", message: "Would you like to see the subcategories for \(self.selectedCategory). NOTE: Only Required If Posting to Ebay", preferredStyle: .Alert)
|
self.potentialEbay = true
|
||||||
|
self.navigateCategories()
|
||||||
alert.addAction(UIAlertAction(title: "Yes", style: .Default, handler: {(action: UIAlertAction!) in
|
|
||||||
self.navigateCategories()
|
|
||||||
}))
|
|
||||||
|
|
||||||
alert.addAction(UIAlertAction(title: "Cancel", style: .Cancel, handler: {(action: UIAlertAction!) in
|
|
||||||
}))
|
|
||||||
alert.addAction(UIAlertAction(title: "No", style: .Default, handler: {(action: UIAlertAction!) in
|
|
||||||
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
|
||||||
}))
|
|
||||||
self.presentViewController(alert, animated: true, completion: nil)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
self.performSegueWithIdentifier("NetworkSelectionSegue", sender: self)
|
||||||
@ -642,6 +753,20 @@ class CategoriesTableViewController: UIViewController, UITableViewDelegate, UITa
|
|||||||
fireManager: self.firManager, ebayManager: self.ebayManager, etsyManager: self.etsyManager )
|
fireManager: self.firManager, ebayManager: self.ebayManager, etsyManager: self.etsyManager )
|
||||||
|
|
||||||
(segue.destinationViewController as! NetworksTableViewController).setNetworkSelectFunctionality(true)
|
(segue.destinationViewController as! NetworksTableViewController).setNetworkSelectFunctionality(true)
|
||||||
|
|
||||||
|
//check what networks to load in network selection view
|
||||||
|
if self.graphManager.isAuthorized {
|
||||||
|
(segue.destinationViewController as! NetworksTableViewController).toggleMarketPlaceVisibitlity("facebook")
|
||||||
|
}
|
||||||
|
if self.potentialEbay && self.ebayManager.isAuthorized {
|
||||||
|
(segue.destinationViewController as! NetworksTableViewController).toggleMarketPlaceVisibitlity("ebay")
|
||||||
|
}
|
||||||
|
if self.potentialEtsy && self.etsyManager.isAuthorized {
|
||||||
|
(segue.destinationViewController as! NetworksTableViewController).toggleMarketPlaceVisibitlity("etsy")
|
||||||
|
}
|
||||||
|
if self.potentialAmazon {
|
||||||
|
(segue.destinationViewController as! NetworksTableViewController).toggleMarketPlaceVisibitlity("amazon")
|
||||||
|
}
|
||||||
//print(self.categoryPicker.selectedRowInComponent(0))
|
//print(self.categoryPicker.selectedRowInComponent(0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,6 +59,7 @@ class CategoryPopUpController: UIViewController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.categoryList = Dictionary<Int, AnyObject>()
|
||||||
self.ebayManager.getSubCategories(selectedCategory, detailLevel: self.parentCategory.count + 1, catCode: catCode, onCompletion: {
|
self.ebayManager.getSubCategories(selectedCategory, detailLevel: self.parentCategory.count + 1, catCode: catCode, onCompletion: {
|
||||||
(dict, error) -> Void in
|
(dict, error) -> Void in
|
||||||
var index = 0
|
var index = 0
|
||||||
|
|||||||
@ -40,6 +40,7 @@ class EbayWebServiceManager: NSObject {
|
|||||||
private var completion: ServiceResponse!
|
private var completion: ServiceResponse!
|
||||||
private var isGettingSubCategories: Bool = false
|
private var isGettingSubCategories: Bool = false
|
||||||
private var isRevisingListing: Bool = false
|
private var isRevisingListing: Bool = false
|
||||||
|
private var requestGroup: dispatch_group_t = dispatch_group_create()
|
||||||
//---------------------------------------------//
|
//---------------------------------------------//
|
||||||
|
|
||||||
|
|
||||||
@ -123,7 +124,7 @@ extension EbayWebServiceManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func authorizeApp(){
|
func authorizeApp(onComplete: ServiceResponse){
|
||||||
|
|
||||||
let soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
let soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
"<GetSessionIDRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
"<GetSessionIDRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
||||||
@ -133,18 +134,21 @@ extension EbayWebServiceManager {
|
|||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("GetSessionID", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("GetSessionID", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
|
self.completion = onComplete
|
||||||
self.requestMaker(soapMessage, theRequest: theRequest)
|
self.requestMaker(soapMessage, theRequest: theRequest)
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func deauthorizeApp(){
|
func deauthorizeApp(){
|
||||||
let soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
//@TODO: Add an alert to let user know if their account has not been deauthorized and keep them logged in.
|
||||||
|
var soapMessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
"<RevokeTokenRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
"<RevokeTokenRequest xmlns=\"urn:ebay:apis:eBLBaseComponents\">" +
|
||||||
"<RequesterCredentials>" +
|
"<RequesterCredentials>" +
|
||||||
"<eBayAuthToken>\(self.xmlResponseDictionary["eBayAuthToken"])</eBayAuthToken>" +
|
"<eBayAuthToken>\(self.xmlResponseDictionary["eBayAuthToken"]!)</eBayAuthToken>" +
|
||||||
"</RequesterCredentials></RevokeTokenRequest>"
|
"</RequesterCredentials>"
|
||||||
|
soapMessage = soapMessage + "<ErrorLanguage>en_US</ErrorLanguage>" +
|
||||||
|
"<WarningLevel>High</WarningLevel></RevokeTokenRequest>"
|
||||||
|
|
||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
@ -303,7 +307,7 @@ extension EbayWebServiceManager {
|
|||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("FetchToken", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("FetchToken", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
|
//dispatch_group_enter(self.requestGroup)
|
||||||
self.requestMaker(soapMessage, theRequest: theRequest)
|
self.requestMaker(soapMessage, theRequest: theRequest)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -404,6 +408,7 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
print("account credentials saved")
|
print("account credentials saved")
|
||||||
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ebayAuthorized")
|
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "ebayAuthorized")
|
||||||
self.isAuthorized = true
|
self.isAuthorized = true
|
||||||
|
//self.completion(nil, nil)
|
||||||
|
|
||||||
//Test authentication
|
//Test authentication
|
||||||
let soapmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
let soapmessage = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
|
||||||
@ -465,7 +470,7 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
let url = NSURL(string: self.baseURL)
|
let url = NSURL(string: self.baseURL)
|
||||||
let theRequest = NSMutableURLRequest(URL: url!)
|
let theRequest = NSMutableURLRequest(URL: url!)
|
||||||
theRequest.addValue("GetCategories", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
theRequest.addValue("GetCategories", forHTTPHeaderField: "X-EBAY-API-CALL-NAME")
|
||||||
|
self.completion(nil, nil)
|
||||||
self.requestMaker(soapmessage, theRequest: theRequest)
|
self.requestMaker(soapmessage, theRequest: theRequest)
|
||||||
break
|
break
|
||||||
/*
|
/*
|
||||||
|
|||||||
@ -52,8 +52,6 @@ class EtsyRESTAPIManager: NSObject {
|
|||||||
"accessTokenUrl": "https://openapi.etsy.com/v2/oauth/access_token?",
|
"accessTokenUrl": "https://openapi.etsy.com/v2/oauth/access_token?",
|
||||||
"responseType": "token"])
|
"responseType": "token"])
|
||||||
|
|
||||||
|
|
||||||
//FIXME: something is wrong when here when logging back in with a diff user
|
|
||||||
if(self.isAuthorized){
|
if(self.isAuthorized){
|
||||||
let dictionary = Locksmith.loadDataForUserAccount(self.userEmail, inService: "vendoo_oauth_etsy")
|
let dictionary = Locksmith.loadDataForUserAccount(self.userEmail, inService: "vendoo_oauth_etsy")
|
||||||
let oauthDictionary = dictionary?["etsy_oauth"] as? Dictionary<String, AnyObject!>
|
let oauthDictionary = dictionary?["etsy_oauth"] as? Dictionary<String, AnyObject!>
|
||||||
|
|||||||
@ -18,14 +18,13 @@ class FirebaseManager: NSObject {
|
|||||||
let ref = FIRDatabase.database().reference()
|
let ref = FIRDatabase.database().reference()
|
||||||
let user_email = ((NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!).stringByReplacingOccurrencesOfString(".", withString: "_")
|
let user_email = ((NSUserDefaults.standardUserDefaults().objectForKey("email") as? String)!).stringByReplacingOccurrencesOfString(".", withString: "_")
|
||||||
let storage = FIRStorage.storage()
|
let storage = FIRStorage.storage()
|
||||||
let indicator = TYMActivityIndicatorView.init(activityIndicatorStyle: (TYMActivityIndicatorViewStyle.Normal))
|
var indicator = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.WhiteLarge)
|
||||||
|
|
||||||
//let key: String!
|
//let key: String!
|
||||||
|
|
||||||
override init(){
|
override init(){
|
||||||
super.init()
|
super.init()
|
||||||
|
indicator.color = UIColor.blueColor()
|
||||||
|
|
||||||
|
|
||||||
//check if user has been created
|
//check if user has been created
|
||||||
self.ref.child("Users").observeSingleEventOfType(.Value, withBlock: { snapshot in
|
self.ref.child("Users").observeSingleEventOfType(.Value, withBlock: { snapshot in
|
||||||
// do some stuff once
|
// do some stuff once
|
||||||
|
|||||||
@ -111,8 +111,10 @@ class HomeViewController: UITabBarController {
|
|||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
}else {
|
||||||
|
NSNotificationCenter.defaultCenter().postNotificationName("finished_fetching_listings", object: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@ -37,6 +37,8 @@ class ItemImagePickerViewController: UIViewController {
|
|||||||
private var currImageSelected: UIImageView!
|
private var currImageSelected: UIImageView!
|
||||||
private var currUILabel: UILabel!
|
private var currUILabel: UILabel!
|
||||||
private var imageIndex: Int!
|
private var imageIndex: Int!
|
||||||
|
private var isEditing: Bool = false
|
||||||
|
private var currentInformation: Dictionary<String, AnyObject>!
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
@ -52,19 +54,49 @@ class ItemImagePickerViewController: UIViewController {
|
|||||||
self.itemPrice.delegate = self
|
self.itemPrice.delegate = self
|
||||||
self.picker.delegate = self
|
self.picker.delegate = self
|
||||||
|
|
||||||
// Input data into the Array:
|
|
||||||
pickerData = ["Category 1", "Category 2", "Category 3", "Category 4", "Category 5", "Category 6"]
|
|
||||||
|
|
||||||
let tapGestureMain = UITapGestureRecognizer(target: self, action: #selector(ItemImagePickerViewController.takePicture))
|
let tapGestureMain = UITapGestureRecognizer(target: self, action: #selector(ItemImagePickerViewController.takePicture))
|
||||||
let tapGesture2 = UITapGestureRecognizer(target: self, action: #selector(ItemImagePickerViewController.takePicture))
|
|
||||||
//tapGesture.cancelsTouchesInView = true
|
|
||||||
self.view.addGestureRecognizer(tapGestureMain)
|
self.view.addGestureRecognizer(tapGestureMain)
|
||||||
//self.possibleItemImageMain.addGestureRecognizer(tapGestureMain)
|
|
||||||
//self.possibleItemImage2.addGestureRecognizer(tapGesture2)
|
if(self.isEditing) {
|
||||||
//self.possibleItemImage3.addGestureRecognizer(tapGesture)
|
self.itemName.text = self.currentInformation["title"] as? String
|
||||||
//self.possibleItemImage4.addGestureRecognizer(tapGesture)
|
self.itemDescription.text = self.currentInformation["description"] as? String
|
||||||
//self.possibleItemImage5.addGestureRecognizer(tapGesture)
|
self.itemQuantity.text = self.currentInformation["quantity"] as? String
|
||||||
|
self.itemPrice.text = self.currentInformation["price"] as? String
|
||||||
|
|
||||||
|
//@FIXME: Cancel button not changing to Back button label
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
self.cancelButton.titleLabel?.text = "Back"
|
||||||
|
})
|
||||||
|
|
||||||
|
var images = (self.currentInformation["images"] as? [UIImage])!
|
||||||
|
for i in 0...(images.count - 1) {
|
||||||
|
switch i {
|
||||||
|
case 0:
|
||||||
|
self.possibleItemImageMain.image = images[i]
|
||||||
|
self.itemImagesSelections[i] = true
|
||||||
|
break
|
||||||
|
case 1:
|
||||||
|
self.possibleItemImage2.image = images[i]
|
||||||
|
self.itemImagesSelections[i] = true
|
||||||
|
break
|
||||||
|
case 2:
|
||||||
|
self.possibleItemImage3.image = images[i]
|
||||||
|
self.itemImagesSelections[i] = true
|
||||||
|
break
|
||||||
|
case 3:
|
||||||
|
self.possibleItemImage4.image = images[i]
|
||||||
|
self.itemImagesSelections[i] = true
|
||||||
|
break
|
||||||
|
case 4:
|
||||||
|
self.possibleItemImage5.image = images[i]
|
||||||
|
self.itemImagesSelections[i] = true
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,7 +111,12 @@ class ItemImagePickerViewController: UIViewController {
|
|||||||
self.tabBarController?.tabBar.hidden = true
|
self.tabBarController?.tabBar.hidden = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func toggleEditingMode(dictionary: Dictionary<String, AnyObject>?){
|
||||||
|
if(!self.isEditing) {
|
||||||
|
self.currentInformation = dictionary!
|
||||||
|
}
|
||||||
|
self.isEditing = !self.isEditing
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -126,12 +163,15 @@ extension ItemImagePickerViewController {
|
|||||||
|
|
||||||
dict["pictures"] = images
|
dict["pictures"] = images
|
||||||
(segue.destinationViewController as! CategoriesTableViewController).setListingDictionary(dict)
|
(segue.destinationViewController as! CategoriesTableViewController).setListingDictionary(dict)
|
||||||
(segue.destinationViewController as! CategoriesTableViewController).setManagers(((self.tabBarController as? HomeViewController)?.fbGraphManager)!,
|
|
||||||
fireManager: ((self.tabBarController as? HomeViewController)?.firebaseManager)!, ebayManager: ((self.tabBarController as? HomeViewController)?.ebayGraphManager)!,
|
|
||||||
etsyManager: ((self.tabBarController as? HomeViewController)?.etsyManager)!)
|
|
||||||
|
|
||||||
//(segue.destinationViewController as! NetworksTableViewController).setNetworkSelectFunctionality(true)
|
if(self.isEditing) {
|
||||||
//print(self.categoryPicker.selectedRowInComponent(0))
|
(segue.destinationViewController as! CategoriesTableViewController).setManagers((self.currentInformation["fbManager"] as? FacebookGraphAPIManager)!, fireManager: (self.currentInformation["firebaseManager"] as? FirebaseManager)!, ebayManager: (self.currentInformation["ebayManager"] as? EbayWebServiceManager)!, etsyManager: (self.currentInformation["etsyManager"] as? EtsyRESTAPIManager)!)
|
||||||
|
|
||||||
|
}else {
|
||||||
|
(segue.destinationViewController as! CategoriesTableViewController).setManagers(((self.tabBarController as? HomeViewController)?.fbGraphManager)!,
|
||||||
|
fireManager: ((self.tabBarController as? HomeViewController)?.firebaseManager)!, ebayManager: ((self.tabBarController as? HomeViewController)?.ebayGraphManager)!,
|
||||||
|
etsyManager: ((self.tabBarController as? HomeViewController)?.etsyManager)!)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -185,7 +225,6 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
|||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]) {
|
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]) {
|
||||||
//self.itemImagesSelections[2] = true
|
|
||||||
viewsWereSaved[0] = true
|
viewsWereSaved[0] = true
|
||||||
|
|
||||||
self.imageIndex = 2
|
self.imageIndex = 2
|
||||||
@ -201,7 +240,6 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
|||||||
case 3:
|
case 3:
|
||||||
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]
|
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]
|
||||||
&& self.itemImagesSelections[2]) {
|
&& self.itemImagesSelections[2]) {
|
||||||
//self.itemImagesSelections[3] = true
|
|
||||||
viewsWereSaved[0] = true
|
viewsWereSaved[0] = true
|
||||||
|
|
||||||
self.imageIndex = 3
|
self.imageIndex = 3
|
||||||
@ -217,7 +255,6 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
|||||||
case 4:
|
case 4:
|
||||||
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]
|
if(self.itemImagesSelections[0] && self.itemImagesSelections[1]
|
||||||
&& self.itemImagesSelections[2] && self.itemImagesSelections[3]) {
|
&& self.itemImagesSelections[2] && self.itemImagesSelections[3]) {
|
||||||
//self.itemImagesSelections[4] = true
|
|
||||||
viewsWereSaved[0] = true
|
viewsWereSaved[0] = true
|
||||||
|
|
||||||
self.imageIndex = 4
|
self.imageIndex = 4
|
||||||
@ -244,20 +281,6 @@ extension ItemImagePickerViewController: UIImagePickerControllerDelegate, UINavi
|
|||||||
viewsWereSaved[1] = true
|
viewsWereSaved[1] = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
for (UIView *view in self.view.subviews)
|
|
||||||
{
|
|
||||||
if ([view isKindOfClass:[UIImageView class]] && CGRectContainsPoint(view.frame, location))
|
|
||||||
{
|
|
||||||
UIImageView *image = (UIImageView *) view;
|
|
||||||
|
|
||||||
// ok, now you know which image you received your long press for
|
|
||||||
// do whatever you wanted on it at this point
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -492,9 +515,13 @@ extension ItemImagePickerViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@IBAction func cancelNewListing(sender: AnyObject) {
|
@IBAction func cancelNewListing(sender: AnyObject) {
|
||||||
//nil out all data user may have entered so that when they reopen new listing page
|
//@FIXME: nil out all data user may have entered so that when they reopen new listing page it initialized to a fresh screen.
|
||||||
//it initialized to a fresh screen.
|
|
||||||
self.tabBarController?.selectedIndex = 0
|
if(!self.isEditing) {
|
||||||
|
self.tabBarController?.selectedIndex = 0
|
||||||
|
}else{
|
||||||
|
self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
This class will be used to retrieve and manipulate data seen by the end user for he/she's item listings
|
This class will be used to retrieve and manipulate data seen by the end user for he/she's item listings
|
||||||
*/
|
*/
|
||||||
import UIKit
|
import UIKit
|
||||||
|
import TYMActivityIndicatorView
|
||||||
|
|
||||||
class ItemTableViewController: UIViewController {
|
class ItemTableViewController: UIViewController {
|
||||||
|
|
||||||
@ -19,6 +20,7 @@ class ItemTableViewController: UIViewController {
|
|||||||
|
|
||||||
@IBOutlet weak var menuButton: UIBarButtonItem!
|
@IBOutlet weak var menuButton: UIBarButtonItem!
|
||||||
|
|
||||||
|
var loadingView: UIView!
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
|
|
||||||
@ -39,10 +41,18 @@ class ItemTableViewController: UIViewController {
|
|||||||
menuButton.action = "revealToggle:"
|
menuButton.action = "revealToggle:"
|
||||||
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
|
self.view.addGestureRecognizer(self.revealViewController().panGestureRecognizer())
|
||||||
}
|
}
|
||||||
(self.tabBarController as? HomeViewController)?.firebaseManager.indicator.hidesWhenStopped = 1
|
|
||||||
//self.view.addSubview(((self.tabBarController as? HomeViewController)?.firebaseManager.indicator)!)
|
self.loadingView = UIView(frame: self.view.frame)
|
||||||
|
self.loadingView.backgroundColor = UIColor.grayColor()
|
||||||
|
self.loadingView.alpha = 0.4
|
||||||
|
((self.tabBarController as? HomeViewController)?.firebaseManager.indicator)!.center = self.view.center
|
||||||
|
|
||||||
|
|
||||||
|
self.loadingView.addSubview(((self.tabBarController as? HomeViewController)?.firebaseManager.indicator)!)
|
||||||
|
self.view.addSubview(loadingView)
|
||||||
(self.tabBarController as? HomeViewController)?.firebaseManager.indicator.startAnimating()
|
(self.tabBarController as? HomeViewController)?.firebaseManager.indicator.startAnimating()
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +68,7 @@ class ItemTableViewController: UIViewController {
|
|||||||
|
|
||||||
func stopIndicator(){
|
func stopIndicator(){
|
||||||
(self.tabBarController as? HomeViewController)?.firebaseManager.indicator.stopAnimating()
|
(self.tabBarController as? HomeViewController)?.firebaseManager.indicator.stopAnimating()
|
||||||
|
self.loadingView.removeFromSuperview()
|
||||||
self.itemTable.reloadData()
|
self.itemTable.reloadData()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -14,6 +14,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import UIKit
|
import UIKit
|
||||||
|
import SWRevealViewController
|
||||||
|
|
||||||
//@TODO: Need to make multiple images work for etsy and facebook and need to implement multiple images saving to firebase
|
//@TODO: Need to make multiple images work for etsy and facebook and need to implement multiple images saving to firebase
|
||||||
class ListingPreviewViewController: UIViewController {
|
class ListingPreviewViewController: UIViewController {
|
||||||
|
|
||||||
@ -37,6 +39,7 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
private var alert = UIAlertController(title: "Listing Published", message: "Your listing has been published", preferredStyle: .Alert)
|
private var alert = UIAlertController(title: "Listing Published", message: "Your listing has been published", preferredStyle: .Alert)
|
||||||
private var lastListingKey: String!
|
private var lastListingKey: String!
|
||||||
private var newInProgressListing: Dictionary<String,AnyObject> = Dictionary<String, AnyObject>()
|
private var newInProgressListing: Dictionary<String,AnyObject> = Dictionary<String, AnyObject>()
|
||||||
|
var loadingView: UIView!
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
@ -92,12 +95,23 @@ class ListingPreviewViewController: UIViewController {
|
|||||||
// Pass the selected object to the new view controller.
|
// Pass the selected object to the new view controller.
|
||||||
|
|
||||||
if(segue.identifier == "EditListingSegue"){
|
if(segue.identifier == "EditListingSegue"){
|
||||||
|
var imageData: [UIImage] = []
|
||||||
|
for imageView in (self.itemListingDictionary["pictures"] as? [UIImageView])! {
|
||||||
|
imageData.append(imageView.image!)
|
||||||
|
}
|
||||||
|
|
||||||
|
let dict: Dictionary<String, AnyObject> = ["title": self.itemTitle.text,
|
||||||
|
"description": self.itemDescription.text,
|
||||||
|
"price": self.itemPrice.text,
|
||||||
|
"quantity": self.itemQuantity.text,
|
||||||
|
"images": imageData,
|
||||||
|
"category": self.itemCategory.text,
|
||||||
|
"fbManager": self.graphManager,
|
||||||
|
"ebayManager": self.ebayManager,
|
||||||
|
"etsyManager": self.etsyManager,
|
||||||
|
"firebaseManager": self.firManager]
|
||||||
let vc = (segue.destinationViewController as? ItemImagePickerViewController)!
|
let vc = (segue.destinationViewController as? ItemImagePickerViewController)!
|
||||||
vc.itemName.text? = self.itemTitle.text
|
vc.toggleEditingMode(dict)
|
||||||
vc.itemPrice.text? = self.itemPrice.text
|
|
||||||
vc.itemDescription.text? = self.itemDescription.text
|
|
||||||
vc.possibleItemImageMain = self.itemPicture
|
|
||||||
vc.itemQuantity.text? = self.itemQuantity.text
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,9 +141,22 @@ extension Dictionary {
|
|||||||
|
|
||||||
//MARK: - IBActions
|
//MARK: - IBActions
|
||||||
extension ListingPreviewViewController {
|
extension ListingPreviewViewController {
|
||||||
|
@IBAction func cancel(sender: AnyObject) {
|
||||||
|
let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
|
||||||
|
let vc = storyboard.instantiateViewControllerWithIdentifier("Reveal View Controller") as! SWRevealViewController
|
||||||
|
self.presentViewController(vc, animated: true, completion: nil)
|
||||||
|
}
|
||||||
|
|
||||||
@IBAction func publishItem(sender: AnyObject) {
|
@IBAction func publishItem(sender: AnyObject) {
|
||||||
|
self.loadingView = UIView(frame: self.view.frame)
|
||||||
|
self.loadingView.backgroundColor = UIColor.grayColor()
|
||||||
|
self.loadingView.alpha = 0.4
|
||||||
|
|
||||||
|
self.firManager.indicator.center = self.view.center
|
||||||
|
|
||||||
|
self.loadingView.addSubview(self.firManager.indicator)
|
||||||
|
self.view.addSubview(loadingView)
|
||||||
|
self.firManager.indicator.startAnimating()
|
||||||
|
|
||||||
if(self.itemPicture.image == nil){
|
if(self.itemPicture.image == nil){
|
||||||
let alert = UIAlertController(title: "Image Needed", message: "To proceed to choose networks, you must supply at least one picture for your listing", preferredStyle: .Alert)
|
let alert = UIAlertController(title: "Image Needed", message: "To proceed to choose networks, you must supply at least one picture for your listing", preferredStyle: .Alert)
|
||||||
@ -147,108 +174,6 @@ extension ListingPreviewViewController {
|
|||||||
//post to ebay
|
//post to ebay
|
||||||
if(self.networksDictionary["ebay"]!){
|
if(self.networksDictionary["ebay"]!){
|
||||||
dispatch_group_enter(postingGroup)
|
dispatch_group_enter(postingGroup)
|
||||||
var categoryCode: String!
|
|
||||||
var dict = EbayWebServiceManager.settingsDictionary["categories"]!
|
|
||||||
switch self.itemCategory.text {
|
|
||||||
case "Antiques":
|
|
||||||
categoryCode = (dict["Antiques"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Art":
|
|
||||||
categoryCode = (dict["Art"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Baby":
|
|
||||||
categoryCode = (dict["Baby"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Bath, Beauty & Health":
|
|
||||||
categoryCode = (dict["Health and Beauty"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Books":
|
|
||||||
categoryCode = (dict["Books"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Business & Industrial":
|
|
||||||
categoryCode = (dict["Business and Industrial"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Cameras & Photo":
|
|
||||||
categoryCode = (dict["Cameras and Photo"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Cell Phones & Accessories":
|
|
||||||
categoryCode = (dict["Cell Phones and Accessories"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Clothing & Shoes":
|
|
||||||
categoryCode = (dict["Clothing, Shoes and Accessories"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Coins & Paper Money":
|
|
||||||
categoryCode = (dict["Coins and Paper Money"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Collectibles":
|
|
||||||
categoryCode = (dict["Collectibles"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Computers/Tablets and Networking":
|
|
||||||
categoryCode = (dict["Computers/Tablets and Networking"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Consumer Electronics":
|
|
||||||
categoryCode = (dict["Consumer Electronics"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Crafts":
|
|
||||||
categoryCode = (dict["Crafts"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Dolls & Miniatures":
|
|
||||||
categoryCode = (dict["Dolls and Bears"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "DVDs & Movies":
|
|
||||||
categoryCode = (dict["DVDs & Movies"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Entertainment Memorabilia":
|
|
||||||
categoryCode = (dict["Entertainment Memorabilia"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Everything Else":
|
|
||||||
categoryCode = (dict["Everything Else"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Gift Cards & Coupons":
|
|
||||||
categoryCode = (dict["Gift Cards and Coupons"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Home/Houseware & Garden":
|
|
||||||
categoryCode = (dict["Coins and Paper Money"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Jewelry & Watches":
|
|
||||||
categoryCode = (dict["Jewelry and Watches"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Musical Instruments & Gear":
|
|
||||||
categoryCode = (dict["Musical Instruments and Gear"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Pet Supplies":
|
|
||||||
categoryCode = (dict["Pet Supplies"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Pottery & Glass":
|
|
||||||
categoryCode = (dict["Pottery and Glass"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Real Estate":
|
|
||||||
categoryCode = (dict["Real Estate"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Specialty Services":
|
|
||||||
categoryCode = (dict["Specialty Services"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Sporting Goods":
|
|
||||||
categoryCode = (dict["Sporting Goods"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Sports Memorabilia & Fan Shop":
|
|
||||||
categoryCode = (dict["Sports Mem, Cards and Fan Shop"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Tickets & Experiences":
|
|
||||||
categoryCode = (dict["Tickets and Experiences"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Toys & Hobbies":
|
|
||||||
categoryCode = (dict["Toys and Hobbies"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Travel":
|
|
||||||
categoryCode = (dict["Travel"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
case "Video Games & Consoles":
|
|
||||||
categoryCode = (dict["Video Games and Consoles"] as! Dictionary<String, AnyObject>)["cat_id"] as! String
|
|
||||||
break
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
let body: [String: String] = [ "title": self.itemTitle.text,
|
let body: [String: String] = [ "title": self.itemTitle.text,
|
||||||
"quantity":self.itemQuantity.text,
|
"quantity":self.itemQuantity.text,
|
||||||
@ -516,6 +441,17 @@ extension ListingPreviewViewController {
|
|||||||
|
|
||||||
//register new listing id in global path of firebase root'
|
//register new listing id in global path of firebase root'
|
||||||
self.firManager.ref.child("Global_listings").child(newListingRef.key).setValue(newListingRef.key)
|
self.firManager.ref.child("Global_listings").child(newListingRef.key).setValue(newListingRef.key)
|
||||||
|
self.firManager.indicator.stopAnimating()
|
||||||
|
|
||||||
|
let alert = UIAlertController(title: "Listing Posted Successfully", message: "Your listing was submitted to all networks successfully", preferredStyle: .Alert)
|
||||||
|
|
||||||
|
alert.addAction(UIAlertAction(title: "OK", style: .Default, handler:{(action: UIAlertAction!) in
|
||||||
|
|
||||||
|
self.cancel(self)
|
||||||
|
alert.dismissViewControllerAnimated(true, completion: nil)
|
||||||
|
}))
|
||||||
|
|
||||||
|
self.presentViewController(alert, animated: true, completion: nil)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1016,6 +1016,17 @@
|
|||||||
<color key="textColor" red="0.10588235294117647" green="0.078431372549019607" blue="0.23921568627450979" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="textColor" red="0.10588235294117647" green="0.078431372549019607" blue="0.23921568627450979" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
|
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" id="EMt-PR-56K">
|
||||||
|
<rect key="frame" x="307" y="8" width="60" height="30"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
|
<state key="normal" title="Cancel">
|
||||||
|
<color key="titleColor" red="1" green="0.44538913570442429" blue="0.4193885779602724" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
|
</state>
|
||||||
|
<connections>
|
||||||
|
<action selector="cancel:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="a84-0e-3PX"/>
|
||||||
|
<action selector="editListing:" destination="gfQ-Y2-Mqh" eventType="touchUpInside" id="yDN-99-lsc"/>
|
||||||
|
</connections>
|
||||||
|
</button>
|
||||||
</subviews>
|
</subviews>
|
||||||
</scrollView>
|
</scrollView>
|
||||||
</subviews>
|
</subviews>
|
||||||
@ -1597,7 +1608,7 @@
|
|||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<prototypes>
|
<prototypes>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="9G8-XI-ptI">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="9G8-XI-ptI">
|
||||||
<rect key="frame" x="0.0" y="72" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="92" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="9G8-XI-ptI" id="r3f-6Q-p1g">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="9G8-XI-ptI" id="r3f-6Q-p1g">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
||||||
@ -1614,7 +1625,7 @@
|
|||||||
</tableViewCellContentView>
|
</tableViewCellContentView>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="JJa-O7-kym">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" accessoryType="disclosureIndicator" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="JJa-O7-kym">
|
||||||
<rect key="frame" x="0.0" y="116" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="136" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJa-O7-kym" id="bCt-1V-IW1">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="JJa-O7-kym" id="bCt-1V-IW1">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="342" height="43.5"/>
|
||||||
@ -1675,7 +1686,7 @@
|
|||||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||||
<prototypes>
|
<prototypes>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Change_Pass_Cell" id="ceq-sl-ClT">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Change_Pass_Cell" id="ceq-sl-ClT">
|
||||||
<rect key="frame" x="0.0" y="72" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="92" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="ceq-sl-ClT" id="Waq-fu-UxD">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="ceq-sl-ClT" id="Waq-fu-UxD">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
||||||
@ -1692,7 +1703,7 @@
|
|||||||
</tableViewCellContentView>
|
</tableViewCellContentView>
|
||||||
</tableViewCell>
|
</tableViewCell>
|
||||||
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Delete_Account_Cell" id="Lha-cf-Sfc">
|
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" reuseIdentifier="Delete_Account_Cell" id="Lha-cf-Sfc">
|
||||||
<rect key="frame" x="0.0" y="116" width="375" height="44"/>
|
<rect key="frame" x="0.0" y="136" width="375" height="44"/>
|
||||||
<autoresizingMask key="autoresizingMask"/>
|
<autoresizingMask key="autoresizingMask"/>
|
||||||
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Lha-cf-Sfc" id="kmF-Sb-d0c">
|
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="Lha-cf-Sfc" id="kmF-Sb-d0c">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
<rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
|
||||||
@ -2452,9 +2463,9 @@
|
|||||||
<inferredMetricsTieBreakers>
|
<inferredMetricsTieBreakers>
|
||||||
<segue reference="syc-IR-LNQ"/>
|
<segue reference="syc-IR-LNQ"/>
|
||||||
<segue reference="nWA-7e-2Ec"/>
|
<segue reference="nWA-7e-2Ec"/>
|
||||||
<segue reference="Gnt-iE-cW9"/>
|
<segue reference="Sz0-BH-2me"/>
|
||||||
<segue reference="NOz-ya-avj"/>
|
|
||||||
<segue reference="eaI-bm-1aI"/>
|
<segue reference="eaI-bm-1aI"/>
|
||||||
|
<segue reference="rkZ-c8-XJc"/>
|
||||||
</inferredMetricsTieBreakers>
|
</inferredMetricsTieBreakers>
|
||||||
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="tintColor" red="0.2784313725" green="0.80392156859999997" blue="0.68235294120000001" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
</document>
|
</document>
|
||||||
|
|||||||
@ -33,6 +33,8 @@ class NetworksTableViewController: UIViewController {
|
|||||||
private var firManager: FirebaseManager! = nil
|
private var firManager: FirebaseManager! = nil
|
||||||
private var etsyManager: EtsyRESTAPIManager! = nil
|
private var etsyManager: EtsyRESTAPIManager! = nil
|
||||||
private var ebayManager: EbayWebServiceManager! = EbayWebServiceManager()
|
private var ebayManager: EbayWebServiceManager! = EbayWebServiceManager()
|
||||||
|
private var shouldShowDictionary: Dictionary<String, Bool> = ["ebay":false, "amazon":false,"etsy":false,"facebook":false]
|
||||||
|
private var networkOrderSelection: [String] = []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -71,6 +73,23 @@ class NetworksTableViewController: UIViewController {
|
|||||||
self.networkToggleOrSelect = bool
|
self.networkToggleOrSelect = bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func toggleMarketPlaceVisibitlity (market: String) {
|
||||||
|
self.shouldShowDictionary[market] = !self.shouldShowDictionary[market]!
|
||||||
|
}
|
||||||
|
|
||||||
|
private func checkVisibility () -> String? {
|
||||||
|
var string = ""
|
||||||
|
for (market, visibility) in self.shouldShowDictionary {
|
||||||
|
if visibility {
|
||||||
|
self.shouldShowDictionary[market] = !self.shouldShowDictionary[market]!
|
||||||
|
string = market
|
||||||
|
self.networkOrderSelection.append(market)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return string
|
||||||
|
}
|
||||||
|
|
||||||
override func viewWillAppear(animated: Bool) {
|
override func viewWillAppear(animated: Bool) {
|
||||||
super.viewWillAppear(animated)
|
super.viewWillAppear(animated)
|
||||||
if(!networkToggleOrSelect) {
|
if(!networkToggleOrSelect) {
|
||||||
@ -129,8 +148,20 @@ extension NetworksTableViewController: UITableViewDataSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
||||||
// #warning Incomplete implementation, return the number of rows
|
if(self.networkToggleOrSelect) {
|
||||||
return 4
|
var count = 0
|
||||||
|
// #warning Incomplete implementation, return the number of rows
|
||||||
|
for (_, visibility) in self.shouldShowDictionary {
|
||||||
|
if visibility {
|
||||||
|
count += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return count
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 4
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -142,7 +173,27 @@ extension NetworksTableViewController: UITableViewDataSource {
|
|||||||
//may hide future networks that don't apply to a listing
|
//may hide future networks that don't apply to a listing
|
||||||
if(self.networkToggleOrSelect){
|
if(self.networkToggleOrSelect){
|
||||||
|
|
||||||
switch (indexPath.row){
|
let market = self.checkVisibility()!
|
||||||
|
switch (market) {
|
||||||
|
case "facebook":
|
||||||
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("facebook", forIndexPath: indexPath) as! FBTableViewCell)
|
||||||
|
break
|
||||||
|
case "ebay":
|
||||||
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("ebay", forIndexPath: indexPath) as! EbayTableViewCell)
|
||||||
|
break
|
||||||
|
case "etsy":
|
||||||
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("etsy", forIndexPath: indexPath) as! EtsyTableViewCell)
|
||||||
|
break
|
||||||
|
case "amazon":
|
||||||
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("amazon", forIndexPath: indexPath) as! AmazonTableViewCell)
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
cell = UITableViewCell()
|
||||||
|
break
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*switch (indexPath.row){
|
||||||
|
|
||||||
case 0:
|
case 0:
|
||||||
|
|
||||||
@ -162,7 +213,7 @@ extension NetworksTableViewController: UITableViewDataSource {
|
|||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("facebook", forIndexPath: indexPath) as! FBTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("facebook", forIndexPath: indexPath) as! FBTableViewCell)
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}*/
|
||||||
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
@ -353,8 +404,8 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
//case where class is being used in new item posting workflow to select which network to sell on
|
//case where class is being used in new item posting workflow to select which network to sell on
|
||||||
if(self.networkToggleOrSelect){
|
if(self.networkToggleOrSelect){
|
||||||
|
|
||||||
switch (indexPath.row){
|
switch (self.networkOrderSelection[indexPath.row]){
|
||||||
case 0:
|
case "ebay":
|
||||||
let cell: EbayTableViewCell!
|
let cell: EbayTableViewCell!
|
||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("ebay", forIndexPath: indexPath) as! EbayTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("ebay", forIndexPath: indexPath) as! EbayTableViewCell)
|
||||||
cell.setSelected(false, animated: false)
|
cell.setSelected(false, animated: false)
|
||||||
@ -383,7 +434,7 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
break
|
break
|
||||||
case 1:
|
case "amazon":
|
||||||
let cell: AmazonTableViewCell!
|
let cell: AmazonTableViewCell!
|
||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("amazon", forIndexPath: indexPath) as! AmazonTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("amazon", forIndexPath: indexPath) as! AmazonTableViewCell)
|
||||||
cell.setSelected(false, animated: false)
|
cell.setSelected(false, animated: false)
|
||||||
@ -413,7 +464,7 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
case 2:
|
case "etsy":
|
||||||
let cell: EtsyTableViewCell!
|
let cell: EtsyTableViewCell!
|
||||||
|
|
||||||
cell = (self.tableView.dequeueReusableCellWithIdentifier("etsy", forIndexPath: indexPath) as! EtsyTableViewCell)
|
cell = (self.tableView.dequeueReusableCellWithIdentifier("etsy", forIndexPath: indexPath) as! EtsyTableViewCell)
|
||||||
@ -451,7 +502,7 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
default:
|
case "facebook":
|
||||||
|
|
||||||
let cell: FBTableViewCell!
|
let cell: FBTableViewCell!
|
||||||
|
|
||||||
@ -477,16 +528,9 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
//code to select network
|
//code to select network
|
||||||
self.networksDictionary["facebook"] = true
|
self.networksDictionary["facebook"] = true
|
||||||
|
|
||||||
//this is the type of code desired to access the REST management classes
|
|
||||||
/*
|
|
||||||
let tabBar = self.tabBarController
|
|
||||||
(tabBar as? HomeViewController)?.fbGraphManager.authorizeApp(self)
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
break
|
||||||
|
default:
|
||||||
break
|
break
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -682,10 +726,19 @@ extension NetworksTableViewController: UITableViewDelegate {
|
|||||||
extension NetworksTableViewController: EbayWebServiceManagerDelegate {
|
extension NetworksTableViewController: EbayWebServiceManagerDelegate {
|
||||||
|
|
||||||
func signInUser(signInString : String!) {
|
func signInUser(signInString : String!) {
|
||||||
let myWebView:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height))
|
let mywebViewController = UIViewController()
|
||||||
|
|
||||||
|
//let myWebView:UIWebView = UIWebView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.height))
|
||||||
|
let myWebView = UIWebView(frame: mywebViewController.view.bounds)
|
||||||
myWebView.delegate = self
|
myWebView.delegate = self
|
||||||
myWebView.loadRequest(NSURLRequest(URL: NSURL(string: signInString)!))
|
myWebView.loadRequest(NSURLRequest(URL: NSURL(string: signInString)!))
|
||||||
self.view.addSubview(myWebView)
|
mywebViewController.view = myWebView
|
||||||
|
|
||||||
|
let navController = UINavigationController(rootViewController: mywebViewController)
|
||||||
|
mywebViewController.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Done, target: self, action: Selector("dismiss"))
|
||||||
|
|
||||||
|
self.presentViewController(navController, animated: true, completion: nil)
|
||||||
|
//self.view.addSubview(myWebView)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -712,24 +765,15 @@ extension NetworksTableViewController: UIWebViewDelegate {
|
|||||||
NSLog("Oauth successful")
|
NSLog("Oauth successful")
|
||||||
((self.tabBarController as? HomeViewController)?.ebayGraphManager)!.fetchToken()
|
((self.tabBarController as? HomeViewController)?.ebayGraphManager)!.fetchToken()
|
||||||
}
|
}
|
||||||
|
|
||||||
/*var data : NSData? = NSData(contentsOfURL: NSURL(string: responseString as! String)!)!
|
|
||||||
if (data != nil){
|
|
||||||
let jsonObject: AnyObject?
|
|
||||||
do {
|
|
||||||
try jsonObject = NSJSONSerialization.JSONObjectWithData(data!, options: .MutableLeaves)
|
|
||||||
print(jsonObject)
|
|
||||||
|
|
||||||
}
|
|
||||||
catch {
|
|
||||||
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func dismiss() {
|
||||||
|
self.dismissViewControllerAnimated(true, completion: nil)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension NetworksTableViewController {
|
extension NetworksTableViewController {
|
||||||
@ -741,12 +785,16 @@ extension NetworksTableViewController {
|
|||||||
switch (sender.superview?.superview?.classForCoder){
|
switch (sender.superview?.superview?.classForCoder){
|
||||||
case is EbayTableViewCell.Type:
|
case is EbayTableViewCell.Type:
|
||||||
let tabBar = self.tabBarController
|
let tabBar = self.tabBarController
|
||||||
((tabBar as? HomeViewController)?.ebayGraphManager.authorizeApp())!
|
((tabBar as? HomeViewController)?.ebayGraphManager.authorizeApp({
|
||||||
dispatch_async(dispatch_get_main_queue(), {
|
something,_ -> Void in
|
||||||
sender.setTitle("Logout", forState: UIControlState.Normal)
|
// // //
|
||||||
(sender.superview?.superview as! EbayTableViewCell).settingsBtn.enabled = true
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
(sender.superview?.superview as! EbayTableViewCell).settingsBtn.hidden = false
|
sender.setTitle("Logout", forState: UIControlState.Normal)
|
||||||
})
|
(sender.superview?.superview as! EbayTableViewCell).settingsBtn.enabled = true
|
||||||
|
(sender.superview?.superview as! EbayTableViewCell).settingsBtn.hidden = false
|
||||||
|
})
|
||||||
|
}))!
|
||||||
|
|
||||||
break
|
break
|
||||||
case is AmazonTableViewCell.Type:
|
case is AmazonTableViewCell.Type:
|
||||||
break
|
break
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user