Пример #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);
 }
 public ItemCreateSessionRequestBuilder(
     string requestUrl,
     IOneDriveClient oneDriveClient,
     ChunkedUploadSessionDescriptor item = null)
     : base(requestUrl, oneDriveClient)
 {
     this.Item = item;
 }
 /// <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));
 }
        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;
 }
     /// <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;
 
     }
 /// <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);
 }