Skip to content

Commit b4f192a

Browse files
committed
fixed app protocols
1 parent 09ef2a2 commit b4f192a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Spixi/MiniApps/MiniApp.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,24 @@ public string getCapabilitiesAsString()
253253
}
254254
return str;
255255
}
256+
public string getProtocolsAsString()
257+
{
258+
string str = "";
259+
if (protocols == null)
260+
{
261+
return "";
262+
}
263+
264+
foreach (var proto in protocols)
265+
{
266+
if (str != "")
267+
{
268+
str += ", ";
269+
}
270+
str += proto.Value.ToString();
271+
}
272+
return str;
273+
}
256274

257275
public void writeAppInfoFile(string filePath)
258276
{
@@ -270,6 +288,8 @@ public void writeAppInfoFile(string filePath)
270288
sb.AppendLine($"checksum = {checksum}");
271289
var capabilities_str = getCapabilitiesAsString();
272290
sb.AppendLine($"capabilities = {capabilities_str}");
291+
var protocols_str = getProtocolsAsString();
292+
sb.AppendLine($"protocols = {protocols_str}");
273293
sb.AppendLine($"minUsers = {minUsers}");
274294
sb.AppendLine($"maxUsers = {maxUsers}");
275295

0 commit comments

Comments
 (0)