Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #146 from OneDrive/special-folder-updates
Browse files Browse the repository at this point in the history
Add special folders
  • Loading branch information
cdmayer authored Aug 1, 2016
2 parents b253dbf + f5631f3 commit e5e4aa0
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/OneDriveSdk/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,14 @@ public static class Url
public const string Root = "root";

public const string AppRoot = "approot";

public const string Documents = "documents";

public const string Photos = "photos";

public const string CameraRoll = "cameraroll";

public const string Music = "music";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,41 @@ public IItemRequestBuilder AppRoot
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.AppRoot), this.Client); }
}

/// <summary>
/// Gets Documents special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Documents
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Documents), this.Client); }
}

/// <summary>
/// Gets Photos special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Photos
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Photos), this.Client); }
}

/// <summary>
/// Gets Camera Roll special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder CameraRoll
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.CameraRoll), this.Client); }
}

/// <summary>
/// Gets Music special folder item request builder.
/// <returns>The item request builder.</returns>
/// </summary>
public IItemRequestBuilder Music
{
get { return new ItemRequestBuilder(this.AppendSegmentToRequestUrl(Constants.Url.Music), this.Client); }
}
}
}
}

0 comments on commit e5e4aa0

Please sign in to comment.