Exemplo n.º 1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="AddMember" /> class.</para>
        /// </summary>
        /// <param name="member">User which should be added to the Paper doc. Specify only
        /// email address or Dropbox account ID.</param>
        /// <param name="permissionLevel">Permission for the user.</param>
        public AddMember(global::Dropbox.Api.Sharing.MemberSelector member,
                         PaperDocPermissionLevel permissionLevel = null)
        {
            if (member == null)
            {
                throw new sys.ArgumentNullException("member");
            }

            if (permissionLevel == null)
            {
                permissionLevel = global::Dropbox.Api.Paper.PaperDocPermissionLevel.Edit.Instance;
            }
            this.Member          = member;
            this.PermissionLevel = permissionLevel;
        }
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="InviteeInfoWithPermissionLevel"
        /// /> class.</para>
        /// </summary>
        /// <param name="invitee">Email address invited to the Paper doc.</param>
        /// <param name="permissionLevel">Permission level for the invitee.</param>
        public InviteeInfoWithPermissionLevel(global::Dropbox.Api.Sharing.InviteeInfo invitee,
                                              PaperDocPermissionLevel permissionLevel)
        {
            if (invitee == null)
            {
                throw new sys.ArgumentNullException("invitee");
            }

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

            this.Invitee         = invitee;
            this.PermissionLevel = permissionLevel;
        }
Exemplo n.º 3
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="UserInfoWithPermissionLevel" />
        /// class.</para>
        /// </summary>
        /// <param name="user">User shared on the Paper doc.</param>
        /// <param name="permissionLevel">Permission level for the user.</param>
        public UserInfoWithPermissionLevel(Dropbox.Api.Sharing.UserInfo user,
                                           PaperDocPermissionLevel permissionLevel)
        {
            if (user == null)
            {
                throw new sys.ArgumentNullException("user");
            }

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

            this.User            = user;
            this.PermissionLevel = permissionLevel;
        }