// ------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
// ------------------------------------------------------------------------------
namespace Microsoft.Graph
{
///
/// The base request builder class.
///
public class BaseRequestBuilder
{
///
/// Constructs a new .
///
/// The URL for the built request.
/// The for handling requests.
public BaseRequestBuilder(string requestUrl, IBaseClient client)
{
this.Client = client;
this.RequestUrl = requestUrl;
}
///
/// Gets the for handling requests.
///
public IBaseClient Client { get; private set; }
///
/// Gets the URL for the built request, without query string.
///
public string RequestUrl { get; internal set; }
///
/// Gets a URL that is the request builder's request URL with the segment appended.
///
/// The segment to append to the request URL.
/// A URL that is the request builder's request URL with the segment appended.
public string AppendSegmentToRequestUrl(string urlSegment)
{
return string.Format("{0}/{1}", this.RequestUrl, urlSegment);
}
}
}