예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateShareRequest" /> class.
 /// </summary>
 /// <param name="SharedEntityType">The share entity type (required).</param>
 /// <param name="SharedEntity">The entity that will be shared (required).</param>
 /// <param name="MemberType">MemberType.</param>
 /// <param name="Member">The member that will have access to this share. Only required if a list of members is not provided..</param>
 /// <param name="Members">Members.</param>
 public CreateShareRequest(SharedEntityTypeEnum?SharedEntityType = null, SharedEntity SharedEntity = null, MemberTypeEnum?MemberType = null, SharedEntity Member = null, List <CreateShareRequestMember> Members = null)
 {
     this.SharedEntityType = SharedEntityType;
     this.SharedEntity     = SharedEntity;
     this.MemberType       = MemberType;
     this.Member           = Member;
     this.Members          = Members;
 }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateShareRequest" /> class.
        /// </summary>


        /// <param name="SharedEntityType">The share entity type (required).</param>



        /// <param name="SharedEntity">The entity that will be shared (required).</param>



        /// <param name="MemberType">MemberType.</param>



        /// <param name="Member">The member that will have access to this share. Only required if a list of members is not provided..</param>



        /// <param name="Members">Members.</param>


        public CreateShareRequest(SharedEntityTypeEnum?SharedEntityType = null, SharedEntity SharedEntity = null, MemberTypeEnum?MemberType = null, SharedEntity Member = null, List <CreateShareRequestMember> Members = null)
        {
            // to ensure "SharedEntityType" is required (not null)
            if (SharedEntityType == null)
            {
                throw new InvalidDataException("SharedEntityType is a required property for CreateShareRequest and cannot be null");
            }
            else
            {
                this.SharedEntityType = SharedEntityType;
            }



            // to ensure "SharedEntity" is required (not null)
            if (SharedEntity == null)
            {
                throw new InvalidDataException("SharedEntity is a required property for CreateShareRequest and cannot be null");
            }
            else
            {
                this.SharedEntity = SharedEntity;
            }



            this.MemberType = MemberType;



            this.Member = Member;



            this.Members = Members;
        }