package net.letime.lecjoa.service;

import java.lang.System;

@kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {"\u0000x\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\u0018\u0000 >2\u00020\u00012\u00020\u0002:\u0001>B\u0005\u00a2\u0006\u0002\u0010\u0003J\u0010\u0010-\u001a\u00020.2\u0006\u0010/\u001a\u00020&H\u0002J\u0010\u00100\u001a\u0002012\u0006\u0010/\u001a\u00020&H\u0002J\u0012\u00102\u001a\u0004\u0018\u0001032\u0006\u00104\u001a\u000205H\u0016J\b\u00106\u001a\u00020.H\u0016J \u00107\u001a\u00020&2\u0006\u00104\u001a\u0002052\u0006\u00108\u001a\u00020&2\u0006\u00109\u001a\u00020&H\u0016J\u0010\u0010:\u001a\u00020.2\u0006\u0010;\u001a\u00020,H\u0002J\u0010\u0010<\u001a\u00020.2\u0006\u0010/\u001a\u00020&H\u0002J\b\u0010=\u001a\u00020.H\u0002R\u001e\u0010\u0004\u001a\u00020\u00058\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u001e\u0010\n\u001a\u00020\u000b8\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR\u001e\u0010\u0010\u001a\u00020\u00118\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R\u001e\u0010\u0016\u001a\u00020\u00178\u0006@\u0006X\u0087.\u00a2\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\u001b\u0010\u001c\u001a\u00020\u001d8BX\u0082\u0084\u0002\u00a2\u0006\f\n\u0004\b \u0010!\u001a\u0004\b\u001e\u0010\u001fR\u000e\u0010\"\u001a\u00020#X\u0082.\u00a2\u0006\u0002\n\u0000R \u0010$\u001a\u0014\u0012\u0004\u0012\u00020&\u0012\n\u0012\b\u0012\u0004\u0012\u00020(0\'0%X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010)\u001a\u00020*X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u001a\u0010+\u001a\u000e\u0012\u0004\u0012\u00020&\u0012\u0004\u0012\u00020,0%X\u0082\u0004\u00a2\u0006\u0002\n\u0000\u00a8\u0006?"}, d2 = {"Lnet/letime/lecjoa/service/SendTootService;", "Landroid/app/Service;", "Lnet/letime/lecjoa/di/Injectable;", "()V", "accountManager", "Lnet/letime/lecjoa/db/AccountManager;", "getAccountManager", "()Lnet/letime/lecjoa/db/AccountManager;", "setAccountManager", "(Lnet/letime/lecjoa/db/AccountManager;)V", "database", "Lnet/letime/lecjoa/db/AppDatabase;", "getDatabase", "()Lnet/letime/lecjoa/db/AppDatabase;", "setDatabase", "(Lnet/letime/lecjoa/db/AppDatabase;)V", "eventHub", "Lnet/letime/lecjoa/appstore/EventHub;", "getEventHub", "()Lnet/letime/lecjoa/appstore/EventHub;", "setEventHub", "(Lnet/letime/lecjoa/appstore/EventHub;)V", "mastodonApi", "Lnet/letime/lecjoa/network/MastodonApi;", "getMastodonApi", "()Lnet/letime/lecjoa/network/MastodonApi;", "setMastodonApi", "(Lnet/letime/lecjoa/network/MastodonApi;)V", "notificationManager", "Landroid/app/NotificationManager;", "getNotificationManager", "()Landroid/app/NotificationManager;", "notificationManager$delegate", "Lkotlin/Lazy;", "saveTootHelper", "Lnet/letime/lecjoa/util/SaveTootHelper;", "sendCalls", "Ljava/util/concurrent/ConcurrentHashMap;", "", "Lretrofit2/Call;", "Lnet/letime/lecjoa/entity/Status;", "timer", "Ljava/util/Timer;", "tootsToSend", "Lnet/letime/lecjoa/service/TootToSend;", "cancelSending", "", "tootId", "cancelSendingIntent", "Landroid/app/PendingIntent;", "onBind", "Landroid/os/IBinder;", "intent", "Landroid/content/Intent;", "onCreate", "onStartCommand", "flags", "startId", "saveTootToDrafts", "toot", "sendToot", "stopSelfWhenDone", "Companion", "app_debug"})
public final class SendTootService extends android.app.Service implements net.letime.lecjoa.di.Injectable {
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.network.MastodonApi mastodonApi;
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.db.AccountManager accountManager;
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.appstore.EventHub eventHub;
    @org.jetbrains.annotations.NotNull()
    @javax.inject.Inject()
    public net.letime.lecjoa.db.AppDatabase database;
    private net.letime.lecjoa.util.SaveTootHelper saveTootHelper;
    private final java.util.concurrent.ConcurrentHashMap<java.lang.Integer, net.letime.lecjoa.service.TootToSend> tootsToSend = null;
    private final java.util.concurrent.ConcurrentHashMap<java.lang.Integer, retrofit2.Call<net.letime.lecjoa.entity.Status>> sendCalls = null;
    private final java.util.Timer timer = null;
    private final kotlin.Lazy notificationManager$delegate = null;
    private static final java.lang.String KEY_TOOT = "toot";
    private static final java.lang.String KEY_CANCEL = "cancel_id";
    private static final java.lang.String CHANNEL_ID = "send_toots";
    private static final long MAX_RETRY_INTERVAL = 0L;
    private static int sendingNotificationId;
    private static int errorNotificationId;
    public static final net.letime.lecjoa.service.SendTootService.Companion Companion = null;
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.network.MastodonApi getMastodonApi() {
        return null;
    }
    
    public final void setMastodonApi(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.network.MastodonApi p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.db.AccountManager getAccountManager() {
        return null;
    }
    
    public final void setAccountManager(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.db.AccountManager p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.appstore.EventHub getEventHub() {
        return null;
    }
    
    public final void setEventHub(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.appstore.EventHub p0) {
    }
    
    @org.jetbrains.annotations.NotNull()
    public final net.letime.lecjoa.db.AppDatabase getDatabase() {
        return null;
    }
    
    public final void setDatabase(@org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.db.AppDatabase p0) {
    }
    
    private final android.app.NotificationManager getNotificationManager() {
        return null;
    }
    
    @java.lang.Override()
    public void onCreate() {
    }
    
    @org.jetbrains.annotations.Nullable()
    @java.lang.Override()
    public android.os.IBinder onBind(@org.jetbrains.annotations.NotNull()
    android.content.Intent intent) {
        return null;
    }
    
    @java.lang.Override()
    public int onStartCommand(@org.jetbrains.annotations.NotNull()
    android.content.Intent intent, int flags, int startId) {
        return 0;
    }
    
    private final void sendToot(int tootId) {
    }
    
    private final void stopSelfWhenDone() {
    }
    
    private final void cancelSending(int tootId) {
    }
    
    private final void saveTootToDrafts(net.letime.lecjoa.service.TootToSend toot) {
    }
    
    private final android.app.PendingIntent cancelSendingIntent(int tootId) {
        return null;
    }
    
    public SendTootService() {
        super();
    }
    
    @org.jetbrains.annotations.NotNull()
    public static final android.content.Intent sendTootIntent(@org.jetbrains.annotations.NotNull()
    android.content.Context context, @org.jetbrains.annotations.NotNull()
    java.lang.String text, @org.jetbrains.annotations.NotNull()
    java.lang.String warningText, @org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.entity.Status.Visibility visibility, boolean sensitive, @org.jetbrains.annotations.NotNull()
    java.util.List<java.lang.String> mediaIds, @org.jetbrains.annotations.NotNull()
    java.util.List<? extends android.net.Uri> mediaUris, @org.jetbrains.annotations.Nullable()
    java.lang.String inReplyToId, @org.jetbrains.annotations.Nullable()
    java.lang.String replyingStatusContent, @org.jetbrains.annotations.Nullable()
    java.lang.String replyingStatusAuthorUsername, @org.jetbrains.annotations.Nullable()
    java.lang.String savedJsonUrls, @org.jetbrains.annotations.NotNull()
    net.letime.lecjoa.db.AccountEntity account, int savedTootUid) {
        return null;
    }
    
    @kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\t\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002\u00a2\u0006\u0002\u0010\u0002J\u0084\u0001\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u0011\u001a\u00020\u00042\u0006\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u0014\u001a\u00020\u00152\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00040\u00172\f\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00190\u00172\b\u0010\u001a\u001a\u0004\u0018\u00010\u00042\b\u0010\u001b\u001a\u0004\u0018\u00010\u00042\b\u0010\u001c\u001a\u0004\u0018\u00010\u00042\b\u0010\u001d\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u001e\u001a\u00020\u001f2\u0006\u0010 \u001a\u00020\nH\u0007R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0082T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\bX\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\nX\u0082\u000e\u00a2\u0006\u0002\n\u0000\u00a8\u0006!"}, d2 = {"Lnet/letime/lecjoa/service/SendTootService$Companion;", "", "()V", "CHANNEL_ID", "", "KEY_CANCEL", "KEY_TOOT", "MAX_RETRY_INTERVAL", "", "errorNotificationId", "", "sendingNotificationId", "sendTootIntent", "Landroid/content/Intent;", "context", "Landroid/content/Context;", "text", "warningText", "visibility", "Lnet/letime/lecjoa/entity/Status$Visibility;", "sensitive", "", "mediaIds", "", "mediaUris", "Landroid/net/Uri;", "inReplyToId", "replyingStatusContent", "replyingStatusAuthorUsername", "savedJsonUrls", "account", "Lnet/letime/lecjoa/db/AccountEntity;", "savedTootUid", "app_debug"})
    public static final class Companion {
        
        @org.jetbrains.annotations.NotNull()
        public final android.content.Intent sendTootIntent(@org.jetbrains.annotations.NotNull()
        android.content.Context context, @org.jetbrains.annotations.NotNull()
        java.lang.String text, @org.jetbrains.annotations.NotNull()
        java.lang.String warningText, @org.jetbrains.annotations.NotNull()
        net.letime.lecjoa.entity.Status.Visibility visibility, boolean sensitive, @org.jetbrains.annotations.NotNull()
        java.util.List<java.lang.String> mediaIds, @org.jetbrains.annotations.NotNull()
        java.util.List<? extends android.net.Uri> mediaUris, @org.jetbrains.annotations.Nullable()
        java.lang.String inReplyToId, @org.jetbrains.annotations.Nullable()
        java.lang.String replyingStatusContent, @org.jetbrains.annotations.Nullable()
        java.lang.String replyingStatusAuthorUsername, @org.jetbrains.annotations.Nullable()
        java.lang.String savedJsonUrls, @org.jetbrains.annotations.NotNull()
        net.letime.lecjoa.db.AccountEntity account, int savedTootUid) {
            return null;
        }
        
        private Companion() {
            super();
        }
    }
}