示例#1
0
 internal ExternalSource(CiscoTelePresenceCodec codec, string sourceIdentifier, string name, int connectorId, ExternalSourceType type)
 {
     _codec            = codec;
     _sourceIdentifier = sourceIdentifier;
     _name             = name;
     _connectorId      = connectorId;
     _type             = type;
 }
示例#2
0
        ///<summary>Returns true if a Document with the external GUID is found in the database.</summary>
        public static bool DocExternalExists(string externalGUID, ExternalSourceType externalSource)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                return(Meth.GetBool(MethodBase.GetCurrentMethod(), externalGUID, externalSource));
            }
            string command = "SELECT COUNT(*) FROM document"
                             + " WHERE document.ExternalGUID='" + POut.String(externalGUID) + "'"
                             + " AND document.ExternalSource='" + POut.String(externalSource.ToString()) + "'";

            if (Db.GetCount(command) != "0")
            {
                return(true);
            }
            return(false);
        }
示例#3
0
        public void ExternalSourceAdd(string sourceId, string sourceName, int connectorId, ExternalSourceType type)
        {
            var cmd = new CodecCommand("UserInterface/Presentation/ExternalSource", "Add");

            cmd.Args.Add("ConnectorId", connectorId);
            cmd.Args.Add("SourceIdentifier", sourceId);
            cmd.Args.Add("Name", sourceName);
            cmd.Args.Add("Type", type.ToString());
            _codec.SendCommand(cmd);
        }