# Code by christopherbeagles@gmail.com
# Released under the MIT License on the 12/08/15

"""Module that stores our Orchestral data!"""

from google.appengine.ext import ndb

class Orchestra(ndb.Model):
    """Class containg our useful orchestral data"""
    orchs = {
      "LSO": {
          "home":ndb.GeoPt(51.5204540, -0.0937140),
          "name":"LSO",
          "baseUrl":"lso.co.uk/",
          "eventUrl":"index.php/whats-on/range.listevents/-"},
      "Halle": {
          "home":ndb.GeoPt(53.4753330, -2.2460530),
          "name":"Halle",
          "baseUrl":"www.halle.co.uk/",
          "eventUrl":"concerts-tickets.aspx"},
      "RPO": {
          "home":ndb.GeoPt(51.4936620, -0.1575740),
          "name":"RPO",
          "baseUrl":"www.rpo.co.uk/",
          "eventUrl":"whats-on"},
      "BBCNOW": {
          "home":ndb.GeoPt(51.4648400, -3.1632440),
          "name":"BBCNOW",
          "baseUrl":"www.bbc.co.uk/bbcnow/",
          "eventUrl":"events/by/date/"},
      "BBCSO": {
          "home":ndb.GeoPt(51.5259620, -0.1901810),
          "name":"BBCSO",
          "baseUrl":"www.bbc.co.uk/symphonyorchestra/",
          "eventUrl":"events/by/date/"},
      "BBCSSO": {
          "home":ndb.GeoPt(55.858985, -4.245166),
          "name":"BBCSSO",
          "baseUrl":"www.bbc.co.uk/bbcsso/",
          "eventUrl":"events/by/date/"},
      "BBCConcert": {
          "home":ndb.GeoPt(51.506657, -0.115113),
          "name":"BBC Concert",
          "baseUrl":"www.bbc.co.uk/concertorchestra/",
          "eventUrl":"events/by/date/"},
      "BBCPhil": {
          "home":ndb.GeoPt(53.474690, -2.294660),
          "name":"BBC Philharmonic",
          "baseUrl":"www.bbc.co.uk/philharmonic/",
          "eventUrl":"events/by/date/"},
      "BerlinPhil": {
          "home":ndb.GeoPt(52.509652, 13.369482),
          "name":"Berlin Philharmoniker",
          "baseUrl":"www.berliner-philharmoniker.de/en/",
          "eventUrl":"concerts/calendar/"},
      "LPO": {
          "home":ndb.GeoPt(51.505836, -0.116789),
          "name":"LPO",
          "baseUrl":"www.lpo.org.uk/",
          "eventUrl":"search-events.html?task=calendar&format=raw"},
      "Phil": {
          "home":ndb.GeoPt(51.505836, -0.116789),
          "name":"Philharmonia",
          "baseUrl":"www.philharmonia.co.uk/",
          "eventUrl":"concerts"}
    }

    location = ndb.GeoPtProperty('l', required=True)
    time = ndb.DateTimeProperty('t')
    detail = ndb.StringProperty('d')

