Пример #1
0
 public static UserActivity From(TalkRating rating, Talk talk, User user)
 {
     return new UserActivity
     {
         TalkId = rating.TalkId,
         Time = DateTime.UtcNow,
         TalkAuthor = talk.Author,
         Content = string.Format("\"{0}\" was thumbed-up ({1}) at #tccc19 http://speakr.cc/#{2}",
             talk.Title,
             talk.Ranking > 0 ? "+" + talk.Ranking.ToString() : talk.Ranking.ToString(),
             talk.Id)
     };
 }
Пример #2
0
 public static UserActivity FromLlamafy(Talk talk)
 {
     return new UserActivity
     {
         TalkId = talk.Id,
         Time = DateTime.UtcNow,
         TalkAuthor = talk.Author,
         Content = string.Format("Llama bestowed! {0}'s talk, {1}, now has +{2} llama points. http://speakr.cc/#{3} #tccc19",
             talk.Author,
             talk.Title,
             talk.Llamas,
             talk.Id)
     };
 }