Ejemplo n.º 1
0
    public List <Triplet> GetFollowList(int userid, int followTypeID)
    {
        // 0 - following, 1 - followers, 2 - friends
        List <Triplet> followList = new List <Triplet>();

        if (userid == -2)
        {
            userid = SueetieContext.Current.User.UserID;
        }

        var q = from c in SueetieUsers.GetSueetieFollowList(userid, followTypeID)
                select new Triplet(c.UserID, c.DisplayName, c.ThumbnailFilename);

        followList.AddRange(q.ToList());
        return(followList);
    }