mirror of https://github.com/ogoun/Zero.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
817 B
32 lines
817 B
using System.Collections.Generic;
|
|
using ZeroLevel.DocumentObjectModel.Flow;
|
|
using ZeroLevel.Services.Serialization;
|
|
|
|
namespace ZeroLevel.DocumentObjectModel
|
|
{
|
|
public class FlowContent :
|
|
ContentElement
|
|
{
|
|
public List<Section> Sections = new List<Section>();
|
|
|
|
public FlowContent() :
|
|
base(ContentElementType.Content)
|
|
{ }
|
|
|
|
public FlowContent(IBinaryReader reader) :
|
|
base(ContentElementType.Content)
|
|
{
|
|
Deserialize(reader);
|
|
}
|
|
|
|
public override void Serialize(IBinaryWriter writer)
|
|
{
|
|
writer.WriteCollection<Section>(this.Sections);
|
|
}
|
|
|
|
public override void Deserialize(IBinaryReader reader)
|
|
{
|
|
this.Sections = reader.ReadCollection<Section>();
|
|
}
|
|
}
|
|
} |