mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 11:47:40 +00:00
Ebay Ended and Sold notifications completed. Sold, Unsold, and Selling completed
This commit is contained in:
parent
98ef13a0e6
commit
5df12695df
Binary file not shown.
@ -9,640 +9,29 @@
|
|||||||
shouldBeEnabled = "Yes"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
<<<<<<< HEAD
|
|
||||||
filePath = "Vendoo/HomeViewController.swift"
|
filePath = "Vendoo/HomeViewController.swift"
|
||||||
timestampString = "494906385.49118"
|
timestampString = "497362780.635053"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "183"
|
startingLineNumber = "232"
|
||||||
endingLineNumber = "183">
|
endingLineNumber = "232"
|
||||||
</BreakpointContent>
|
landmarkName = "listingHasEnded(_:ebayInfo:amazonInfo:etsyInfo:)"
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/CategoriesTableViewController.swift"
|
|
||||||
timestampString = "494897839.603291"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "579"
|
|
||||||
endingLineNumber = "579"
|
|
||||||
landmarkName = "navigateCategories()"
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
<BreakpointProxy
|
<BreakpointProxy
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
||||||
<BreakpointContent
|
<BreakpointContent
|
||||||
shouldBeEnabled = "No"
|
shouldBeEnabled = "Yes"
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/CategoryPopUpController.swift"
|
|
||||||
timestampString = "494896911.735111"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "41"
|
|
||||||
endingLineNumber = "41"
|
|
||||||
landmarkName = "loadCategories(_:selectedCatCompletion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494898754.02163"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "528"
|
|
||||||
endingLineNumber = "528"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494898754.02163"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "525"
|
|
||||||
endingLineNumber = "525"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494898361.943389"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "499"
|
|
||||||
endingLineNumber = "499"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494898365.099933"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "500"
|
|
||||||
endingLineNumber = "500"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/CategoryPopUpController.swift"
|
|
||||||
timestampString = "494899698.118321"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "66"
|
|
||||||
endingLineNumber = "66"
|
|
||||||
landmarkName = "loadCategories(_:selectedCatCompletion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494899878.763302"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "524"
|
|
||||||
endingLineNumber = "524"
|
|
||||||
landmarkName = "parser(_:foundCharacters:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
ignoreCount = "0"
|
||||||
continueAfterRunningActions = "No"
|
continueAfterRunningActions = "No"
|
||||||
filePath = "Vendoo/HomeViewController.swift"
|
filePath = "Vendoo/HomeViewController.swift"
|
||||||
timestampString = "494902152.530491"
|
timestampString = "497362780.635053"
|
||||||
startingColumnNumber = "9223372036854775807"
|
startingColumnNumber = "9223372036854775807"
|
||||||
endingColumnNumber = "9223372036854775807"
|
endingColumnNumber = "9223372036854775807"
|
||||||
startingLineNumber = "87"
|
startingLineNumber = "238"
|
||||||
endingLineNumber = "87"
|
endingLineNumber = "238"
|
||||||
landmarkName = "viewDidLoad()"
|
landmarkName = "listingHasEnded(_:ebayInfo:amazonInfo:etsyInfo:)"
|
||||||
landmarkType = "5">
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.HomeViewController.(viewDidLoad () -> ()).(closure #1).(closure #1).(closure #1).(closure #1).(closure #1).(closure #2)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/HomeViewController.swift"
|
|
||||||
timestampString = "494916337.033228"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "87"
|
|
||||||
endingLineNumber = "87"
|
|
||||||
offsetFromSymbolStart = "507">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.HomeViewController.(viewDidLoad () -> ()).(closure #1).(closure #1).(closure #1).(closure #1).(closure #1).(closure #2)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/HomeViewController.swift"
|
|
||||||
timestampString = "494916337.033348"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "87"
|
|
||||||
endingLineNumber = "87"
|
|
||||||
offsetFromSymbolStart = "7119">
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/HomeViewController.swift"
|
|
||||||
timestampString = "494916335.990713"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "59"
|
|
||||||
endingLineNumber = "59"
|
|
||||||
landmarkName = "viewDidLoad()"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ItemTableViewController.swift"
|
|
||||||
timestampString = "494936802.535184"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "107"
|
|
||||||
endingLineNumber = "107"
|
|
||||||
landmarkName = "prepareForSegue(_:sender:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494935556.474664"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "167"
|
|
||||||
endingLineNumber = "167"
|
|
||||||
landmarkName = "prepareForSegue(_:sender:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494937129.002183"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "51"
|
|
||||||
endingLineNumber = "51"
|
|
||||||
landmarkName = "ListingPreviewViewController"
|
|
||||||
landmarkType = "3">
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(itemViewState in _9E3F545BDB11C848D37363B41A098E64).getter : Swift.String"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.517292"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "51"
|
|
||||||
endingLineNumber = "51"
|
|
||||||
offsetFromSymbolStart = "53">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(itemViewState in _9E3F545BDB11C848D37363B41A098E64).setter : Swift.String"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.517403"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "51"
|
|
||||||
endingLineNumber = "51"
|
|
||||||
offsetFromSymbolStart = "95">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.init (coder : __ObjC.NSCoder) -> Swift.Optional<Vendoo.ListingPreviewViewController>"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.517583"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "51"
|
|
||||||
endingLineNumber = "51"
|
|
||||||
offsetFromSymbolStart = "1553">
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494938310.11197"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "314"
|
|
||||||
endingLineNumber = "314"
|
|
||||||
landmarkName = "listItem(_:imageUrls:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494938315.252535"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "315"
|
|
||||||
endingLineNumber = "315"
|
|
||||||
landmarkName = "listItem(_:imageUrls:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494938497.537478"
|
|
||||||
=======
|
|
||||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
|
||||||
timestampString = "496411234.903757"
|
|
||||||
>>>>>>> Rapid-Dev-Branch
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "865"
|
|
||||||
endingLineNumber = "865"
|
|
||||||
landmarkName = "toggleNetworkSelection(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
|
||||||
timestampString = "496411248.199957"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "864"
|
|
||||||
endingLineNumber = "864"
|
|
||||||
landmarkName = "toggleNetworkSelection(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
|
||||||
timestampString = "496412537.639036"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "867"
|
|
||||||
endingLineNumber = "867"
|
|
||||||
landmarkName = "toggleNetworkSelection(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/NetworksTableViewController.swift"
|
|
||||||
timestampString = "496412911.680164"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "879"
|
|
||||||
endingLineNumber = "879"
|
|
||||||
landmarkName = "toggleNetworkSelection(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597298.054868"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "36"
|
|
||||||
endingLineNumber = "36"
|
|
||||||
landmarkName = "viewDidLoad()"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597377.488932"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "70"
|
|
||||||
endingLineNumber = "70"
|
|
||||||
landmarkName = "signInUser(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597380.466944"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "71"
|
|
||||||
endingLineNumber = "71"
|
|
||||||
landmarkName = "signInUser(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
<<<<<<< HEAD
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #2)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.521049"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "402"
|
|
||||||
endingLineNumber = "402"
|
|
||||||
offsetFromSymbolStart = "4015">
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.ListingPreviewViewController.(publishItem (Swift.AnyObject) -> ()).(closure #2).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.521188"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "405"
|
|
||||||
endingLineNumber = "405"
|
|
||||||
offsetFromSymbolStart = "20">
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
=======
|
|
||||||
>>>>>>> Rapid-Dev-Branch
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597417.616973"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "57"
|
|
||||||
endingLineNumber = "57"
|
|
||||||
landmarkName = "signInUser(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494942034.726609"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "407"
|
|
||||||
endingLineNumber = "407"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
<Locations>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.SignInViewController.signInUser (Swift.AnyObject) -> ()"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
<<<<<<< HEAD
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.522437"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "409"
|
|
||||||
endingLineNumber = "409"
|
|
||||||
offsetFromSymbolStart = "61703">
|
|
||||||
=======
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597493.364189"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "57"
|
|
||||||
endingLineNumber = "57"
|
|
||||||
offsetFromSymbolStart = "19">
|
|
||||||
>>>>>>> Rapid-Dev-Branch
|
|
||||||
</Location>
|
|
||||||
<Location
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
symbolName = "Vendoo.SignInViewController.(signInUser (Swift.AnyObject) -> ()).(closure #1)"
|
|
||||||
moduleName = "Vendoo"
|
|
||||||
usesParentBreakpointCondition = "Yes"
|
|
||||||
<<<<<<< HEAD
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494948750.522547"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "409"
|
|
||||||
endingLineNumber = "409"
|
|
||||||
offsetFromSymbolStart = "5522">
|
|
||||||
=======
|
|
||||||
urlString = "file:///Users/okechi/Documents/iOs%20Practice/Vendoo/Vendoo_bb/Vendoo/Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597493.364295"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "58"
|
|
||||||
endingLineNumber = "58"
|
|
||||||
offsetFromSymbolStart = "37">
|
|
||||||
>>>>>>> Rapid-Dev-Branch
|
|
||||||
</Location>
|
|
||||||
</Locations>
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
<<<<<<< HEAD
|
|
||||||
filePath = "Vendoo/ListingPreviewViewController.swift"
|
|
||||||
timestampString = "494942036.742589"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "412"
|
|
||||||
endingLineNumber = "412"
|
|
||||||
landmarkName = "publishItem(_:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "No"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494944875.724562"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "246"
|
|
||||||
endingLineNumber = "246"
|
|
||||||
landmarkName = "listItem(_:imageUrls:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494944938.299032"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "254"
|
|
||||||
endingLineNumber = "254"
|
|
||||||
landmarkName = "listItem(_:imageUrls:completion:)"
|
|
||||||
landmarkType = "5">
|
|
||||||
</BreakpointContent>
|
|
||||||
</BreakpointProxy>
|
|
||||||
<BreakpointProxy
|
|
||||||
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
|
|
||||||
<BreakpointContent
|
|
||||||
shouldBeEnabled = "Yes"
|
|
||||||
ignoreCount = "0"
|
|
||||||
continueAfterRunningActions = "No"
|
|
||||||
filePath = "Vendoo/EbayWebServiceManager.swift"
|
|
||||||
timestampString = "494945222.220989"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "284"
|
|
||||||
endingLineNumber = "284"
|
|
||||||
landmarkName = "listItem(_:imageUrls:completion:)"
|
|
||||||
=======
|
|
||||||
filePath = "Vendoo/SignInViewController.swift"
|
|
||||||
timestampString = "496597422.377232"
|
|
||||||
startingColumnNumber = "9223372036854775807"
|
|
||||||
endingColumnNumber = "9223372036854775807"
|
|
||||||
startingLineNumber = "40"
|
|
||||||
endingLineNumber = "40"
|
|
||||||
landmarkName = "viewDidLoad()"
|
|
||||||
>>>>>>> Rapid-Dev-Branch
|
|
||||||
landmarkType = "5">
|
landmarkType = "5">
|
||||||
</BreakpointContent>
|
</BreakpointContent>
|
||||||
</BreakpointProxy>
|
</BreakpointProxy>
|
||||||
|
|||||||
@ -542,14 +542,14 @@ extension EbayWebServiceManager: NSXMLParserDelegate {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if "\(self.catDetailLevel)" == self.catLevel {
|
/*if "\(self.catDetailLevel)" == self.catLevel {
|
||||||
if((self.subCategories[string] == nil )){
|
if((self.subCategories[string] == nil )){
|
||||||
self.subCategories[string] = ["cat_id": self.catID, "isLeaf": false, "level": self.catLevel]
|
self.subCategories[string] = ["cat_id": self.catID, "isLeaf": false, "level": self.catLevel]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
self.currentCategory = string
|
self.currentCategory = string*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,8 @@ class HomeViewController: UITabBarController {
|
|||||||
let firebaseManager = FirebaseManager()
|
let firebaseManager = FirebaseManager()
|
||||||
let ebayGraphManager = EbayWebServiceManager()
|
let ebayGraphManager = EbayWebServiceManager()
|
||||||
var userListings: [Listing] = []
|
var userListings: [Listing] = []
|
||||||
|
var endedListings: [Listing] = []
|
||||||
|
var soldListings: [Listing] = []
|
||||||
var notificationsManager = ServiceNotificationManager()
|
var notificationsManager = ServiceNotificationManager()
|
||||||
var notifications: [Dictionary<String, String>] = (NSUserDefaults.standardUserDefaults().objectForKey("notifications") == nil ? [] : (NSUserDefaults.standardUserDefaults().objectForKey("notifications") as! [Dictionary<String, String>]))
|
var notifications: [Dictionary<String, String>] = (NSUserDefaults.standardUserDefaults().objectForKey("notifications") == nil ? [] : (NSUserDefaults.standardUserDefaults().objectForKey("notifications") as! [Dictionary<String, String>]))
|
||||||
|
|
||||||
@ -91,6 +93,8 @@ class HomeViewController: UITabBarController {
|
|||||||
dispatch_group_notify(serviceGroup, dispatch_get_main_queue(), {
|
dispatch_group_notify(serviceGroup, dispatch_get_main_queue(), {
|
||||||
print(listingImages.count)
|
print(listingImages.count)
|
||||||
let listingInfo = values as? [String : AnyObject]
|
let listingInfo = values as? [String : AnyObject]
|
||||||
|
|
||||||
|
if listingInfo!["listingStatus"] == nil {
|
||||||
self.userListings.append(
|
self.userListings.append(
|
||||||
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||||
itemCategory: listingInfo!["listingCategory"] as? String,
|
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||||
@ -102,6 +106,34 @@ class HomeViewController: UITabBarController {
|
|||||||
itemKey: key,
|
itemKey: key,
|
||||||
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
||||||
))
|
))
|
||||||
|
}
|
||||||
|
else if listingInfo!["listingStatus"] as? String == "Ended" {
|
||||||
|
self.endedListings.append(
|
||||||
|
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||||
|
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||||
|
itemQuantity: (listingInfo!["listingQuantity"] as? String)!,
|
||||||
|
itemPrice: listingInfo!["listingPrice"] as? String,
|
||||||
|
itemDescription: listingInfo!["listingDescription"] as? String,
|
||||||
|
itemImages: listingImages,
|
||||||
|
isDraftListing: (listingInfo!["isListingDraft"] as? Bool)!,
|
||||||
|
itemKey: key,
|
||||||
|
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
||||||
|
))
|
||||||
|
}
|
||||||
|
else if listingInfo!["listingStatus"] as? String == "Sold" {
|
||||||
|
self.soldListings.append(
|
||||||
|
Listing(itemTitle: (listingInfo!["listingTitle"] as? String)!,
|
||||||
|
itemCategory: listingInfo!["listingCategory"] as? String,
|
||||||
|
itemQuantity: (listingInfo!["listingQuantity"] as? String)!,
|
||||||
|
itemPrice: listingInfo!["listingPrice"] as? String,
|
||||||
|
itemDescription: listingInfo!["listingDescription"] as? String,
|
||||||
|
itemImages: listingImages,
|
||||||
|
isDraftListing: (listingInfo!["isListingDraft"] as? Bool)!,
|
||||||
|
itemKey: key,
|
||||||
|
networksSellingOn: (listingInfo!["networks"] as? Dictionary<String, Bool>)!
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
print(notificationStartTracker)
|
print(notificationStartTracker)
|
||||||
if(notificationStartTracker == listingDict?.count){
|
if(notificationStartTracker == listingDict?.count){
|
||||||
NSNotificationCenter.defaultCenter().postNotificationName("finished_fetching_listings", object: nil)
|
NSNotificationCenter.defaultCenter().postNotificationName("finished_fetching_listings", object: nil)
|
||||||
@ -189,11 +221,24 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "ebay",
|
"network": "ebay",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": (ebayInfo as! [String : AnyObject])["type"] as! String,
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
self.endedListings.appendContentsOf( self.userListings.filter({$0.key == ((ebayInfo as! [String : AnyObject])["listingKey"] as! String)}))
|
||||||
|
self.userListings = self.userListings.filter({$0.key != ((ebayInfo as! [String : AnyObject])["listingKey"] as! String)})
|
||||||
|
let itemsView = self.viewControllers![0] as! ItemTableViewController
|
||||||
|
|
||||||
|
self.firebaseManager.ref.child("Users/\(self.firebaseManager.user_email)/user_Listings/\(((ebayInfo as! [String : AnyObject])["listingKey"] as! String))").observeSingleEventOfType( .Value, withBlock: {
|
||||||
|
(snapshot) -> Void in
|
||||||
|
|
||||||
|
var listingDict = snapshot.value as? [String : AnyObject]
|
||||||
|
listingDict!["listingStatus"] = "Ended"
|
||||||
|
self.firebaseManager.ref.child("Users/\(self.firebaseManager.user_email)/user_Listings/\(((ebayInfo as! [String : AnyObject])["listingKey"] as! String))").setValue(listingDict)
|
||||||
|
|
||||||
|
itemsView.itemTable.reloadData()
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
if (amazonInfo != nil) {
|
if (amazonInfo != nil) {
|
||||||
@ -201,7 +246,7 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "amazon",
|
"network": "amazon",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": (ebayInfo as! [String : AnyObject])["type"] as! String,
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
@ -230,7 +275,7 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "facebook",
|
"network": "facebook",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": (ebayInfo as! [String : AnyObject])["type"] as! String,
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
@ -242,7 +287,7 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "ebay",
|
"network": "ebay",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": (ebayInfo as! [String : AnyObject])["type"] as! String,
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
@ -254,7 +299,7 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "amazon",
|
"network": "amazon",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": "",
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
@ -266,7 +311,7 @@ extension HomeViewController: ServiceNotificationManagerDelegate {
|
|||||||
[
|
[
|
||||||
"network": "etsy",
|
"network": "etsy",
|
||||||
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
"message": (ebayInfo as! [String : AnyObject])["notification"] as! String,
|
||||||
"type": "ended",
|
"type": "",
|
||||||
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
"key": (ebayInfo as! [String : AnyObject])["listingKey"] as! String,
|
||||||
"UUID": NSUUID().UUIDString
|
"UUID": NSUUID().UUIDString
|
||||||
]
|
]
|
||||||
|
|||||||
@ -80,6 +80,12 @@ class ItemTableViewController: UIViewController {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MARK: - IBAction
|
||||||
|
extension ItemTableViewController {
|
||||||
|
@IBAction func segSwitch(sender: UISegmentedControl) {
|
||||||
|
self.itemTable.reloadData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - Navigation
|
// MARK: - Navigation
|
||||||
extension ItemTableViewController {
|
extension ItemTableViewController {
|
||||||
@ -129,19 +135,28 @@ extension ItemTableViewController: 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
|
// #warning Incomplete implementation, return the number of rows
|
||||||
|
if self.tableSegmentController.selectedSegmentIndex == 0 {
|
||||||
return ((self.tabBarController as? HomeViewController)?.userListings.count)!
|
return ((self.tabBarController as? HomeViewController)?.userListings.count)!
|
||||||
}
|
}
|
||||||
|
else if tableSegmentController.selectedSegmentIndex == 1 {
|
||||||
|
return ((self.tabBarController as? HomeViewController)?.endedListings.count)!
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
return ((self.tabBarController as? HomeViewController)?.soldListings.count)!
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
|
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
|
||||||
let cell: ItemCell! = (tableView.dequeueReusableCellWithIdentifier("Item Cell", forIndexPath: indexPath) as! ItemCell)
|
let cell: ItemCell! = (tableView.dequeueReusableCellWithIdentifier("Item Cell", forIndexPath: indexPath) as! ItemCell)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Configure the cell...
|
// Configure the cell...
|
||||||
//for each listing cell generated need to find the marketplaces it belongs to, the listing price, the name of the item, the status of the item, and the item image.
|
//for each listing cell generated need to find the marketplaces it belongs to, the listing price, the name of the item, the status of the item, and the item image.
|
||||||
//Once these objects are retrieved, access the ItemCell properties and manipulate as needed
|
//Once these objects are retrieved, access the ItemCell properties and manipulate as needed
|
||||||
|
|
||||||
|
if self.tableSegmentController.selectedSegmentIndex == 0 {
|
||||||
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row].images[0] //come back
|
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row].images[0] //come back
|
||||||
cell.itemName.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].title
|
cell.itemName.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].title
|
||||||
cell.itemPrice.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].price
|
cell.itemPrice.text = (self.tabBarController as? HomeViewController)!.userListings[indexPath.row].price
|
||||||
@ -181,11 +196,82 @@ extension ItemTableViewController: UITableViewDataSource{
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else if tableSegmentController.selectedSegmentIndex == 1 {
|
||||||
|
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.endedListings[indexPath.row].images[0] //come back
|
||||||
|
cell.itemName.text = (self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].title
|
||||||
|
cell.itemPrice.text = (self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].price
|
||||||
|
|
||||||
|
cell.itemStatus.text = "Status: Unsold"
|
||||||
|
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].networks["areNetworksChosen"])!){
|
||||||
|
cell.networks.hidden = true
|
||||||
|
}else{
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].networks["ebay"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 0, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].networks["amazon"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 1, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].networks["etsy"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 2, inSection: 0))?.hidden = true
|
||||||
|
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.endedListings[indexPath.row].networks["facebook"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
cell.itemImage.image = (self.tabBarController as? HomeViewController)?.soldListings[indexPath.row].images[0] //come back
|
||||||
|
cell.itemName.text = (self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].title
|
||||||
|
cell.itemPrice.text = (self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].price
|
||||||
|
|
||||||
|
cell.itemStatus.text = "Status: Sold"
|
||||||
|
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].networks["areNetworksChosen"])!){
|
||||||
|
cell.networks.hidden = true
|
||||||
|
}else{
|
||||||
|
dispatch_async(dispatch_get_main_queue(), {
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].networks["ebay"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 0, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].networks["amazon"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 1, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].networks["etsy"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 2, inSection: 0))?.hidden = true
|
||||||
|
|
||||||
|
}
|
||||||
|
if(!((self.tabBarController as? HomeViewController)!.soldListings[indexPath.row].networks["facebook"])!){
|
||||||
|
cell.networks.cellForItemAtIndexPath(NSIndexPath(forRow: 3, inSection: 0))?.hidden = true
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
|
|
||||||
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
|
||||||
|
if self.tableSegmentController.selectedSegmentIndex == 0 {
|
||||||
self.selectedListing = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row]
|
self.selectedListing = (self.tabBarController as? HomeViewController)?.userListings[indexPath.row]
|
||||||
|
}
|
||||||
|
else if tableSegmentController.selectedSegmentIndex == 1 {
|
||||||
|
self.selectedListing = (self.tabBarController as? HomeViewController)?.endedListings[indexPath.row]
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
self.selectedListing = (self.tabBarController as? HomeViewController)?.soldListings[indexPath.row]
|
||||||
|
}
|
||||||
self.performSegueWithIdentifier("ItemDetailSegue", sender: self)
|
self.performSegueWithIdentifier("ItemDetailSegue", sender: self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1242,14 +1242,18 @@
|
|||||||
</navigationItem>
|
</navigationItem>
|
||||||
</items>
|
</items>
|
||||||
</navigationBar>
|
</navigationBar>
|
||||||
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" id="X2D-np-ma4">
|
<segmentedControl opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" id="X2D-np-ma4">
|
||||||
<rect key="frame" x="0.0" y="44" width="375" height="29"/>
|
<rect key="frame" x="0.0" y="44" width="375" height="29"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||||
<segments>
|
<segments>
|
||||||
<segment title="Selling"/>
|
<segment title="Selling"/>
|
||||||
|
<segment title="Unsold"/>
|
||||||
<segment title="Sold"/>
|
<segment title="Sold"/>
|
||||||
</segments>
|
</segments>
|
||||||
<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"/>
|
||||||
|
<connections>
|
||||||
|
<action selector="segSwitch:" destination="Iwh-sn-a0Q" eventType="valueChanged" id="YfI-EH-qgs"/>
|
||||||
|
</connections>
|
||||||
</segmentedControl>
|
</segmentedControl>
|
||||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="123" sectionHeaderHeight="1" sectionFooterHeight="28" id="Thg-pb-lhN">
|
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="123" sectionHeaderHeight="1" sectionFooterHeight="28" id="Thg-pb-lhN">
|
||||||
<rect key="frame" x="0.0" y="72" width="375" height="543"/>
|
<rect key="frame" x="0.0" y="72" width="375" height="543"/>
|
||||||
@ -2501,11 +2505,11 @@
|
|||||||
<image name="start" width="50" height="50"/>
|
<image name="start" width="50" height="50"/>
|
||||||
</resources>
|
</resources>
|
||||||
<inferredMetricsTieBreakers>
|
<inferredMetricsTieBreakers>
|
||||||
|
<segue reference="rkZ-c8-XJc"/>
|
||||||
|
<segue reference="nUj-1v-ftF"/>
|
||||||
<segue reference="syc-IR-LNQ"/>
|
<segue reference="syc-IR-LNQ"/>
|
||||||
<segue reference="nWA-7e-2Ec"/>
|
<segue reference="nWA-7e-2Ec"/>
|
||||||
<segue reference="vCG-jU-HYF"/>
|
<segue reference="NOz-ya-avj"/>
|
||||||
<segue reference="rkZ-c8-XJc"/>
|
|
||||||
<segue reference="Ogu-p5-UtK"/>
|
|
||||||
<segue reference="KKl-Gj-ZVc"/>
|
<segue reference="KKl-Gj-ZVc"/>
|
||||||
</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"/>
|
||||||
|
|||||||
@ -33,7 +33,8 @@ class ServiceNotificationManager: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func startServicePolling() {
|
func startServicePolling() {
|
||||||
timer = NSTimer.scheduledTimerWithTimeInterval(10.0, target: self, selector: #selector(ServiceNotificationManager.pollServices), userInfo: nil, repeats: true)
|
//timer = NSTimer.scheduledTimerWithTimeInterval(60.0, target: self, selector: #selector(ServiceNotificationManager.pollServices), userInfo: nil, repeats: true)
|
||||||
|
pollServices()
|
||||||
}
|
}
|
||||||
|
|
||||||
func stopServicePolling() {
|
func stopServicePolling() {
|
||||||
@ -76,18 +77,33 @@ class ServiceNotificationManager: NSObject {
|
|||||||
(listingNotificationInfo, error) -> Void in
|
(listingNotificationInfo, error) -> Void in
|
||||||
//dispatch_group_leave(notificationGroup)
|
//dispatch_group_leave(notificationGroup)
|
||||||
let info = (listingNotificationInfo as! [String : AnyObject])
|
let info = (listingNotificationInfo as! [String : AnyObject])
|
||||||
|
if(info["status"] as! String == "Ended") {
|
||||||
if((info["quantitySold"] as! Int) > 0) {
|
if((info["quantitySold"] as! Int) > 0) {
|
||||||
//@TODO: Add both firbase logic and code logic to do notifications for sold listings
|
//@TODO: Add both firbase logic and code logic to do notifications for sold listings
|
||||||
|
if (((info["itemQuantity"] as! Int) - (info["quantitySold"] as! Int)) == 0) {
|
||||||
|
|
||||||
|
ServiceNotificationManager.delegate?.listingHasNewNotifications(
|
||||||
|
nil,
|
||||||
|
ebayInfo: [
|
||||||
|
"type": "Sold",
|
||||||
|
"notification": "Your listing \"\(listingDict!["listingTitle"] as! String)\" has sold out on ebay.",
|
||||||
|
"listingKey": listing.key],
|
||||||
|
amazonInfo: nil,
|
||||||
|
etsyInfo: nil
|
||||||
|
)
|
||||||
}
|
}
|
||||||
if(info["status"] as! String == "Ended") {
|
}else{
|
||||||
ServiceNotificationManager.delegate?.listingHasEnded(
|
ServiceNotificationManager.delegate?.listingHasEnded(
|
||||||
nil,
|
nil,
|
||||||
ebayInfo: [
|
ebayInfo: [
|
||||||
|
"type": "Ended",
|
||||||
"notification": "Your listing \"\(listingDict!["listingTitle"] as! String)\" has ended on ebay.",
|
"notification": "Your listing \"\(listingDict!["listingTitle"] as! String)\" has ended on ebay.",
|
||||||
"listingKey": listing.key],
|
"listingKey": listing.key],
|
||||||
amazonInfo: nil,
|
amazonInfo: nil,
|
||||||
etsyInfo: nil
|
etsyInfo: nil
|
||||||
)
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user