import Foundation

extension Topic {
    init(id: Int, name: String, color: String) {
        self.id = id
        self.name = name
        self.colour = color
        self.link = nil
        self.slug = name.alphanumeric
        self.textColour = "#ffffff"
        self.children = []
        self.featurePosts = []
    }
    
    static var previewContent: [Topic] = {
        [
            Topic(id: 1, name: "Breaking", color: "#00aeef"),
            Topic(id: 2, name: "News", color: "#00aeef"),
            Topic(id: 3, name: "Public Sector", color: "#00aeef"),
            Topic(id: 4, name: "Opinion", color: "#00aeef"),
            Topic(id: 5, name: "Business", color: "#00aeef"),
            Topic(id: 6, name: "Property", color: "#00aeef"),
            Topic(id: 7, name: "Sport", color: "#00aeef"),
            Topic(id: 8, name: "Lifestyle", color: "#00aeef"),
            Topic(id: 9, name: "Food &amp; Wine", color: "#a72c42"),
            Topic(id: 10, name: "Community", color: "#00aeef"),
            Topic(id: 11, name: "What's On", color: "#00aeef"),
        ]
    }()
}

extension Post {
    static var previewContent: [Post] = {
        return [
            Post(id: 537380,
                    date: Date(),
                    dateGMT: nil,
                    modified: Date(),
                    modifiedGMT: nil,
                    slug: "stallholders-thrilled-by-the-announced-return-of-kingstons-old-bus-depot-markets",
                    type: "post",
                 link: URL(string: "https://the-riotact.com/stallholders-thrilled-by-the-announced-return-of-kingstons-old-bus-depot-markets/537380"),
                    title: Rendered(rendered: "Stallholders thrilled by the announced return of Kingston’s Old Bus Depot Markets", protected: false),
                    content: Rendered(rendered: """
<div class="entry-content article-content" itemprop="articleBody">
                                      <meta itemprop="image" content="https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1-690x384.jpg">

                                      <div id="attachment_537499" style="width: 820px" class="wp-caption alignnone"><img class="wp-image-537499 size-large" src="https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1-810x679.jpg" alt="Old Bus Depot Markets" width="810" height="679" srcset="https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1-810x679.jpg 810w, https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1-300x251.jpg 300w, https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1-768x644.jpg 768w, https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1.jpg 940w" sizes="(max-width: 810px) 100vw, 810px"><p class="wp-caption-text">Old Bus Depot Markets are returning for the first time in over two years. Photo: Facebook.</p></div>
                  <p>After being closed for two years due to the pandemic, a period in which <a href="https://the-riotact.com/kingston-old-bus-depot-markets-opening-on-hold-following-lead-dust-discovery/439318" target="_blank" rel="noopener">lead dust was discovered at their Kingston site</a>, the much-loved Old Bus Depot Markets are finally making their return.</p>
                  <p>Organisers announced that the markets would return Sunday, 20 March.</p>
                  <p>“After a challenging two years, we are so excited to be reopening our new and improved space. With some familiar faces returning, we will also have some exciting new faces to welcome. Look forward to sharing this with you all soon,” the post said.</p>
                  <p>The first Old Bus Depot Markets were held in 1994 in the Old Bus Depot Building. Founders Diane Hinds and Morna Whiting were forced to find a new home for the markets and move to the nearby Former Transport Depot Building due to the required demolition of their original building for the redevelopment of the Kingston Foreshore.</p>
                  <hr>
                  <p><strong>READ ALSO: <a href="https://the-riotact.com/royal-canberra-show-2022-best-show-in-years-despite-protesters-staffing-issues-and-a-lot-of-mud/537344" target="_blank" rel="noopener">Royal Canberra Show 2022′ best show’ in years despite protesters, staffing issues and a lot of mud</a></strong></p>
                  <hr>
                  <p>In May 2016, Ms Hinds and Ms Whiting passed on the markets to current owner Anthony Niravong, who has served as managing director ever since.</p>
                  <p>The markets were closed in March 2020 due to the pandemic. In February 2021, during renovation works, lead dust was discovered in the building, causing the reopening of the markets to be further delayed.</p>
                  <p>For stallholders, what was supposed to be a brief break for COVID became a two-year hiatus.</p>
                  <p>Dianne Taylor from Cushions by Di can’t wait to return to her stall.</p>
                  <p>“I walked out of there thinking that we’d go back after a couple of weeks of COVID. It wasn’t good for me,” she said.</p>
                  <p>Dianne says that the markets are “good for Canberra” and that she’s excited to return to selling her ugg boots and cushions to her customers. She hopes to see the “great comradery” and “beautiful stalls” make a return.</p>
                  <p>She senses that stallholders might have a “new lease on life” after their break.</p>
                  <hr>
                  <p><strong>READ ALSO: <a href="https://the-riotact.com/clean-up-australia-volunteers-set-to-unmask-pandemic-level-of-litter/535506" target="_blank" rel="noopener">Clean Up Australia volunteers set to unmask pandemic level of litter</a></strong></p>
                  <hr>
                  <p>The Australian Honey Cellars stall is owned by Harden-Murrumbarrah’s Kris and Lachlan Jarrad. They’ve been attending the markets for more than 11 years and are “really looking forward” to their return after a tough couple of years. The pandemic also cost them another regular market in North Sydney.</p>
                  <p>“There is a community there and I’ve missed a lot of my fellow stallholders,” Kris said.</p>
                  <p>“I love the buzz of the markets on a Sunday and love getting the chance to meet so many different people. You get people from all over Australia and all over the world, and I think that’s what makes it so special,” she said.</p>
                  <p>For more updates on the reopening of the Old Bus Depot Markets and future events, follow their <a href="https://www.facebook.com/oldbusdepotmarkets" target="_blank" rel="noopener">Facebook page</a>.</p>
                                  </div>
""", protected: false),
                 excerpt: Rendered(rendered: "", protected: false),
                 author: [Author(id: 1, name: "Max O'Driscoll", avatar: URL(string: "https://the-riotact.com/wp-content/uploads/avatars/87e4e4ce323ab915c35a27672fd67a3b_4407863e0279d0d7c58c7641d323bdc8.jpg"), link: URL(string: "https://the-riotact.com/author/max_odriscoll"), bio: nil)],
                 commentStatus: .open,
                 topics: Topic.previewContent.compactMap({ $0.topicRef}),
                 tags: [Tag(id: 1, name: "anthony niravong"),
                        Tag(id: 2, name: "dianne taylor"),
                        Tag(id: 3, name: "old bus depot markets")
                       ],
                 primaryTopic: Topic.previewContent[7],
                 commentCount: 12,
                 thumbnail: Thumbnail(square: URL(string: "https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1.jpg"),
                                      banner: URL(string: "https://the-riotact.com/wp-content/uploads/2022/02/274559328_10159179000783241_2529067886944745413_n-1.jpg")),
                 events: [],
                 latestComments: [],
                 allComments: [],
                 banners: [])
        ]
    }()
}
