Represents the MultiShare object.
Ejemplo n.º 1
0
            /// <summary>
            /// Builds the Multishare object with the set fields.
            /// </summary>
            /// <returns> the multi share </returns>
            public virtual MultiShare Build()
            {
                if (users == null || accessLevel == null)
                {
                    throw new MemberAccessException("A user, access level and message are required.");
                }

                MultiShare multiShare = new MultiShare();

                multiShare.users       = users;
                multiShare.accessLevel = accessLevel;
                multiShare.subject     = subject;
                multiShare.message     = message;
                multiShare.ccMe        = ccMe;
                return(multiShare);
            }
            /// <summary>
            /// Builds the Multishare object with the set fields.
            /// </summary>
            /// <returns> the multi share </returns>
            public virtual MultiShare Build()
            {
                if (users == null || accessLevel == null)
                {
                    throw new MemberAccessException("A user, access level and message are required.");
                }

                MultiShare multiShare = new MultiShare();
                multiShare.users = users;
                multiShare.accessLevel = accessLevel;
                multiShare.subject = subject;
                multiShare.message = message;
                multiShare.ccMe = ccMe;
                return multiShare;
            }