示例#1
0
 public Frame(int channel, DateTime time, TimeSpan lifeTime, Draw.Image content, params KeyValue <string, object>[] meta)
 {
     this.Channel  = channel;
     this.Time     = time;
     this.Lifetime = lifeTime;
     this.Content  = content;
     this.Meta     = new Collection.ReadOnlyDictionary <string, object>(meta ?? new KeyValue <string, object> [0]);
 }
示例#2
0
 public Frame(int channel, DateTime time, TimeSpan lifeTime, Draw.Image content, params Tuple <string, object>[] meta) :
     this(channel, time, lifeTime, content, meta.Map(m => KeyValue.Create(m.Item1, m.Item2)))
 {
 }