static public string Enum_A_ARG_TYPE_Direction_ToString(Enum_A_ARG_TYPE_Direction en) { string RetVal = ""; switch (en) { case Enum_A_ARG_TYPE_Direction.INPUT: RetVal = "Input"; break; case Enum_A_ARG_TYPE_Direction.OUTPUT: RetVal = "Output"; break; } return(RetVal); }
public string Enum_A_ARG_TYPE_Direction_ToString(Enum_A_ARG_TYPE_Direction en) { string RetVal = ""; switch (en) { case Enum_A_ARG_TYPE_Direction.INPUT: RetVal = "Input"; break; case Enum_A_ARG_TYPE_Direction.OUTPUT: RetVal = "Output"; break; case Enum_A_ARG_TYPE_Direction._UNSPECIFIED_: RetVal = GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction"); break; } return(RetVal); }
public int PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch(Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); return(_S.InvokeAsync("PrepareForConnection", args, new UPnPService.UPnPServiceInvokeHandler(Sink_PrepareForConnection), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_PrepareForConnection))); }
/// <summary> /// Action: GetCurrentConnectionInfo /// </summary> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="ProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="Status">Associated State Variable: A_ARG_TYPE_ConnectionStatus</param> public void GetCurrentConnectionInfo(System.Int32 ConnectionID, out System.Int32 RcsID, out System.Int32 AVTransportID, out System.String ProtocolInfo, out System.String PeerConnectionManager, out System.Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { // Action: GetCurrentConnectionInfo // Returns associated information of the connection referred to by the ‘ConnectionID’ // parameter. The ‘AVTransportID’ and ‘PeerConnectionManager’ parameters may be NULL // (empty string) in cases where the connection has been setup completely out of band, // e.g., not involving a PrepareForConnection action. //throw (new UPnPCustomException(706, "Invalid Connection Reference")); RcsID = -1; AVTransportID = -1; ProtocolInfo = "http-get:*:*:*"; PeerConnectionManager = "/"; PeerConnectionID = -1; Direction = Enum_A_ARG_TYPE_Direction.OUTPUT; Status = Enum_A_ARG_TYPE_ConnectionStatus.OK; }
static public string Enum_A_ARG_TYPE_Direction_ToString(Enum_A_ARG_TYPE_Direction en) { string RetVal = ""; switch (en) { case Enum_A_ARG_TYPE_Direction.INPUT: RetVal = "Input"; break; case Enum_A_ARG_TYPE_Direction.OUTPUT: RetVal = "Output"; break; } return (RetVal); }
/// <summary> /// Action: GetCurrentConnectionInfo /// </summary> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="ProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="Status">Associated State Variable: A_ARG_TYPE_ConnectionStatus</param> public void GetCurrentConnectionInfo(System.Int32 ConnectionID, out System.Int32 RcsID, out System.Int32 AVTransportID, out System.String ProtocolInfo, out System.String PeerConnectionManager, out System.Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { //ToDo: Add Your implementation here, and remove exception throw(new UPnPCustomException(800, "This method has not been completely implemented...")); }
public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction) { PrepareForConnection(RemoteProtocolInfo, PeerConnectionManager, PeerConnectionID, Direction, null, null); }
/// <summary> /// Action: PrepareForConnection /// </summary> /// <param name="RemoteProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> public void PrepareForConnection(String RemoteProtocolInfo, String PeerConnectionManager, Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, out Int32 ConnectionID, out Int32 AVTransportID, out Int32 RcsID) { ConnectionID = 0; AVTransportID = 0; RcsID = 0; }
/// <summary> /// Action: GetCurrentConnectionInfo /// </summary> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="ProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="Status">Associated State Variable: A_ARG_TYPE_ConnectionStatus</param> public void GetCurrentConnectionInfo(System.Int32 ConnectionID, out System.Int32 RcsID, out System.Int32 AVTransportID, out System.String ProtocolInfo, out System.String PeerConnectionManager, out System.Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { // Action: GetCurrentConnectionInfo // Returns associated information of the connection referred to by the ‘ConnectionID’ // parameter. The ‘AVTransportID’ and ‘PeerConnectionManager’ parameters may be NULL // (empty string) in cases where the connection has been setup completely out of band, // e.g., not involving a PrepareForConnection action. //throw (new UPnPCustomException(706, "Invalid Connection Reference")); RcsID = -1; AVTransportID = -1; ProtocolInfo = "http-get:*:*:*"; PeerConnectionManager = "/"; PeerConnectionID = -1; Direction = Enum_A_ARG_TYPE_Direction.OUTPUT; Status = Enum_A_ARG_TYPE_ConnectionStatus.OK; }
/// <summary> /// Action: PrepareForConnection /// </summary> /// <param name="RemoteProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, out System.Int32 ConnectionID, out System.Int32 AVTransportID, out System.Int32 RcsID) { //ToDo: Add Your implementation here, and remove exception throw(new UPnPCustomException(800,"This method has not been completely implemented...")); }
public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, object _Tag, Delegate_OnResult_PrepareForConnection _Callback) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch (Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); _S.InvokeAsync("PrepareForConnection", args, new object[2] { _Tag, _Callback }, new UPnPService.UPnPServiceInvokeHandler(Sink_PrepareForConnection), new UPnPService.UPnPServiceInvokeErrorHandler(Error_Sink_PrepareForConnection)); }
public void PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction) { PrepareForConnection(RemoteProtocolInfo, PeerConnectionManager, PeerConnectionID, Direction, null, null); }
public void Sync_PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, out System.Int32 ConnectionID, out System.Int32 AVTransportID, out System.Int32 RcsID) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch (Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); _S.InvokeSync("PrepareForConnection", args); for (int i = 0; i < args.Length; ++i) { switch (args[i].Name) { case "Direction": switch ((string)args[i].DataValue) { case "Input": args[i].DataValue = Enum_A_ARG_TYPE_Direction.INPUT; break; case "Output": args[i].DataValue = Enum_A_ARG_TYPE_Direction.OUTPUT; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Direction", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Direction._UNSPECIFIED_; break; } break; } } RemoteProtocolInfo = (System.String)args[0].DataValue; PeerConnectionManager = (System.String)args[1].DataValue; PeerConnectionID = (System.Int32)args[2].DataValue; Direction = (Enum_A_ARG_TYPE_Direction)args[3].DataValue; ConnectionID = (System.Int32)args[4].DataValue; AVTransportID = (System.Int32)args[5].DataValue; RcsID = (System.Int32)args[6].DataValue; return; }
public void Sync_GetCurrentConnectionInfo(System.Int32 ConnectionID, out System.Int32 RcsID, out System.Int32 AVTransportID, out System.String ProtocolInfo, out System.String PeerConnectionManager, out System.Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { UPnPArgument[] args = new UPnPArgument[8]; args[0] = new UPnPArgument("ConnectionID", ConnectionID); args[1] = new UPnPArgument("RcsID", ""); args[2] = new UPnPArgument("AVTransportID", ""); args[3] = new UPnPArgument("ProtocolInfo", ""); args[4] = new UPnPArgument("PeerConnectionManager", ""); args[5] = new UPnPArgument("PeerConnectionID", ""); args[6] = new UPnPArgument("Direction", ""); args[7] = new UPnPArgument("Status", ""); _S.InvokeSync("GetCurrentConnectionInfo", args); for (int i = 0; i < args.Length; ++i) { switch (args[i].Name) { case "Direction": switch ((string)args[i].DataValue) { case "Input": args[i].DataValue = Enum_A_ARG_TYPE_Direction.INPUT; break; case "Output": args[i].DataValue = Enum_A_ARG_TYPE_Direction.OUTPUT; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Direction", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Direction._UNSPECIFIED_; break; } break; case "Status": switch ((string)args[i].DataValue) { case "OK": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.OK; break; case "ContentFormatMismatch": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.CONTENTFORMATMISMATCH; break; case "InsufficientBandwidth": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.INSUFFICIENTBANDWIDTH; break; case "UnreliableChannel": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.UNRELIABLECHANNEL; break; case "Unknown": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.UNKNOWN; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_ConnectionStatus", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus._UNSPECIFIED_; break; } break; } } ConnectionID = (System.Int32)args[0].DataValue; RcsID = (System.Int32)args[1].DataValue; AVTransportID = (System.Int32)args[2].DataValue; ProtocolInfo = (System.String)args[3].DataValue; PeerConnectionManager = (System.String)args[4].DataValue; PeerConnectionID = (System.Int32)args[5].DataValue; Direction = (Enum_A_ARG_TYPE_Direction)args[6].DataValue; Status = (Enum_A_ARG_TYPE_ConnectionStatus)args[7].DataValue; return; }
public void Sync_GetCurrentConnectionInfo(System.Int32 ConnectionID, out System.Int32 RcsID, out System.Int32 AVTransportID, out System.String ProtocolInfo, out System.String PeerConnectionManager, out System.Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { UPnPArgument[] args = new UPnPArgument[8]; args[0] = new UPnPArgument("ConnectionID", ConnectionID); args[1] = new UPnPArgument("RcsID", ""); args[2] = new UPnPArgument("AVTransportID", ""); args[3] = new UPnPArgument("ProtocolInfo", ""); args[4] = new UPnPArgument("PeerConnectionManager", ""); args[5] = new UPnPArgument("PeerConnectionID", ""); args[6] = new UPnPArgument("Direction", ""); args[7] = new UPnPArgument("Status", ""); _S.InvokeSync("GetCurrentConnectionInfo", args); for(int i=0;i<args.Length;++i) { switch(args[i].Name) { case "Direction": switch((string)args[i].DataValue) { case "Input": args[i].DataValue = Enum_A_ARG_TYPE_Direction.INPUT; break; case "Output": args[i].DataValue = Enum_A_ARG_TYPE_Direction.OUTPUT; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Direction", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Direction._UNSPECIFIED_; break; } break; case "Status": switch((string)args[i].DataValue) { case "OK": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.OK; break; case "ContentFormatMismatch": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.CONTENTFORMATMISMATCH; break; case "InsufficientBandwidth": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.INSUFFICIENTBANDWIDTH; break; case "UnreliableChannel": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.UNRELIABLECHANNEL; break; case "Unknown": args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus.UNKNOWN; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_ConnectionStatus", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_ConnectionStatus._UNSPECIFIED_; break; } break; } } ConnectionID = (System.Int32) args[0].DataValue; RcsID = (System.Int32) args[1].DataValue; AVTransportID = (System.Int32) args[2].DataValue; ProtocolInfo = (System.String) args[3].DataValue; PeerConnectionManager = (System.String) args[4].DataValue; PeerConnectionID = (System.Int32) args[5].DataValue; Direction = (Enum_A_ARG_TYPE_Direction) args[6].DataValue; Status = (Enum_A_ARG_TYPE_ConnectionStatus) args[7].DataValue; return; }
public string Enum_A_ARG_TYPE_Direction_ToString(Enum_A_ARG_TYPE_Direction en) { string RetVal = ""; switch(en) { case Enum_A_ARG_TYPE_Direction.INPUT: RetVal = "Input"; break; case Enum_A_ARG_TYPE_Direction.OUTPUT: RetVal = "Output"; break; case Enum_A_ARG_TYPE_Direction._UNSPECIFIED_: RetVal = GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction"); break; } return(RetVal); }
public void Sync_PrepareForConnection(System.String RemoteProtocolInfo, System.String PeerConnectionManager, System.Int32 PeerConnectionID, Enum_A_ARG_TYPE_Direction Direction, out System.Int32 ConnectionID, out System.Int32 AVTransportID, out System.Int32 RcsID) { UPnPArgument[] args = new UPnPArgument[7]; args[0] = new UPnPArgument("RemoteProtocolInfo", RemoteProtocolInfo); args[1] = new UPnPArgument("PeerConnectionManager", PeerConnectionManager); args[2] = new UPnPArgument("PeerConnectionID", PeerConnectionID); switch(Direction) { case Enum_A_ARG_TYPE_Direction.INPUT: args[3] = new UPnPArgument("Direction", "Input"); break; case Enum_A_ARG_TYPE_Direction.OUTPUT: args[3] = new UPnPArgument("Direction", "Output"); break; default: args[3] = new UPnPArgument("Direction", GetUnspecifiedValue("Enum_A_ARG_TYPE_Direction")); break; } args[4] = new UPnPArgument("ConnectionID", ""); args[5] = new UPnPArgument("AVTransportID", ""); args[6] = new UPnPArgument("RcsID", ""); _S.InvokeSync("PrepareForConnection", args); for(int i=0;i<args.Length;++i) { switch(args[i].Name) { case "Direction": switch((string)args[i].DataValue) { case "Input": args[i].DataValue = Enum_A_ARG_TYPE_Direction.INPUT; break; case "Output": args[i].DataValue = Enum_A_ARG_TYPE_Direction.OUTPUT; break; default: SetUnspecifiedValue("Enum_A_ARG_TYPE_Direction", (string)args[i].DataValue); args[i].DataValue = Enum_A_ARG_TYPE_Direction._UNSPECIFIED_; break; } break; } } RemoteProtocolInfo = (System.String) args[0].DataValue; PeerConnectionManager = (System.String) args[1].DataValue; PeerConnectionID = (System.Int32) args[2].DataValue; Direction = (Enum_A_ARG_TYPE_Direction) args[3].DataValue; ConnectionID = (System.Int32) args[4].DataValue; AVTransportID = (System.Int32) args[5].DataValue; RcsID = (System.Int32) args[6].DataValue; return; }
/// <summary> /// Action: GetCurrentConnectionInfo /// </summary> /// <param name="ConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="RcsID">Associated State Variable: A_ARG_TYPE_RcsID</param> /// <param name="AVTransportID">Associated State Variable: A_ARG_TYPE_AVTransportID</param> /// <param name="ProtocolInfo">Associated State Variable: A_ARG_TYPE_ProtocolInfo</param> /// <param name="PeerConnectionManager">Associated State Variable: A_ARG_TYPE_ConnectionManager</param> /// <param name="PeerConnectionID">Associated State Variable: A_ARG_TYPE_ConnectionID</param> /// <param name="Direction">Associated State Variable: A_ARG_TYPE_Direction</param> /// <param name="Status">Associated State Variable: A_ARG_TYPE_ConnectionStatus</param> public void GetCurrentConnectionInfo(Int32 ConnectionID, out Int32 RcsID, out Int32 AVTransportID, out String ProtocolInfo, out String PeerConnectionManager, out Int32 PeerConnectionID, out Enum_A_ARG_TYPE_Direction Direction, out Enum_A_ARG_TYPE_ConnectionStatus Status) { RcsID = 0; AVTransportID = 0; ProtocolInfo = String.Empty; PeerConnectionManager = String.Empty; PeerConnectionID = 0; Direction = ConnectionManager.Enum_A_ARG_TYPE_Direction.INPUT; Status = ConnectionManager.Enum_A_ARG_TYPE_ConnectionStatus.OK; }