I am currently trying to get team messages using the ListTeamChatRequest. I can successfully retrieve messages there through the test harness but with C# code, an error is being given to me by VisualStudio that messages is not a part of the response of the ListTeamChatRequest.
And here's the error that VisualStudio is giving me:
Type `GameSparks.Api.Responses.ListTeamChatResponse' does not contain a definition for `messages' and no extension method `messages' of type `GameSparks.Api.Responses.ListTeamChatResponse' could be found. Are you missing an assembly reference?
Best Answer
C
Christian Joseph Delgado
said
almost 6 years ago
Hi,
Thank you for replying. After inspecting stuff. I found out that there was an available update for the SDK. I am now using version 5.5.3.204 and the problem was fixed.
1. I noticed that you set the Entry Count to 0. This will return no messages. Can you try setting this to a number greater than 0?
2. Using the Visual Studio debugger, can you inspect the structure of the GSData scriptData object?
-Pádraig
C
Christian Joseph Delgado
said
almost 6 years ago
Answer
Hi,
Thank you for replying. After inspecting stuff. I found out that there was an available update for the SDK. I am now using version 5.5.3.204 and the problem was fixed.
Christian Joseph Delgado
Hi,
I am currently trying to get team messages using the ListTeamChatRequest. I can successfully retrieve messages there through the test harness but with C# code, an error is being given to me by VisualStudio that messages is not a part of the response of the ListTeamChatRequest.
Here's a sample of the code:
And here's the error that VisualStudio is giving me:
Type `GameSparks.Api.Responses.ListTeamChatResponse' does not contain a definition for `messages' and no extension method `messages' of type `GameSparks.Api.Responses.ListTeamChatResponse' could be found. Are you missing an assembly reference?
Hi,
Thank you for replying. After inspecting stuff. I found out that there was an available update for the SDK. I am now using version 5.5.3.204 and the problem was fixed.
Here's my working code now:
Players in my game can now send messages. Thank you very much!
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstCustomer Support
Hi Christian,
1. I noticed that you set the Entry Count to 0. This will return no messages. Can you try setting this to a number greater than 0?
2. Using the Visual Studio debugger, can you inspect the structure of the GSData scriptData object?
-Pádraig
Christian Joseph Delgado
Hi,
Thank you for replying. After inspecting stuff. I found out that there was an available update for the SDK. I am now using version 5.5.3.204 and the problem was fixed.
Here's my working code now:
Players in my game can now send messages. Thank you very much!
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2487 topics