summaryrefslogtreecommitdiff
path: root/js/src/Ice/Object.d.ts
blob: 9f4faee5bbda834d3fdf7df2996a27617a5c4a67 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

declare module "ice"
{
    namespace Ice
    {
        class Object
        {
            /**
             * Tests whether this object supports a specific Slice interface.
             * @param typeID The type ID of the Slice interface to test against.
             * @param current The Current object for the invocation.
             * @return True if this object has the interface specified by typeID
             * or derives from the interface specified by typeID.
             */
            ice_isA(typeID:string, current?:Current):boolean|PromiseLike<boolean>;

            /**
             * Tests whether this object can be reached.
             * @param current The Current object for the invocation.
             */
            ice_ping(current?:Current):void|PromiseLike<void>;

            /**
             * Returns the Slice type IDs of the interfaces supported by this object.
             * @param current The Current object for the invocation.
             * @return The Slice type IDs of the interfaces supported by this object, in base-to-derived
             * order. The first element of the returned array is always "::Ice::Object".
             */
            ice_ids(current?:Current):string[]|PromiseLike<string[]>;

            /**
             * Returns the Slice type ID of the most-derived interface supported by this object.
             * @param current The Current object for the invocation.
             * @return The Slice type ID of the most-derived interface.
             */
            ice_id(current?:Current):string|PromiseLike<string>;

            /**
             * Obtains the Slice type ID of this type.
             * @return The return value is always "::Ice::Object".
             */
            static ice_staticId():string;
        }
    }
}