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