コード例 #1
0
 /// <summary>
 /// Constructs a new <see cref="ItemCreateSessionRequestBuilder"/>.
 /// </summary>
 /// <param name="requestUrl">The URL for the request.</param>
 /// <param name="client">The <see cref="IBaseClient"/> for handling requests.</param>
 /// <param name="item">A item parameter for the OData method call.</param>
 public ItemCreateSessionRequestBuilder(
     string requestUrl,
     IBaseClient client,
     ChunkedUploadSessionDescriptor item)
     : base(requestUrl, client)
 {
     this.SetParameter("item", item, true);
 }
コード例 #2
0
 public ItemCreateSessionRequestBuilder(
     string requestUrl,
     IOneDriveClient oneDriveClient,
     ChunkedUploadSessionDescriptor item = null)
     : base(requestUrl, oneDriveClient)
 {
     this.Item = item;
 }
コード例 #3
0
 /// <summary>
 /// Gets the request builder for ItemCreateSession.
 /// </summary>
 /// <returns>The <see cref="IItemCreateSessionRequestBuilder"/>.</returns>
 public IItemCreateSessionRequestBuilder CreateSession(
     ChunkedUploadSessionDescriptor item)
 {
     return(new ItemCreateSessionRequestBuilder(
                this.AppendSegmentToRequestUrl("upload.createSession"),
                this.Client,
                item));
 }
コード例 #4
0
        public ItemCreateSessionRequestBuilder(
            string requestUrl,
            IOneDriveClient oneDriveClient,
            ChunkedUploadSessionDescriptor item = null)
            : base(requestUrl, oneDriveClient)
        {
            
                this.Item = item;

        }
コード例 #5
0
 /// <summary>
 /// Constructs a new ItemCreateSessionRequest.
 /// </summary>
 public ItemCreateSessionRequest(
     string requestUrl,
     IBaseClient client,
     IList <Option> options,
     ChunkedUploadSessionDescriptor item = null)
     : base(requestUrl, client, options)
 {
     this.Method           = "POST";
     this.ContentType      = "application/json";
     this.RequestBody      = new ItemCreateSessionRequestBody();
     this.RequestBody.Item = item;
 }
コード例 #6
0
     /// <summary>
     /// Constructs a new ItemCreateSessionRequest.
     /// </summary>
     public ItemCreateSessionRequest(
         string requestUrl,
         IBaseClient client,
         IList<Option> options,
         ChunkedUploadSessionDescriptor item = null)
         : base(requestUrl, client, options)
     {
 
         this.Method = "POST";
         this.ContentType = "application/json";
         this.RequestBody = new ItemCreateSessionRequestBody();
         this.RequestBody.Item = item;
 
     }
コード例 #7
0
 /// <summary>
 /// Gets the request builder for ItemCreateSession.
 /// </summary>
 /// <returns>The <see cref="IItemCreateSessionRequestBuilder"/>.</returns>
 public IItemCreateSessionRequestBuilder CreateSession(
     ChunkedUploadSessionDescriptor item)
 {
     return new ItemCreateSessionRequestBuilder(
         this.AppendSegmentToRequestUrl("upload.createSession"),
         this.Client,
         item);
 }