예제 #1
0
        internal static List <FBUser.Group> SetGroups(FacebookObjectCollection <Group> i_Groups)
        {
            List <FBUser.Group> groups = new List <FBUser.Group>();

            foreach (Group group in i_Groups)
            {
                List <FBUser.Post> groupPosts = new List <FBUser.Post>();
                foreach (Post groupPost in group.WallPosts)
                {
                    groupPosts.Add(new FBUser.Post(new FBUser.FBUser(groupPost.From.Id), groupPost.Caption, groupPost.Description, groupPost.CreatedTime, ServerUtils.RandomAmountOf(), ServerUtils.RandomAmountOf(), group.ImageSmall, groupPost.PictureURL));
                }

                groups.Add(new FBUser.Group(group.Name, groupPosts));
            }

            return(groups);
        }
예제 #2
0
 public static void SetServer(User i_User)
 {
     ServerUtils.InitEntity(i_User);
 }