Exemple #1
0
 public static SceneDetails FromDLModel(Scene s)
 {
     if (s == null)
     {
         return(null);
     }
     return(new SceneDetails {
         ID = s.ID,
         ParsedID = s.ParsedID,
         SceneDescription = s.SceneDescription,
         SceneIndex = s.SceneIndex,
         SceneName = s.SceneName,
         Files = s.SceneFiles.Select(sf => FileDetails.FromDLModel(sf.File)).ToList()
     });
 }
Exemple #2
0
 public static PilotDetails FromDLModel(Pilot p)
 {
     if (p == null)
     {
         return(null);
     }
     return(new PilotDetails {
         ID = p.ID,
         PilotName = p.PilotName,
         PilotDescription = p.PilotDescription,
         Producer = UserMinimal.FromDLModel(p.Producer),
         Files = p.Files.Select(f => FileDetails.FromDLModel(f)).ToList(),
         Scenes = p.Scenes.Select(s => SceneDetails.FromDLModel(s)).ToList(),
         Script = ScriptDetails.FromDLModel(p.Script)
     });
 }