/// <summary>
 /// Initializes a ActivityPost object
 /// </summary>
 /// <param name="attachment">activitypost attachment</param>
 internal ActivityPostAttachment(stream_attachment attachment)
 {
     Name        = attachment.name;
     Href        = attachment.href;
     Caption     = attachment.caption;
     Description = attachment.description;
     Icon        = attachment.icon;
     Media       = new List <ActivityPostAttachmentMedia>(from m in attachment.media.stream_media select new ActivityPostAttachmentMedia(m));
 }
示例#2
0
 /// <summary>
 /// hydrates object with object from xml deserialization
 /// </summary>
 public FacebookStreamAttachment(stream_attachment attachment)
 {
     this.Caption     = attachment.caption;
     this.Description = attachment.description;
     this.Href        = attachment.href;
     //this.Latitude = attachment.properties.s
     this.Media = new List <FacebookStreamMedia>(from m in attachment.media.stream_media select new FacebookStreamMedia(m));
     this.Name  = attachment.name;
 }