2021-08-09 22:50:52 +00:00
|
|
|
package com.discord.utilities.rest;
|
|
|
|
|
|
|
|
import com.discord.models.domain.Harvest;
|
|
|
|
import com.discord.utilities.rest.RestAPI;
|
2021-11-01 07:19:03 +00:00
|
|
|
import j0.k.b;
|
2021-08-09 22:50:52 +00:00
|
|
|
/* compiled from: RestAPI.kt */
|
|
|
|
public final class RestAPI$getHarvestStatusGuarded$1<T, R> implements b<Harvest, RestAPI.HarvestState> {
|
|
|
|
public static final RestAPI$getHarvestStatusGuarded$1 INSTANCE = new RestAPI$getHarvestStatusGuarded$1();
|
|
|
|
|
|
|
|
public final RestAPI.HarvestState call(Harvest harvest) {
|
|
|
|
return harvest != null ? new RestAPI.HarvestState.LastRequested(harvest) : new RestAPI.HarvestState.NeverRequested();
|
|
|
|
}
|
|
|
|
}
|