Esempio n. 1
0
        public static ApiComment Map(SocialComment c)
        {
            var comment = c.Map <ApiComment>();

            comment.OwnerPicture = FacebookCore.Picture(c.OwnerFacebookId).ToString();
            return(comment);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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;
                }
            }
        }
Esempio n. 4
0
 public static Uri Picture(this IFacebookIdentity identity)
 {
     return(FacebookCore.Picture(identity.FacebookId));
 }