This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Playground - noun: a place where people can play | |
import UIKit | |
class SampleCalendarEvent:NSObject{ | |
let title = "Event\(random()%10000)" | |
let day = random()%7 | |
let startHour = random()%20 | |
let durationInHours = random()%5 + 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"events": [ | |
{ | |
"title": " LA FORZA DEL DESTINO - VERDI", | |
"type": "opera", | |
"dates": ["2015-12-21", "2016-01-21"], | |
"tickets_left": 123, | |
"overview": "La forza del destino (The Power of Fate, often translated The Force of Destiny) is an Italian opera by Giuseppe Verdi. The libretto was written by Francesco Maria Piave based on a Spanish drama, Don Alvaro o la fuerza del sino (1835), by Angel de Saavedra, 3rd Duke of Rivas, with a scene adapted from Friedrich Schiller's Wallensteins Lager. It was first performed in the Bolshoi Kamenny Theatre of Saint Petersburg, Russia, on 22 November 1862. \n After some further revisions, performances in Rome in 1863 (as Don Alvaro) and Madrid (with the Duke of Rivas, the play's author, in attendance) followed shortly afterwards, and the opera subsequently travelled to New York and Vienna (1865), Buenos Aires (1866) and London (1867). Verdi made other revisions, with additions by Antonio Ghislanzoni. This version, which premiered at La Scala, |