Skip to content

Commit

Permalink
use mode string value not enum ... (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
KircMax authored Jan 29, 2025
1 parent 85bf82a commit 0f3a3cb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ public virtual IApiRequest GetApiLoginRequest(string userName, string password,
{
requestParams.Add("include_web_application_cookie", include_web_application_cookie);
}
if(mode != null)
if (mode != null)
{
requestParams.Add("mode", mode.ToString().ToLower());
}
Expand Down Expand Up @@ -1033,7 +1033,7 @@ public IApiRequest GetApiProjectReadLanguagesRequest(ApiReadLanguagesMode? mode
{
string jsonRpcReq = jsonRpc ?? JsonRpcVersion;
string idReq = id ?? RequestIdGenerator.Generate();
return new ApiRequest("Project.ReadLanguages", jsonRpcReq, idReq, mode == null ? null : new Dictionary<string, object>() { { "mode", mode } });
return new ApiRequest("Project.ReadLanguages", jsonRpcReq, idReq, mode == null ? null : new Dictionary<string, object>() { { "mode", mode.ToString().ToLower() } });
}

/// <summary>
Expand Down Expand Up @@ -1212,7 +1212,7 @@ public IApiRequest GetTechnologyReadRequest(string var, ApiPlcDataRepresentation
Dictionary<string, object> requestParams = new Dictionary<string, object>() { { "var", var } };
if (mode != null)
{
requestParams.Add("mode", mode);
requestParams.Add("mode", mode.ToString().ToLower());
}
return new ApiRequest("Technology.Read", jsonRpcReq, idReq, requestParams);
}
Expand Down

0 comments on commit 0f3a3cb

Please sign in to comment.