コード例 #1
0
 public void UpdateSocialUserGroup(XboxSocialUserGroup group, List <ulong> users)
 {
     this.userGraphs[group.LocalUser].AddUsers(users).ContinueWith(
         addUsersTask =>
     {
         SocialEvent socialEvent = new SocialEvent(SocialEventType.SocialUserGroupUpdated, group.LocalUser, users);
         this.eventQueue.Enqueue(socialEvent);
     });
 }
コード例 #2
0
        public void UpdateUserGroup(XboxLiveUser user, XboxSocialUserGroup group, List <ulong> users)
        {
            if (group.SocialUserGroupType != SocialUserGroupType.UserList)
            {
                throw new ArgumentException("You can only modify the user list for a UserList type social group.");
            }

            this.userGraphs[user].AddUsers(users).ContinueWith(
                addUsersTask =>
            {
                SocialEvent socialEvent = new SocialEvent(SocialEventType.SocialUserGroupUpdated, user, users);
                this.eventQueue.Enqueue(socialEvent);
            });
        }