Ejemplo n.º 1
0
 public void StoreData(string name, ICGDataContainer data)
 {
     if (IsConnected)
     {
         Connection.SendString(string.Format("DATA STORE \"{0}\" \"{1}\"", name, data.ToAMCPEscapedXml()));
     }
 }
Ejemplo n.º 2
0
 public void Update(int videoLayer, int layer, ICGDataContainer data)
 {
     if (videoLayer == -1)
     {
         Update(layer, data);
     }
     else
     {
         Channel.Connection.SendString("CG " + Channel.ID + "-" + videoLayer + " UPDATE " + layer + " " + " \"" + data.ToAMCPEscapedXml() + "\"");
     }
 }
        public void Update(int layer, ICGDataContainer data)
        {
            string dataxml = data.ToXml();

            string        updateRequest = UpdateRequestTemplate20;
            StringBuilder request       = new StringBuilder(updateRequest, dataxml.Length + updateRequest.Length);

            request.Replace("$LAYER$", layer.ToString());
            request.Replace("$DATA$", dataxml);

            InvokeFlashCall(request.ToString());
        }
Ejemplo n.º 4
0
 public void Update(int videoLayer, int layer, ICGDataContainer data)
 {
     if (videoLayer == -1)
         Update(layer, data);
     else
         Channel.Connection.SendString("CG " + Channel.ID + "-" + videoLayer + " UPDATE " + layer + " " + " \"" + data.ToAMCPEscapedXml() + "\"");
 }
Ejemplo n.º 5
0
 public void Update(int layer, ICGDataContainer data)
 {
     Channel.Connection.SendString("CG " + Channel.ID + " UPDATE " + layer + " " + " \"" + data.ToAMCPEscapedXml() + "\"");
 }
Ejemplo n.º 6
0
 public void Add(int videoLayer, int layer, string template, bool bPlayOnLoad, ICGDataContainer data)
 {
     if (videoLayer == -1)
         Add(layer, template, bPlayOnLoad, data);
     else
         Channel.Connection.SendString("CG " + Channel.ID + "-" + videoLayer + " ADD " + layer + " \"" + template + "\" " + (bPlayOnLoad ? "1" : "0") + " \"" + ((data != null) ? data.ToAMCPEscapedXml() : string.Empty) + "\"");
 }
Ejemplo n.º 7
0
 public void Add(int videoLayer, int layer, string template, ICGDataContainer data)
 {
     Add(videoLayer, layer, template, false, data);
 }
Ejemplo n.º 8
0
 public void Add(int videoLayer, int layer, string template, bool bPlayOnLoad, ICGDataContainer data)
 {
     if (videoLayer == -1)
     {
         Add(layer, template, bPlayOnLoad, data);
     }
     else
     {
         Channel.Connection.SendString("CG " + Channel.ID + "-" + videoLayer + " ADD " + layer + " \"" + template + "\" " + (bPlayOnLoad ? "1" : "0") + " \"" + (data?.ToAMCPEscapedXml() ?? string.Empty) + "\"");
     }
 }
Ejemplo n.º 9
0
 public void Add(int layer, string template, bool bPlayOnLoad, ICGDataContainer data)
 {
     Channel.Connection.SendString("CG " + Channel.ID + " ADD " + layer + " \"" + template + "\" " + (bPlayOnLoad ? "1" : "0") + " \"" + (data?.ToAMCPEscapedXml() ?? string.Empty) + "\"");
 }
Ejemplo n.º 10
0
 public void Add(int videoLayer, int layer, string template, ICGDataContainer data)
 {
     Add(videoLayer, layer, template, false, data);
 }
 public bool Add(int layer, string template, bool bPlayOnLoad, ICGDataContainer data)
 {
     return(Add(layer, template, bPlayOnLoad, (data != null) ? data.ToXml() : string.Empty));
 }
Ejemplo n.º 12
0
 public void Update(int layer, ICGDataContainer data)
 {
     Channel.Connection.SendString("CG " + Channel.ID + " UPDATE " + layer + " " + " \"" + data.ToAMCPEscapedXml() + "\"");
 }
Ejemplo n.º 13
0
 public void StoreData(string name, ICGDataContainer data)
 {
     if (IsConnected)
         Connection.SendString(string.Format("DATA STORE \"{0}\" \"{1}\"", name, data.ToAMCPEscapedXml()));
 }
 public bool Add(int layer, string template, bool bPlayOnLoad, ICGDataContainer data)
 {
     return Add(layer, template, bPlayOnLoad, (data != null) ? data.ToXml() : string.Empty);
 }