23 lines
909 B
Java
23 lines
909 B
Java
package com.discord.widgets.guildscheduledevent;
|
|
|
|
import com.discord.api.guildscheduledevent.GuildScheduledEventStatus;
|
|
import com.discord.restapi.RestAPIParams;
|
|
import com.discord.utilities.rest.RestAPI;
|
|
import kotlin.Unit;
|
|
import rx.Observable;
|
|
/* compiled from: GuildScheduledEventAPI.kt */
|
|
public final class GuildScheduledEventAPI {
|
|
public static final GuildScheduledEventAPI INSTANCE = new GuildScheduledEventAPI();
|
|
|
|
private GuildScheduledEventAPI() {
|
|
}
|
|
|
|
public final Observable<Unit> endEvent(long j) {
|
|
return RestAPI.Companion.getApi().updateGuildScheduledEvent(j, new RestAPIParams.UpdateGuildScheduledEventBody(GuildScheduledEventStatus.COMPLETED));
|
|
}
|
|
|
|
public final Observable<Unit> startEvent(long j) {
|
|
return RestAPI.Companion.getApi().updateGuildScheduledEvent(j, new RestAPIParams.UpdateGuildScheduledEventBody(GuildScheduledEventStatus.ACTIVE));
|
|
}
|
|
}
|