2021-09-09 06:47:34 +00:00
|
|
|
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) {
|
2021-09-21 06:31:55 +00:00
|
|
|
return RestAPI.Companion.getApi().updateGuildScheduledEvent(j, new RestAPIParams.UpdateGuildScheduledEventBody(null, null, null, null, null, null, null, GuildScheduledEventStatus.COMPLETED, 127, null));
|
2021-09-09 06:47:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public final Observable<Unit> startEvent(long j) {
|
2021-09-21 06:31:55 +00:00
|
|
|
return RestAPI.Companion.getApi().updateGuildScheduledEvent(j, new RestAPIParams.UpdateGuildScheduledEventBody(null, null, null, null, null, null, null, GuildScheduledEventStatus.ACTIVE, 127, null));
|
2021-09-09 06:47:34 +00:00
|
|
|
}
|
|
|
|
}
|