diff --git a/swift/Sources/GildedRose/Items/AgedBrieItem.swift b/swift/Sources/GildedRose/Items/AgedBrieItem.swift new file mode 100644 index 00000000..be140852 --- /dev/null +++ b/swift/Sources/GildedRose/Items/AgedBrieItem.swift @@ -0,0 +1,19 @@ +// +// File.swift +// +// +// Created by Manali Mogre on 16/08/2020. +// + +import Foundation + +struct AgedBrieItem: CustomisedItemProtocol { + var item: Item + + public init(item: Item) { + self.item = item + } + func updateCustomItemQuality() { + + } +} diff --git a/swift/Sources/GildedRose/Items/BackstagePassesItem.swift b/swift/Sources/GildedRose/Items/BackstagePassesItem.swift new file mode 100644 index 00000000..35c2b6b3 --- /dev/null +++ b/swift/Sources/GildedRose/Items/BackstagePassesItem.swift @@ -0,0 +1,19 @@ +// +// File.swift +// +// +// Created by Manali Mogre on 16/08/2020. +// + +import Foundation + +struct BackstagePassesItem: CustomisedItemProtocol { + var item: Item + + public init(item: Item) { + self.item = item + } + func updateCustomItemQuality() { + + } +} diff --git a/swift/Sources/GildedRose/Items/CustomisedItem.swift b/swift/Sources/GildedRose/Items/CustomisedItem.swift new file mode 100644 index 00000000..2bacf60b --- /dev/null +++ b/swift/Sources/GildedRose/Items/CustomisedItem.swift @@ -0,0 +1,14 @@ +// +// File.swift +// +// +// Created by Manali Mogre on 16/08/2020. +// + +import Foundation + +protocol CustomisedItemProtocol { + func updateCustomItemQuality() +} + + diff --git a/swift/Sources/GildedRose/Items/StandardItem.swift b/swift/Sources/GildedRose/Items/StandardItem.swift new file mode 100644 index 00000000..85110f12 --- /dev/null +++ b/swift/Sources/GildedRose/Items/StandardItem.swift @@ -0,0 +1,20 @@ +// +// File.swift +// +// +// Created by Manali Mogre on 16/08/2020. +// + +import Foundation + +struct StandardItem: CustomisedItemProtocol { + + var item: Item + + public init(item: Item) { + self.item = item + } + func updateCustomItemQuality() { + + } +} diff --git a/swift/Sources/GildedRose/Items/SulfurasItem.swift b/swift/Sources/GildedRose/Items/SulfurasItem.swift new file mode 100644 index 00000000..ae2006f7 --- /dev/null +++ b/swift/Sources/GildedRose/Items/SulfurasItem.swift @@ -0,0 +1,19 @@ +// +// File.swift +// +// +// Created by Manali Mogre on 16/08/2020. +// + +import Foundation + +struct SulfurasItem: CustomisedItemProtocol { + var item: Item + + public init(item: Item) { + self.item = item + } + func updateCustomItemQuality() { + + } +}