示例#1
0
 public static TestProxy Decode(IdDataBin data, IEnumerable<IdDataBin> moduleProxy) {
   TestProxy res = XmlUtils.DecompressAndDeserialize<TestProxy>(data.DataBin);
   res.Id = data.Id;
   res.ModuleProxyToCourseTree(moduleProxy);
   return res;
 }
示例#2
0
文件: Objects.cs 项目: PavelPZ/NetNew
 public static ModuleData Decode(IdDataBin data, Dictionary<string, string> scormData) {
   ModuleData res = XmlUtils.DecompressAndDeserialize<ModuleData>(data.DataBin);
   res.Id = data.Id;
   if (scormData != null) {
     scormData.Clear();
     if (res.ScormDataKey != null) for (int i = 0; i < res.ScormDataKey.Length; i++) scormData.Add(res.ScormDataKey[i], res.ScormDataValue[i]);
   }
   return res;
 }
示例#3
0
 public static TestProxy Decode(IdDataBin data) {
   TestProxy res = XmlUtils.DecompressAndDeserialize<TestProxy>(data.DataBin);
   res.Id = data.Id;
   return res;
 }
示例#4
0
文件: Objects.cs 项目: PavelPZ/NetNew
 public static ModuleData Decode(IdDataBin data) {
   ModuleData res = XmlUtils.DecompressAndDeserialize<ModuleData>(data.DataBin);
   res.Id = data.Id;
   return res;
 }