Beispiel #1
0
 internal EmbedThumbnail(Model model)
     : this(
         model.Url,
         model.ProxyUrl,
         model.Height.IsSpecified ? model.Height.Value : (int?)null,
         model.Width.IsSpecified ? model.Width.Value : (int?)null)
 {
 }
Beispiel #2
0
 public Embed Build()
 {
     _model.Author    = Author?.ToModel();
     _model.Footer    = Footer?.ToModel();
     _model.Timestamp = Timestamp?.ToUniversalTime();
     _model.Thumbnail = Thumbnail?.ToModel();
     _model.Image     = Image?.ToModel();
     _model.Fields    = _fields.ToArray();
     return(_model);
 }
Beispiel #3
0
 public EmbedThumbnailBuilder()
 {
     _model = new Thumbnail();
 }