public void CancelAllSubscriptions(HomeOS.Hub.Platform.Contracts.IModule module, HomeOS.Hub.Platform.Contracts.IPort controlPort, HomeOS.Hub.Platform.Contracts.ICapability controlportcap) { _view.CancelAllSubscriptions(ModuleAdapter.C2V(module), PortAdapter.C2V(controlPort), CapabilityAdapter.C2V(controlportcap)); }
public ICapability GetCapability(IModule module, IPort targetPort, string username, string password) { return(CapabilityAdapter.V2C(_view.GetCapability(ModuleAdapter.C2V(module), PortAdapter.C2V(targetPort), username, password))); }
public void CancelAllSubscriptions(VModule module, VPort controlPort, VCapability controlportcap) { _contract.CancelAllSubscriptions(ModuleAdapter.V2C(module), PortAdapter.V2C(controlPort), CapabilityAdapter.V2C(controlportcap)); }
public VCapability GetCapability(VModule module, VPort targetPort, string username, string password) { return(CapabilityAdapter.C2V(_contract.GetCapability(ModuleAdapter.V2C(module), PortAdapter.V2C(targetPort), username, password))); }
public override int InstallCapability(VCapability capability, VPort targetPort) { return(_contract.InstallCapability(CapabilityAdapter.V2C(capability), PortAdapter.V2C(targetPort))); }
//*** public int InstallCapability(HomeOS.Hub.Platform.Contracts.ICapability capability, HomeOS.Hub.Platform.Contracts.IPort targetPort) { return(_view.InstallCapability(CapabilityAdapter.C2V(capability), PortAdapter.C2V(targetPort))); }
public override bool Subscribe(string roleName, string opName, VPort fromPort, VCapability reqCap, VCapability respCap) { return(_contract.Subscribe(roleName, opName, PortAdapter.V2C(fromPort), CapabilityAdapter.V2C(reqCap), CapabilityAdapter.V2C(respCap))); }
public void AsyncReturn(string roleName, string opName, IListContract <IParamType> retVals, IPort p, ICapability respCap) { _view.AsyncReturn(roleName, opName, CollectionAdapters.ToIList <IParamType, VParamType>(retVals, BaseTypeAdapter.C2V, BaseTypeAdapter.V2C), PortAdapter.C2V(p), CapabilityAdapter.C2V(respCap)); }
public IListContract <IParamType> Invoke(string roleName, string opName, IListContract <IParamType> parameters, IPort p, ICapability reqCap, ICapability respCap) { return(CollectionAdapters.ToIListContract <VParamType, IParamType>(_view.Invoke(roleName, opName, CollectionAdapters.ToIList <IParamType, VParamType>(parameters, BaseTypeAdapter.C2V, BaseTypeAdapter.V2C), PortAdapter.C2V(p), CapabilityAdapter.C2V(reqCap), CapabilityAdapter.C2V(respCap)), BaseTypeAdapter.V2C, BaseTypeAdapter.C2V)); }
public bool Unsubscribe(string roleName, string opName, IPort fromPort, ICapability respCap) { return(_view.Unsubscribe(roleName, opName, PortAdapter.C2V(fromPort), CapabilityAdapter.C2V(respCap))); }
public override void AsyncReturn(string roleName, string opName, IList <VParamType> retVals, VPort p, VCapability respCap) { _contract.AsyncReturn(roleName, opName, CollectionAdapters.ToIListContract <VParamType, IParamType>(retVals, BaseTypeAdapter.V2C, BaseTypeAdapter.C2V), PortAdapter.V2C(p), CapabilityAdapter.V2C(respCap)); }