/// <addLinkedInFeed> /// Add a new linkedin feed /// </summary> /// <param name="lifeed">Set Values in a LinkedInFeed Class Property and Pass the Object of LinkedInFeed Class (SocioBoard.Domain.LinkedInFeed).</param> public void addLinkedInFeed(LinkedInFeed lifeed) { //Creates a database connection and opens up a session using (NHibernate.ISession session = SessionFactory.GetNewSession()) { //After Session creation, start Transaction. using (NHibernate.ITransaction transaction = session.BeginTransaction()) { session.Save(lifeed); transaction.Commit(); } //End Transaction } //End Session }
public void GetLinkedInFeeds(oAuthLinkedIn _oauth, string profileId, Guid userId) { LinkedInNetwork objln = new LinkedInNetwork(); LinkedInFeedRepository objliFeedsRepo = new LinkedInFeedRepository(); List <LinkedInNetwork.Network_Updates> userUPdate = objln.GetNetworkUpdates(_oauth, 20); LinkedInFeed lnkfeeds = new LinkedInFeed(); foreach (var item in userUPdate) { lnkfeeds.Feeds = item.Message; lnkfeeds.FromId = item.PersonId; lnkfeeds.FromName = item.PersonFirstName + " " + item.PersonLastName; lnkfeeds.FeedsDate = Convert.ToDateTime(item.DateTime); lnkfeeds.EntryDate = DateTime.Now; lnkfeeds.ProfileId = profileId; lnkfeeds.Type = item.UpdateType; lnkfeeds.UserId = userId; lnkfeeds.FromPicUrl = item.PictureUrl; objliFeedsRepo.addLinkedInFeed(lnkfeeds); } }
public int updateLinkedInFeed(LinkedInFeed lifeed) { throw new NotImplementedException(); }
public static LinkedInFeed ParseFeed(JToken token) { LinkedInFeed result = new LinkedInFeed(); return result; }