/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.gateway.common.module.ServerModuleFile
 *  com.l7tech.objectmodel.FindException
 *  com.l7tech.util.Eithers
 *  com.l7tech.util.Eithers$E2
 *  com.l7tech.util.Functions$Nullary
 *  com.l7tech.util.Pair
 */
package com.l7tech.server.module;

import com.l7tech.gateway.common.module.ServerModuleFile;
import com.l7tech.objectmodel.FindException;
import com.l7tech.server.module.ServerModuleFileListener;
import com.l7tech.util.Eithers;
import com.l7tech.util.Functions;
import com.l7tech.util.Pair;
import java.io.InputStream;

class i
implements Functions.Nullary<Eithers.E2<FindException, ServerModuleFileListener.ModuleMissingContentsException, Pair<InputStream, String>>> {
    final ServerModuleFile val$module;
    final ServerModuleFileListener this$0;

    /*
     * Ignored method signature, as it can't be verified against descriptor
     */
    i(ServerModuleFileListener serverModuleFileListener, ServerModuleFile serverModuleFile) {
        this.this$0 = serverModuleFileListener;
        this.val$module = serverModuleFile;
    }

    public Eithers.E2<FindException, ServerModuleFileListener.ModuleMissingContentsException, Pair<InputStream, String>> call() {
        try {
            Pair<InputStream, String> pair = this.this$0.serverModuleFileManager.getModuleBytesAsStreamWithSignature(this.val$module.getGoid());
            if (pair != null) {
                return Eithers.right2(pair);
            }
            return Eithers.left2_2((Object)((Object)new ServerModuleFileListener.ModuleMissingContentsException()));
        }
        catch (FindException findException) {
            return Eithers.left2_1((Object)((Object)findException));
        }
    }
}

