mirror of
https://bitbucket.org/vendoo/vendoo_v1.0.git
synced 2025-12-25 11:47:40 +00:00
32 lines
678 B
Swift
32 lines
678 B
Swift
//
|
|
// AmazonListing.swift
|
|
// Vendoo
|
|
//
|
|
// Created by cole alban on 8/29/16.
|
|
// Copyright © 2016 Okechi Onyeje. All rights reserved.
|
|
//
|
|
|
|
/*
|
|
This class will represent a single listing being posted to Amazon
|
|
*/
|
|
import Foundation
|
|
|
|
|
|
class AmazonListing{
|
|
|
|
private var price: Int
|
|
private var title: String
|
|
private var quantity: Int
|
|
private var description: String
|
|
|
|
|
|
//Initalizer, require a price, title, quantity, and description
|
|
init(price: Int, title: String, quantity: Int, description: String){
|
|
self.price = price
|
|
self.title = title
|
|
self.quantity = quantity
|
|
self.description = description
|
|
}
|
|
|
|
|
|
} |