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.
39 lines
1.0 KiB
39 lines
1.0 KiB
using System;
|
|
using ZeroLevel.Services.Serialization;
|
|
|
|
namespace ZeroLevel.DocumentObjectModel.Flow
|
|
{
|
|
/// <summary>
|
|
/// Attached document or content by external link
|
|
/// </summary>
|
|
public sealed class FormContent : ContentElement
|
|
{
|
|
public SourceType Source { get; set; }
|
|
public string Title;
|
|
public string Identifier;
|
|
|
|
public FormContent() : base(ContentElementType.Form)
|
|
{
|
|
}
|
|
|
|
public FormContent(IBinaryReader reader) : base(ContentElementType.Form)
|
|
{
|
|
Deserialize(reader);
|
|
}
|
|
|
|
public override void Deserialize(IBinaryReader reader)
|
|
{
|
|
Source = (SourceType)reader.ReadInt32();
|
|
Title = reader.ReadString();
|
|
Identifier = reader.ReadString();
|
|
}
|
|
|
|
public override void Serialize(IBinaryWriter writer)
|
|
{
|
|
writer.WriteInt32((Int32)Source);
|
|
writer.WriteString(Title);
|
|
writer.WriteString(Identifier);
|
|
}
|
|
}
|
|
}
|