Beispiel #1
0
        public static Gp4Project Create(VolumeType type)
        {
            var proj = new Gp4Project
            {
                files   = new Files(),
                Format  = "gp4",
                RootDir = new List <Dir>(),
                version = 1000,
                volume  = new Volume
                {
                    volume_ts = DateTime.UtcNow.ToString("s").Replace('T', ' '),
                    Package   = new PackageInfo
                    {
                        ContentId = "XXXXXX-CUSA00000_00-ZZZZZZZZZZZZZZZZ",
                        Passcode  = "00000000000000000000000000000000"
                    }
                }
            };

            proj.SetType(type);
            return(proj);
        }
Beispiel #2
0
        public static void WriteTo(Gp4Project proj, System.IO.Stream s)
        {
            XmlSerializer mySerializer = new XmlSerializer(typeof(Gp4Project));

            mySerializer.Serialize(s, proj);
        }