DroidKaigi / conference-app-2020

The Official Conference App for DroidKaigi 2020 Tokyo
https://droidkaigi.jp/2020/en/
Apache License 2.0
773 stars 328 forks source link

[iOS] Show staff list #757

Open ry-itto opened 4 years ago

ry-itto commented 4 years ago

Kind (Required)

uhooi commented 4 years ago

๐Ÿ™‹

ry-itto commented 4 years ago

Thanks!! Assigned ๐Ÿ‘

uhooi commented 4 years ago

@ry-itto Where is the staff list get API specification?

ry-itto commented 4 years ago

@uhooi There are no API specification as far as I know. ๐Ÿ˜ข

To implement this feature, Please make getStaffs() method at KtorDroidKaigiApi.kt. That has callback and not suspend method like this https://github.com/DroidKaigi/conference-app-2020/blob/6959e4396a04d404de9ff2f6fc4ea4643deb0824/data/api/src/commonMain/kotlin/io/github/droidkaigi/confsched2020/data/api/internal/KtorDroidKaigiApi.kt#L103-L115

And use this method in iOS project. For example,

import ioscombined

class Hoge {
    func fetchHoge() {
        ApiComponentKt.generateDroidKaigiApi().getStaffs {
            // do something.
        }
    }
}

If this is insufficient, please tell me! ๐Ÿ™

uhooi commented 4 years ago

@ry-itto Cancel work because DoroidKaigi 2020 was canceled๐Ÿ˜ข