Beispiel #1
0
 /// <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
 }
Beispiel #2
0
        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);
            }
        }
Beispiel #3
0
 public int updateLinkedInFeed(LinkedInFeed lifeed)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
        public static LinkedInFeed ParseFeed(JToken token)
        {
            LinkedInFeed result = new LinkedInFeed();

              return result;
        }