Skip to content

Commit 1139a4c

Browse files
committed
refactor(constants): Changed constants to static readonly per codacy
1 parent ab569b6 commit 1139a4c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/IBM.WatsonDeveloperCloud/Constants.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ public class Constants
2626
/// The version number for this SDK build. Added to the header in
2727
/// each request as `User-Agent`.
2828
/// </summary>
29-
public const string SDK_VERSION = "watson-apis-dotnet-sdk/2.8.0";
29+
public static readonly string SDK_VERSION = "watson-apis-dotnet-sdk/2.8.0";
3030
/// <summary>
3131
/// A constant used to access custom request headers in the dynamic
3232
/// customData object.
3333
/// </summary>
34-
public const string CUSTOM_REQUEST_HEADERS = "custom_request_headers";
34+
public static readonly string CUSTOM_REQUEST_HEADERS = "custom_request_headers";
3535
/// <summary>
3636
/// A constant used to access response headers in the dynamic
3737
/// customData object.
3838
/// </summary>
39-
public const string RESPONSE_HEADERS = "response_headers";
39+
public static readonly string RESPONSE_HEADERS = "response_headers";
4040
/// <summary>
4141
/// A constnat used to access response json in the dynamic customData
4242
/// object.
4343
/// </summary>
44-
public const string JSON = "json";
44+
public static readonly string JSON = "json";
4545
}
4646
}

0 commit comments

Comments
 (0)