public static ApiComment Map(SocialComment c) { var comment = c.Map <ApiComment>(); comment.OwnerPicture = FacebookCore.Picture(c.OwnerFacebookId).ToString(); return(comment); }
public static ApiActivity Map(Activity r) { var activity = r.Map <ApiActivity>(); activity.LargeImage = ImageCore.LargeCdn(r.ImagePathFormat); activity.Thumbnail = ImageCore.ThumbnailCdn(r.ImagePathFormat); activity.UserPicture = FacebookCore.Picture(r.UserFacebookId).ToString(); return(activity); }
public void SetThumbnail(string data) { if (!string.IsNullOrWhiteSpace(data)) { switch (this.Type) { case Reference.User: case Reference.Company: this.Thumbnail = FacebookCore.Picture(long.Parse(data)).ToString(); break; case Reference.ItemRequest: case Reference.Item: this.Thumbnail = ImageCore.ThumbnailCdn(data); break; } } }
public static Uri Picture(this IFacebookIdentity identity) { return(FacebookCore.Picture(identity.FacebookId)); }