Exemplo n.º 1
0
 public void Post(Gleet gleet)
 {
     m_Gleets.Enqueue(gleet);
     while (m_Gleets.Count > s_MaxGleetsPerFeed)
     {
         m_Gleets.Dequeue();
     }
     m_VersionTracker.Increment();
 }
Exemplo n.º 2
0
        public void Post(string username, Gleet sentGleet)
        {
            var user  = GetUser(username);
            var gleet = new Gleet()
            {
                Text = sentGleet.Text, ImageData = sentGleet.ImageData, DateTimeUtc = DateTime.UtcNow, User = user,
            };

            user.Post(gleet);

            foreach (var follower in user.Followers)
            {
                follower.Post(gleet);
            }
        }