Ejemplo n.º 1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="GuestAdminChangeStatusDetails"
        /// /> class.</para>
        /// </summary>
        /// <param name="isGuest">True for guest, false for host.</param>
        /// <param name="previousValue">Previous request state.</param>
        /// <param name="newValue">New request state.</param>
        /// <param name="actionDetails">Action details.</param>
        /// <param name="guestTeamName">The name of the guest team.</param>
        /// <param name="hostTeamName">The name of the host team.</param>
        public GuestAdminChangeStatusDetails(bool isGuest,
                                             TrustedTeamsRequestState previousValue,
                                             TrustedTeamsRequestState newValue,
                                             TrustedTeamsRequestAction actionDetails,
                                             string guestTeamName = null,
                                             string hostTeamName  = null)
        {
            if (previousValue == null)
            {
                throw new sys.ArgumentNullException("previousValue");
            }

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

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

            this.IsGuest       = isGuest;
            this.PreviousValue = previousValue;
            this.NewValue      = newValue;
            this.ActionDetails = actionDetails;
            this.GuestTeamName = guestTeamName;
            this.HostTeamName  = hostTeamName;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// <para>Initializes a new instance of the <see
        /// cref="ChangedEnterpriseConnectedTeamStatusDetails" /> class.</para>
        /// </summary>
        /// <param name="action">The preformed change in the team&#x2019s connection
        /// status.</param>
        /// <param name="additionalInfo">Additional information about the organization or
        /// team.</param>
        /// <param name="previousValue">Previous request state.</param>
        /// <param name="newValue">New request state.</param>
        public ChangedEnterpriseConnectedTeamStatusDetails(FedHandshakeAction action,
                                                           FederationStatusChangeAdditionalInfo additionalInfo,
                                                           TrustedTeamsRequestState previousValue,
                                                           TrustedTeamsRequestState newValue)
        {
            if (action == null)
            {
                throw new sys.ArgumentNullException("action");
            }

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

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

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

            this.Action         = action;
            this.AdditionalInfo = additionalInfo;
            this.PreviousValue  = previousValue;
            this.NewValue       = newValue;
        }