Knetik.KnetikClient.BuildUrl C# (CSharp) Method

BuildUrl() private method

private BuildUrl ( string path, string serviceBundle ) : string
path string
serviceBundle string
return string
        private string BuildUrl(string path, string serviceBundle)
        {
            if (serviceBundle != null)
            {
                if (serviceBundle == "") {
                    return BaseURL + Prefix + path;
                } else {
                    return BaseURL + Prefix + serviceBundle + "/" + path;
                }
            } else
            {
                return BaseURL + Prefix + DefaultServiceBundle + "/" + path;
            }
        }