/// <summary> /// /// </summary> /// <param name="image"></param> public void Create(InstagramFeed.InstagramImage image) { InstagramFeed.Parse.InstagramImage persistedImaged = new InstagramFeed.Parse.InstagramImage { caption = image.caption, created = image.created, imageLink = image.imageLink, instagramImageId = image.instagramImageId, link = image.link, thumbLink = image.thumbLink, userFullName = image.userFullName, userThumbnail = image.userThumbnail, userId = image.userId, longitude = image.longitude, latitude = image.latitude, username = image.username, isBlocked = image.isBlocked, votes = image.votes }; _client.CreateObject(persistedImaged); }
/// <summary> /// /// </summary> /// <param name="image"></param> /// <returns></returns> private InstagramFeed.InstagramImage Load(InstagramFeed.Parse.InstagramImage image) { return(new InstagramFeed.InstagramImage { id = image.ObjectId, caption = image.caption, created = image.created, imageLink = image.imageLink, instagramImageId = image.instagramImageId, link = image.link, thumbLink = image.thumbLink, userFullName = image.userFullName, userThumbnail = image.userThumbnail, userId = image.userId, longitude = image.longitude, latitude = image.latitude, username = image.username, isBlocked = image.isBlocked, votes = image.votes }); }