Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the proper way to send objects as arguments #49

Open
st-gwerner opened this issue Jan 10, 2023 · 0 comments
Open

What is the proper way to send objects as arguments #49

st-gwerner opened this issue Jan 10, 2023 · 0 comments

Comments

@st-gwerner
Copy link

st-gwerner commented Jan 10, 2023

Our SignalR implementation has a lot of functions that accept a single class instance as input, in order to allow us to extend or deprecate properties easily. What's the proper way to send them over now that signalr_flutter has been updated to use a list of strings? A C# example of a typical client-to-server function call for us would look like this:

public void UserSetProperties(UserPropertiesPacket inputs) {
    if (inputs.NewFirstName != null) dowhatever();
    ...
}

In the past, just sending a dynamic of the class worked fine. I attempted converting the object to json, but that doesn't seem to function properly.

Thanks in advance.

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

No branches or pull requests

1 participant