コード例 #1
0
 // Used for mock services
 internal XboxSocialUserGroup(XboxLiveUser localUser, SocialUserGroupType groupType = SocialUserGroupType.Filter, PresenceFilter presence = PresenceFilter.Unknown, RelationshipFilter relationship = RelationshipFilter.Friends, Dictionary <string, XboxSocialUser> users = null, List <string> trackedUsers = null)
 {
     LocalUser                 = localUser;
     SocialUserGroupType       = groupType;
     PresenceFilterOfGroup     = presence;
     RelationshipFilterOfGroup = relationship;
     m_users        = users == null ? new Dictionary <string, XboxSocialUser>() : users;
     m_trackedUsers = trackedUsers == null ? new List <string>() : trackedUsers;
 }
コード例 #2
0
 /// <summary>
 /// Initialize an <see cref="XboxSocialUserGroup" />
 /// </summary>
 /// <param name="localUser">The user that this group belongs to.</param>
 /// <param name="type">The type of SocialManager group.</param>
 private XboxSocialUserGroup(XboxLiveUser localUser, SocialUserGroupType type)
 {
     this.SocialUserGroupType = type;
 }