Skip to content

Update EdgeMultiplay to support EdgeEvents#22

Open
ah1053 wants to merge 4 commits intoedge-eventsfrom
support-edge-events
Open

Update EdgeMultiplay to support EdgeEvents#22
ah1053 wants to merge 4 commits intoedge-eventsfrom
support-edge-events

Conversation

@ah1053
Copy link
Copy Markdown
Contributor

@ah1053 ah1053 commented Jul 10, 2021

  1. Add link.xml missing from the C# gRPC binary.
  2. Add DictionaryToHashtable() and HashtableToDictionary() missing from the C# gRPC binary.
  3. Add EdgeEventsExample to to EdgeManager.

@ah1053 ah1053 marked this pull request as ready for review July 10, 2021 00:25
Copy link
Copy Markdown

@franklin-huang-mobiledgex franklin-huang-mobiledgex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments on Dict and Hashtable conversion functions

{
Dictionary<string, string> tags = new Dictionary<string, string>();
Debug.Log("HashtableToDictionary: " + htags + ", Count: " + htags.Count);
if (htags == null || htags.Count == 0)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can get rid of the check for htags.Count == 0. If htags is an empty hashtable, I think we want to return an empty dictionary instead of null (your for loop will already do that). (Same comment for the DictionaryToHashtable function)

Comment on lines +177 to +179
if (htable == null || htable.Count == 0)
{
return dict;
}
Copy link
Copy Markdown

@franklin-huang-mobiledgex franklin-huang-mobiledgex Jul 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this should return null if htable is null. The code you had before was good, you just had to remove the check for htable.Count==0

Copy link
Copy Markdown

@lgarner lgarner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gainsley gainsley force-pushed the support-edge-events branch from 8f04bb0 to d7da810 Compare April 29, 2022 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants