From f176714915da271a51f5a2875566361121647a9d Mon Sep 17 00:00:00 2001 From: tudor <7089284+tudddorrr@users.noreply.github.com> Date: Mon, 22 Dec 2025 20:08:03 +0000 Subject: [PATCH 1/2] add channel search option --- Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs b/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs index ec78474..e20e4cf 100644 --- a/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs +++ b/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs @@ -11,12 +11,14 @@ public class GetChannelsOptions public int page = 0; public string propKey = ""; public string propValue = ""; + public string search = ""; public string ToQueryString() { var query = new Dictionary { ["page"] = page.ToString() }; if (!string.IsNullOrEmpty(propKey)) query["propKey"] = propKey; if (!string.IsNullOrEmpty(propValue)) query["propValue"] = propValue; + if (!string.IsNullOrEmpty(search)) query["search"] = search; return string.Join("&", query.Select((param) => $"{param.Key}={param.Value}")); } From 6ce327d4c03438154a49c0ab2fd758305c6bf1b2 Mon Sep 17 00:00:00 2001 From: tudor <7089284+tudddorrr@users.noreply.github.com> Date: Mon, 22 Dec 2025 20:19:26 +0000 Subject: [PATCH 2/2] trim and escape search params --- Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs b/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs index e20e4cf..d5bb90e 100644 --- a/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs +++ b/Assets/Talo Game Services/Talo/Runtime/APIs/ChannelsAPI.cs @@ -20,7 +20,7 @@ public string ToQueryString() if (!string.IsNullOrEmpty(propValue)) query["propValue"] = propValue; if (!string.IsNullOrEmpty(search)) query["search"] = search; - return string.Join("&", query.Select((param) => $"{param.Key}={param.Value}")); + return string.Join("&", query.Select((param) => $"{param.Key}={Uri.EscapeDataString(param.Value.Trim())}")); } } @@ -35,7 +35,7 @@ public string ToQueryString() if (!string.IsNullOrEmpty(propKey)) query["propKey"] = propKey; if (!string.IsNullOrEmpty(propValue)) query["propValue"] = propValue; - return string.Join("&", query.Select((param) => $"{param.Key}={param.Value}")); + return string.Join("&", query.Select((param) => $"{param.Key}={Uri.EscapeDataString(param.Value.Trim())}")); } } @@ -59,7 +59,7 @@ public string ToQueryString() if (!string.IsNullOrEmpty(propValue)) query["propValue"] = propValue; if (!string.IsNullOrEmpty(playerGroupId)) query["playerGroupId"] = playerGroupId; - return string.Join("&", query.Select((param) => $"{param.Key}={param.Value}")); + return string.Join("&", query.Select((param) => $"{param.Key}={Uri.EscapeDataString(param.Value.Trim())}")); } }