Exemplo n.º 1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GroupSummary" /> class.</para>
        /// </summary>
        /// <param name="groupName">The group name</param>
        /// <param name="groupId">The group id</param>
        /// <param name="groupManagementType">Who is allowed to manage the group.</param>
        /// <param name="groupExternalId">External ID of group. This is an arbitrary ID that an
        /// admin can attach to a group.</param>
        /// <param name="memberCount">The number of members in the group.</param>
        public GroupSummary(string groupName,
                            string groupId,
                            GroupManagementType groupManagementType,
                            string groupExternalId = null,
                            uint?memberCount       = null)
        {
            if (groupName == null)
            {
                throw new sys.ArgumentNullException("groupName");
            }

            if (groupId == null)
            {
                throw new sys.ArgumentNullException("groupId");
            }

            if (groupManagementType == null)
            {
                throw new sys.ArgumentNullException("groupManagementType");
            }

            this.GroupName           = groupName;
            this.GroupId             = groupId;
            this.GroupManagementType = groupManagementType;
            this.GroupExternalId     = groupExternalId;
            this.MemberCount         = memberCount;
        }
Exemplo n.º 2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="AlphaGroupSummary" />
        /// class.</para>
        /// </summary>
        /// <param name="groupName">The group name</param>
        /// <param name="groupId">The group id</param>
        /// <param name="groupManagementType">Who is allowed to manage the group.</param>
        /// <param name="groupExternalId">External ID of group. This is an arbitrary ID that an
        /// admin can attach to a group.</param>
        /// <param name="memberCount">The number of members in the group.</param>
        public AlphaGroupSummary(string groupName,
                                 string groupId,
                                 GroupManagementType groupManagementType,
                                 string groupExternalId = null,
                                 uint?memberCount       = null)
            : base(groupName, groupId, groupExternalId, memberCount)
        {
            if (groupManagementType == null)
            {
                throw new sys.ArgumentNullException("groupManagementType");
            }

            this.GroupManagementType = groupManagementType;
        }