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.
Zero/ZeroLevel/Services/DOM/Model/Flow/Videoplayer.cs

37 lines
961 B

6 years ago
using System.Collections.Generic;
using ZeroLevel.Services.Serialization;
namespace ZeroLevel.DocumentObjectModel.Flow
{
public sealed class Videoplayer :
6 years ago
ContentElement
{
public Text Title;
public List<Video> Playlist = new List<Video>();
public Videoplayer() :
6 years ago
base(ContentElementType.Videoplayer)
{
}
public Videoplayer(IBinaryReader reader) :
6 years ago
base(ContentElementType.Videoplayer)
{
Deserialize(reader);
}
public void SetTitle(Text title) => this.Title = title;
6 years ago
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);
}
}
}

Powered by TurnKey Linux.