summaryrefslogtreecommitdiff
path: root/swift/src/Ice/ImplicitContextI.swift
blob: d3663831b5c9fe260bc5616fd411a37468c3f5d4 (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
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

import IceImpl

class ImplicitContextI: LocalObject<ICEImplicitContext>, ImplicitContext {
    func getContext() -> Context {
        return handle.getContext()
    }

    func setContext(_ newContext: Context) {
        handle.setContext(newContext)
    }

    func containsKey(_ key: String) -> Bool {
        return handle.containsKey(key)
    }

    func get(_ key: String) -> String {
        return handle.get(key)
    }

    func put(key: String, value: String) -> String {
        return handle.put(key, value: value)
    }

    func remove(_ key: String) -> String {
        return handle.remove(key)
    }
}