Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Api.js « Api « src - git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae89eeb46ac2425dd099b0a04d689d3cea9ccbff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import SessionAuthorization from '../Authorization/SessionAuthorization';
import Server from '../Model/Server/Server';
import BaseClassLoader from "../ClassLoader/BaseClassLoader";
import DefaultClassLoader from "../ClassLoader/DefaultClassLoader";
import BaseApi from "./BaseApi";

export default class Api extends BaseApi {

    /**
     *
     * @param {Server} server
     * @param {Object} [config={}]
     * @param {Object} [classes={}]
     */
    constructor(server, config = {}, classes = {}) {
        if(!(classes instanceof BaseClassLoader)) {
            classes = new DefaultClassLoader(classes);
        }

        super(server, config, classes);
    }

    /**
     *
     * @returns {SessionAuthorization}
     * @deprecated
     */
    getSessionAuthorisation() {
        console.trace('API.getSessionAuthorisation() is deprecated. Use API.getSessionAuthorization() instead');
        return this.getSessionAuthorization();
    }
}