OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
295 stars 145 forks source link

"This file was generated by a tool and any changes will be overwritten" #209

Closed adamsipos closed 7 years ago

adamsipos commented 7 years ago

I understand it is possible to extend core functionality through the partial classes in the Extensions folders, however for some methods it'd be better to modify the core classes. For example, I'd like to add the Top variable to IItemRequestBuilder.Delta(). Could you please let me know how these classes are generated? Thanks!

daboxu commented 7 years ago

hi @adamsipos , the file is generated by a tool and template we maintained internally so if you are requesting for missing properties on the item, feel free to open an issue for it. And for your delta case, I believe we have already support it. You can build a request like:

var result = await this.oneDriveClient.Drive.Items[this.CurrentFolder.Id].Delta(null).Request().Top(2).GetAsync();

to get two items back. The interface is here.

Srusti-Thakkar commented 7 years ago

@daboxu Can you tell me How to work with Delta Request for Personal Account in c#? If you have any example then post it please.

daboxu commented 7 years ago

@Srusti-Thakkar just in about comment:

var result = await this.oneDriveClient.Drive.Items[this.CurrentFolder.Id].Delta(null).Request().GetAsync();