Example #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;
 }
Example #2
0
 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;
 }
Example #3
0
 public static TestProxy Decode(IdDataBin data) {
   TestProxy res = XmlUtils.DecompressAndDeserialize<TestProxy>(data.DataBin);
   res.Id = data.Id;
   return res;
 }
Example #4
0
 public static ModuleData Decode(IdDataBin data) {
   ModuleData res = XmlUtils.DecompressAndDeserialize<ModuleData>(data.DataBin);
   res.Id = data.Id;
   return res;
 }