Exemplo n.º 1
0
        private void addFeedInfo(Follower f)
        {
            String            msg = MbTemplate.GetFeed("¹Ø×¢ÁË", f.Target.Name, Link.ToMember(f.Target), "", f.Target.PicSX);
            IMicroblogService microblogService = ObjectContext.Create <IMicroblogService>(typeof(MicroblogService));

            microblogService.AddSimplePrivate(f.User, msg, typeof(Follower).FullName, f.Target.Id, f.Ip);
        }
Exemplo n.º 2
0
        private static void addFrinedFeedInfo(User user, User friend, long id, String ip)
        {
            String userLink = Link.ToMember(friend);
            String lnkInfo  = string.Format("<a href=\"{0}\">{1}</a>", userLink, friend.Name);

            String actionName = string.Format("和 {0} 成为朋友", lnkInfo);

            String            msg = MbTemplate.GetFeed(actionName, null, userLink, null, friend.PicSX);
            IMicroblogService microblogService = ObjectContext.Create <IMicroblogService>(typeof(MicroblogService));

            microblogService.AddSimplePrivate(user, msg, typeof(FriendShip).FullName, id, ip);
        }