mikemimik / flutter-calendar

A Calendar Widget for flutter
Other
41 stars 12 forks source link

Need to settle on payload structure #22

Open mikemimik opened 7 years ago

mikemimik commented 7 years ago

Need to decide what the structure of the payload for the widget should look like.

Proposed:

{
    "id": int,
    "title": String,
    "url": String,
    "date_start": DateTime,
    "date_end": DateTime,
    "details": Object
}

Rational:

The title, date_start, and date_end are the bare minimum for the widget to be useful. The url gives the widget a location to get details about this particular event, could be used for future plans. The details property is by far the most useful. Since it's an object, it gives the user the ability to bury whatever data they want into each event. They could then extend the widget to utilizes these things.