Skip to content

Commit

Permalink
Version 1.6.5 (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgiacomini authored Oct 16, 2019
1 parent 0da6442 commit aad8781
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 2 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Release notes
# 1.6.5
* Add overload with long type for AddQueryParameter method

# 1.6.4
* Add new nuget tags

Expand Down
16 changes: 16 additions & 0 deletions Tiny.RestClient/Request/IParameterRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,21 @@ public interface IParameterRequest : IExecutableRequest
/// <param name="value">The value.</param>
/// <returns>The current request.</returns>
IParameterRequest AddQueryParameter(string key, float? value);

/// <summary>
/// Adds the query parameter.
/// </summary>
/// <param name="key">The key.</param>
/// <param name="value">The value.</param>
/// <returns>The current request.</returns>
IParameterRequest AddQueryParameter(string key, long? value);

/// <summary>
/// Adds the query parameter.
/// </summary>
/// <param name="key">The key.</param>
/// <param name="value">The value.</param>
/// <returns>The current request.</returns>
IParameterRequest AddQueryParameter(string key, long value);
}
}
22 changes: 22 additions & 0 deletions Tiny.RestClient/Request/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,28 @@ public IParameterRequest AddQueryParameter(string key, float? value)

return this;
}

/// <inheritdoc/>
public IParameterRequest AddQueryParameter(string key, long value)
{
return AddQueryParameter(key, value.ToString());
}

/// <inheritdoc/>
public IParameterRequest AddQueryParameter(string key, long? value)
{
if (value.HasValue)
{
return AddQueryParameter(key, value.Value.ToString());
}
else
{
AddQueryParameter(key, string.Empty);
}

return this;
}

#endregion

/// <inheritdoc/>
Expand Down
4 changes: 2 additions & 2 deletions Tiny.RestClient/Tiny.RestClient.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard1.1;netstandard1.2;netstandard1.3;netstandard2.0;net45;net46;net47</TargetFrameworks>
<Version>1.6.4</Version>
<Version>1.6.5</Version>
<Copyright>Copyright © Jérôme Giacomini 2019</Copyright>
<NeutralLanguage>en</NeutralLanguage>
<Title>Tiny.RestClient</Title>
Expand Down Expand Up @@ -36,7 +36,7 @@
<RepositoryUrl>https://github.com/jgiacomini/Tiny.RestClient.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<MinClientVersion>3.0.3</MinClientVersion>
<PackageReleaseNotes>See release notes at https://github.com/jgiacomini/Tiny.RestClient/blob/1.6.3/RELEASE-NOTES.md</PackageReleaseNotes>
<PackageReleaseNotes>See release notes at https://github.com/jgiacomini/Tiny.RestClient/blob/master/RELEASE-NOTES.md</PackageReleaseNotes>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
Expand Down
Binary file removed Tiny.RestClient/publish/Tiny.RestClient.1.6.3.nupkg
Binary file not shown.

0 comments on commit aad8781

Please sign in to comment.