本文整理汇总了C#中AllJoynUnity.AllJoyn.GetInterface方法的典型用法代码示例。如果您正苦于以下问题:C# AllJoyn.GetInterface方法的具体用法?C# AllJoyn.GetInterface怎么用?C# AllJoyn.GetInterface使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AllJoynUnity.AllJoyn
的用法示例。
在下文中一共展示了AllJoyn.GetInterface方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TestBusObject
public TestBusObject(AllJoyn.BusAttachment bus, string path)
: base(bus, path, false)
{
AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
AllJoyn.QStatus status = AddInterface(exampleIntf);
if(!status)
{
chatText = "Chat Failed to add interface " + status.ToString() + "\n" + chatText;
Debug.Log("Chat Failed to add interface " + status.ToString());
}
chatMember = exampleIntf.GetMember("chat");
}
示例2: TestBusObject
public TestBusObject(AllJoyn.BusAttachment bus, string path)
: base(path, false)
{
AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
AllJoyn.QStatus status = AddInterface(exampleIntf);
if(!status)
{
Console.WriteLine("Server Failed to add interface {0}", status);
}
AllJoyn.InterfaceDescription.Member catMember = exampleIntf.GetMember("cat");
status = AddMethodHandler(catMember, this.Cat);
if(!status)
{
Console.WriteLine("Server Failed to add method handler {0}", status);
}
}
示例3: TestBusObject
public TestBusObject(AllJoyn.BusAttachment bus, string path)
: base(path, false)
{
AllJoyn.InterfaceDescription testIntf = bus.GetInterface("org.alljoyn.test.BusAttachment");
AllJoyn.QStatus status = AddInterface(testIntf);
Assert.Equal(AllJoyn.QStatus.OK, status);
testSignalMember = testIntf.GetMember("testSignal");
}
示例4: MethodTestBusObject
public MethodTestBusObject(AllJoyn.BusAttachment bus, string path)
: base(path, false)
{
// add the interface to the bus object
AllJoyn.InterfaceDescription testIntf = bus.GetInterface(INTERFACE_NAME);
AllJoyn.QStatus status = AddInterface(testIntf);
Assert.Equal(AllJoyn.QStatus.OK, status);
// register a method handler for the ping method
AllJoyn.InterfaceDescription.Member pingMember = testIntf.GetMember("ping");
status = AddMethodHandler(pingMember, this.Ping);
Assert.Equal(AllJoyn.QStatus.OK, status);
}
示例5: TestBusObject
public TestBusObject(AllJoyn.BusAttachment bus, string path)
: base(path, false)
{
AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface (INTERFACE_NAME);
AllJoyn.QStatus status = AddInterface (exampleIntf);
if (!status) {
serverText += "Server Failed to add interface " + status.ToString () + "\n";
Debug.Log ("Server Failed to add interface " + status.ToString ());
}
AllJoyn.InterfaceDescription.Member catMember = exampleIntf.GetMember ("cat");
status = AddMethodHandler (catMember, this.Cat);
if (!status) {
serverText += "Server Failed to add method handler " + status.ToString () + "\n";
Debug.Log ("Server Failed to add method handler " + status.ToString ());
}
}
示例6: TestBusObject
public TestBusObject(AllJoyn.BusAttachment bus, string path)
: base(path, false)
{
AllJoyn.InterfaceDescription exampleIntf = bus.GetInterface(INTERFACE_NAME);
AllJoyn.QStatus status = AddInterface(exampleIntf);
if(!status)
{
DebugLog("RHR Failed to add interface " + status.ToString());
}
vectorMember = exampleIntf.GetMember("vector");
}