简体   繁体   English

Groupon API-endAt和expiresAt有什么区别?

[英]The Groupon API - What is the difference between endAt and expiresAt?

There is a lot of data provided in the Groupon API, but I can't find information anywhere on what the different fields mean. Groupon API中提供了很多数据,但是我无法在任何地方找到有关不同字段含义的信息。

"endAt" and "expiresAt" is quite ambiguous to me. “ endAt”和“ expiresAt”对我来说很模棱两可。 The time at which a deal is no longer valid is quite important to get it wrong is no option. 不再有效的交易时间很重要,要弄清交易是没有选择的。

Any ideas? 有任何想法吗?

I am guessing, but I think expireAt sometimes null because not every offer has expiration, but I think it's better then endAt date when it's not null. 我正在猜测,但我认为expireAt有时为null,因为并非每个报价都有到期时间,但我认为最好在不是null的情况下使用endAt date。 So something like this makes sense to me: 所以这样的事情对我来说很有意义:

string endDate = (!String.IsNullOrEmpty(deal.expiresAt)) ? deal.expiresAt : deal.endAt;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM