xebia-functional / scala-days-ios

Official iOS app for Scala Days
http://www.scaladays.org
25 stars 8 forks source link

New section: Notifications #74

Closed rafaparadela closed 4 years ago

rafaparadela commented 5 years ago

We need to add a new section. For a particular conference, apart from Schedule, Social, Contacts, Tickets, Sponsors, Places, Speakers and About, we want to add Notifications, where needs to show the timeline of notifications submitted to this conference.

The backend app is exposing this endpoint:

GET https://scaladays-backend.herokuapp.com/notifications?conferenceId=\<conference-Id>

and returns the list of emitted messages list this:

{
   "conferenceId":2019,
   "notifications":[
      {
         "timestamp":"2019-07-08T18:40:25.842Z",
         "title":"test2",
         "message":"test",
         "iosDelivered":true,
         "androidDelivered":true
      },
      {
         "timestamp":"2019-07-08T20:15:41.393Z",
         "title":"test",
         "message":"test",
         "iosDelivered":true,
         "androidDelivered":true
      },
      {
         "timestamp":"2019-07-09T21:56:30.485Z",
         "title":"Rafa 02",
         "message":"Text send from the UI form",
         "iosDelivered":true,
         "androidDelivered":true
      }
   ]
}

Notes: