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