DroidKaigi / conference-app-2024

The Official Conference App for DroidKaigi 2024
Apache License 2.0
440 stars 201 forks source link

Adjust event map models and response classes for API #258

Closed takahirom closed 2 months ago

takahirom commented 2 months ago

We don't have the API right now, but we have fake JSON. Could we adjust our model entities and response classes for the event map?

{
  "status": "OK",
  "events": [
    {
      "id": "1",
      "title": {
        "ja": "[Sample] Meetup (ランチタイム)",
        "en": "[Sample] Meetup (Lunch Time)"
      },
      "i18nDesc": {
        "ja": "[通常イベント] 様々なテーマごとに集まって、一緒にランチを食べながらお話しましょう。席に限りがありますので、お弁当受け取り後お早めにお越しください。",
        "en": "[Regular Event] Let's gather around various themes and chat while having lunch together. Seats are limited, so please come early after picking up your bento."
      },
      "roomId": 48984,
      "message": {
        "ja": null,
        "en": null
      },
      "noShow": false,
      "moreDetailsUrl": null
    },
    {
      "id": "2",
      "title": {
        "ja": "[Sample] キャリア相談会",
        "en": "[Sample] Career Consultation"
      },
      "i18nDesc": {
        "ja": "[別室イベント] 様々なテーマごとに集まって、一緒にランチを食べながらお話しましょう。席に限りがありますので、お弁当受け取り後お早めにお越しください。",
        "en": "[Different Room Event] Let's gather around various themes and chat while having lunch together. Seats are limited, so please come early after picking up your bento."
      },
      "roomId": 51633,
      "message": {
        "ja": null,
        "en": null
      },
      "noShow": false,
      "moreDetailsUrl": null
    },
    {
      "id": "3",
      "title": {
        "ja": "[Sample] Meetup (ランチタイム)",
        "en": "[Sample] Meetup (Lunch Time)"
      },
      "i18nDesc": {
        "ja": "[中止イベント] 様々なテーマごとに集まって、一緒にランチを食べながらお話しましょう。席に限りがありますので、お弁当受け取り後お早めにお越しください。",
        "en": "[Cancelled Event] Let's gather around various themes and chat while having lunch together. Seats are limited, so please come early after picking up your bento."
      },
      "roomId": 48982,
      "message": {
        "ja": null,
        "en": null
      },
      "noShow": true,
      "moreDetailsUrl": null
    },
    {
      "id": "4",
      "title": {
        "ja": "[Sample] Meetup (ランチタイム)",
        "en": "[Sample] Meetup (Lunch Time)"
      },
      "i18nDesc": {
        "ja": "[時間変更イベント] 様々なテーマごとに集まって、一緒にランチを食べながらお話しましょう。席に限りがありますので、お弁当受け取り後お早めにお越しください。",
        "en": "[Time Changed Event] Let's gather around various themes and chat while having lunch together. Seats are limited, so please come early after picking up your bento."
      },
      "roomId": 51634,
      "message": {
        "ja": "時間が30分延長されました",
        "en": "The event has been extended by 30 minutes"
      },
      "noShow": false,
      "moreDetailsUrl": null
    }
  ],
  "rooms": [
    {
      "id": 51633,
      "name": {
        "ja": "Giraffe",
        "en": "Giraffe"
      },
      "sort": 2
    },
    {
      "id": 48982,
      "name": {
        "ja": "Jellyfish",
        "en": "Jellyfish"
      },
      "sort": 4
    },
    {
      "id": 48983,
      "name": {
        "ja": "Iguana",
        "en": "Iguana"
      },
      "sort": 0
    },
    {
      "id": 51634,
      "name": {
        "ja": "Flamingo",
        "en": "Flamingo"
      },
      "sort": 3
    },
    {
      "id": 48984,
      "name": {
        "ja": "Hedgehog",
        "en": "Hedgehog"
      },
      "sort": 1
    }
  ]
}
sanao1006 commented 2 months ago

✋🏻

takahirom commented 2 months ago

Thank you for raising hand to this high priority issue! Thanks!

sanao1006 commented 2 months ago

@takahirom What value does the property moreDetailsUrl have? For example, String?, List? etc. I would like to know what type this value has, if possible.

takahirom commented 2 months ago

Oh, thank you for confirming about this. It will be string like "https://2024.droidkaigi.jp/".