/// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="TokenGetAuthenticatedAdminResult" /> class.</para>
        /// </summary>
        /// <param name="adminProfile">The admin who authorized the token.</param>
        public TokenGetAuthenticatedAdminResult(TeamMemberProfile adminProfile)
        {
            if (adminProfile == null)
            {
                throw new sys.ArgumentNullException("adminProfile");
            }

            this.AdminProfile = adminProfile;
        }
Example #2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamMemberInfo" /> class.</para>
        /// </summary>
        /// <param name="profile">Profile of a user as a member of a team.</param>
        /// <param name="role">The user's role in the team.</param>
        public TeamMemberInfo(TeamMemberProfile profile,
                              AdminTier role)
        {
            if (profile == null)
            {
                throw new sys.ArgumentNullException("profile");
            }

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

            this.Profile = profile;
            this.Role    = role;
        }