package com.discord.stores; import com.discord.api.utcdatetime.UtcDateTime; import com.discord.models.commands.ApplicationCommandLocalSendData; import com.discord.models.message.Message; import com.discord.utilities.messagesend.MessageRequest; import com.discord.utilities.messagesend.MessageResult; import java.util.List; import rx.Emitter; import rx.functions.Action1; /* compiled from: StoreMessages.kt */ public final class StoreMessages$sendMessage$7 implements Action1> { public final /* synthetic */ ApplicationCommandLocalSendData $applicationCommandLocalSendData; public final /* synthetic */ List $attachments; public final /* synthetic */ Message $message; public final /* synthetic */ StoreMessages this$0; public StoreMessages$sendMessage$7(StoreMessages storeMessages, Message message, ApplicationCommandLocalSendData applicationCommandLocalSendData, List list) { this.this$0 = storeMessages; this.$message = message; this.$applicationCommandLocalSendData = applicationCommandLocalSendData; this.$attachments = list; } public final void call(Emitter emitter) { com.discord.api.message.Message synthesizeApiMessage = this.$message.synthesizeApiMessage(); ApplicationCommandLocalSendData applicationCommandLocalSendData = this.$applicationCommandLocalSendData; UtcDateTime timestamp = this.$message.getTimestamp(); StoreMessages.access$getOrCreateMessageQueue(this.this$0, this.$message.getChannelId()).enqueue(new MessageRequest.SendApplicationCommand(synthesizeApiMessage, applicationCommandLocalSendData, this.$attachments, new StoreMessages$sendMessage$7$request$2(this), new StoreMessages$sendMessage$7$request$3(this), new StoreMessages$sendMessage$7$request$1(this, emitter), timestamp != null ? timestamp.g() : 0)); } }