Exemplo n.º 1
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="RemovePaperDocUser" />
        /// class.</para>
        /// </summary>
        /// <param name="docId">The doc id</param>
        /// <param name="member">User which should be removed from the Paper doc. Specify only
        /// email or Dropbox account id.</param>
        public RemovePaperDocUser(string docId,
                                  Dropbox.Api.Sharing.MemberSelector member)
            : base(docId)
        {
            if (member == null)
            {
                throw new sys.ArgumentNullException("member");
            }

            this.Member = member;
        }
Exemplo n.º 2
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 or Dropbox account id.</param>
        /// <param name="permissionLevel">Permission for the user.</param>
        public AddMember(Dropbox.Api.Sharing.MemberSelector member,
                         PaperDocPermissionLevel permissionLevel = null)
        {
            if (member == null)
            {
                throw new sys.ArgumentNullException("member");
            }

            if (permissionLevel == null)
            {
                permissionLevel = Dropbox.Api.Paper.PaperDocPermissionLevel.Edit.Instance;
            }
            this.Member          = member;
            this.PermissionLevel = permissionLevel;
        }
Exemplo n.º 3
0
        /// <summary>
        /// <para>Initializes a new instance of the <see cref="AddPaperDocUserMemberResult" />
        /// class.</para>
        /// </summary>
        /// <param name="member">One of specified input members.</param>
        /// <param name="result">The outcome of the action on this member.</param>
        public AddPaperDocUserMemberResult(Dropbox.Api.Sharing.MemberSelector member,
                                           AddPaperDocUserResult result)
        {
            if (member == null)
            {
                throw new sys.ArgumentNullException("member");
            }

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

            this.Member = member;
            this.Result = result;
        }