/// <summary>
        /// <para>Initializes a new instance of the <see cref="TrustedNonTeamMemberLogInfo" />
        /// class.</para>
        /// </summary>
        /// <param name="trustedNonTeamMemberType">Indicates the type of the member of a
        /// trusted team.</param>
        /// <param name="accountId">User unique ID. Might be missing due to historical data
        /// gap.</param>
        /// <param name="displayName">User display name. Might be missing due to historical
        /// data gap.</param>
        /// <param name="email">User email address. Might be missing due to historical data
        /// gap.</param>
        /// <param name="team">Details about this user's trusted team.</param>
        public TrustedNonTeamMemberLogInfo(TrustedNonTeamMemberType trustedNonTeamMemberType,
                                           string accountId   = null,
                                           string displayName = null,
                                           string email       = null,
                                           TeamLogInfo team   = null)
            : base(accountId, displayName, email)
        {
            if (trustedNonTeamMemberType == null)
            {
                throw new sys.ArgumentNullException("trustedNonTeamMemberType");
            }

            this.TrustedNonTeamMemberType = trustedNonTeamMemberType;
            this.Team = team;
        }
Esempio n. 2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="TeamMemberLogInfo" />
        /// class.</para>
        /// </summary>
        /// <param name="accountId">User unique ID. Might be missing due to historical data
        /// gap.</param>
        /// <param name="displayName">User display name. Might be missing due to historical
        /// data gap.</param>
        /// <param name="email">User email address. Might be missing due to historical data
        /// gap.</param>
        /// <param name="teamMemberId">Team member ID. Might be missing due to historical data
        /// gap.</param>
        /// <param name="memberExternalId">Team member external ID.</param>
        /// <param name="team">Details about this user&#x2019s team for enterprise
        /// event.</param>
        public TeamMemberLogInfo(string accountId        = null,
                                 string displayName      = null,
                                 string email            = null,
                                 string teamMemberId     = null,
                                 string memberExternalId = null,
                                 TeamLogInfo team        = null)
            : base(accountId, displayName, email)
        {
            if (memberExternalId != null)
            {
                if (memberExternalId.Length > 64)
                {
                    throw new sys.ArgumentOutOfRangeException("memberExternalId", "Length should be at most 64");
                }
            }

            this.TeamMemberId     = teamMemberId;
            this.MemberExternalId = memberExternalId;
            this.Team             = team;
        }
Esempio n. 3
0
 /// <summary>
 /// <para>Initializes a new instance of the <see cref="OrganizationTeam" />
 /// class.</para>
 /// </summary>
 /// <param name="value">The value</param>
 public OrganizationTeam(TeamLogInfo value)
 {
     this.Value = value;
 }