Esempio n. 1
0
 public static CallScript FromByteArray(byte[] callScriptData)
 {
     var callScriptText = Encoding.UTF8.GetString(callScriptData);
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }
Esempio n. 2
0
 public static CallScript FromFile(string filePath)
 {
     var text = System.IO.File.ReadAllText(filePath);
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(text);
     return cs;
 }
Esempio n. 3
0
 public static CallScript FromBase64String(string encodedCallScriptData)
 {
     var callScriptText = Encoding.UTF8.GetString(Convert.FromBase64String(encodedCallScriptData));
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }
Esempio n. 4
0
 public static CallScript FromText(string callScriptText)
 {
     var cs = new CallScript();
     cs._callScript = XDocument.Parse(callScriptText);
     return cs;
 }