func MessageNodeToStreamItem(mn *socialGraph.MessageNode, sn *socialGraph.SocialNode) *StreamItem { si := &StreamItem{} si.Pic = sn.GetPic() si.UserName = sn.GetUserName() si.Id = mn.GetID() si.JIT = mn.GetText() return si }
func SocialNodeToUser(sn *socialGraph.SocialNode) *User { usr := &User{} usr.Pic = sn.GetPic() usr.ProperName = sn.GetProperName() usr.UserName = sn.GetUserName() usr.Email = sn.GetEmail() usr.Bio = sn.GetBio() usr.Skills = sn.GetSkills() usr.Github = sn.GetGit() return usr }