Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Groupon API には多くのデータが提供されていますが、さまざまなフィールドの意味に関する情報がどこにも見つかりません。
「endAt」と「expiresAt」は私にはかなりあいまいです。取り引きが有効でなくなる時期は非常に重要です。
何か案は?
私は推測していますが、すべてのオファーに有効期限があるわけではないため、expireAt が null になることもあると思いますが、null でない場合は endAt 日よりも優れていると思います。したがって、このようなことは私には理にかなっています:
string endDate = (!String.IsNullOrEmpty(deal.expiresAt)) ? deal.expiresAt : deal.endAt;