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.
37 lines
961 B
37 lines
961 B
using System.Collections.Generic;
|
|
using ZeroLevel.Services.Serialization;
|
|
|
|
namespace ZeroLevel.DocumentObjectModel.Flow
|
|
{
|
|
public sealed class Videoplayer :
|
|
ContentElement
|
|
{
|
|
public Text Title;
|
|
public List<Video> Playlist = new List<Video>();
|
|
|
|
public Videoplayer() :
|
|
base(ContentElementType.Videoplayer)
|
|
{
|
|
}
|
|
|
|
public Videoplayer(IBinaryReader reader) :
|
|
base(ContentElementType.Videoplayer)
|
|
{
|
|
Deserialize(reader);
|
|
}
|
|
|
|
public void SetTitle(Text title) => this.Title = title;
|
|
|
|
public override void Deserialize(IBinaryReader reader)
|
|
{
|
|
Title = reader.Read<Text>();
|
|
this.Playlist = reader.ReadCollection<Video>();
|
|
}
|
|
|
|
public override void Serialize(IBinaryWriter writer)
|
|
{
|
|
writer.Write(Title);
|
|
writer.WriteCollection<Video>(this.Playlist);
|
|
}
|
|
}
|
|
} |