All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.signalr.InvocationHandler Maven / Gradle / Ivy

There is a newer version: 9.0.0-preview.7.24406.2
Show newest version
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

package com.microsoft.signalr;

import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;

class InvocationHandler {
    private final List types;
    private final Object action;

    InvocationHandler(Object action, Type... types) {
        this.action = action;
        this.types = Arrays.asList(types);
    }

    public List getTypes() {
        return types;
    }

    public Object getAction() {
        return action;
    }

    public boolean getHasResult() {
        return action instanceof FunctionBase;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy