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

change how save file actually works #120

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

change how save file actually works #120

wants to merge 5 commits into from

Conversation

ImUrX
Copy link
Member

@ImUrX ImUrX commented Aug 3, 2023

I ended up not requiring data, I deleted it because SlimeVR hasn't used this yet

@ImUrX ImUrX added Type: Enhancement Adds or improves a feature Area: Application Protocol Related to communication with apps like the GUI, overlay, games labels Aug 3, 2023
}

/// Response of the SaveFileNotification after the user interacts with the file save request
table SaveFileRequest {
Copy link
Collaborator

Choose a reason for hiding this comment

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

If this is a response, why is it named request?

Copy link
Member Author

Choose a reason for hiding this comment

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

Dk if to call Response calls that come from only the server or if they can also come from the client

Copy link
Collaborator

@TheButlah TheButlah Aug 4, 2023

Choose a reason for hiding this comment

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

I thought the naming we were using was this:

Request: Something that has 0-1 responses
Response: Always corresponds to a particular request
Notification: This does not correspond to any particular response, we fire and forget them for the most part.

So the notion of responding to a notification doesn't really make sense - then it would have been a request, and not a notification. Can you give an example of how this all works so I can try to better understand what to name it?

/// Response of the SaveFileNotification after the user interacts with the file save request
table SaveFileRequest {
/// ID of the SaveFile, given by SaveFileNotification
id: uint32;
Copy link
Collaborator

@TheButlah TheButlah Aug 4, 2023

Choose a reason for hiding this comment

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

All primitives should be optional/nullable.

Also, what is your opinion on this: Should it be wrapped in a struct for type safety?

Copy link
Member Author

Choose a reason for hiding this comment

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

what should be wrapped?

Copy link
Collaborator

Choose a reason for hiding this comment

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

like struct SaveFileId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Application Protocol Related to communication with apps like the GUI, overlay, games Type: Enhancement Adds or improves a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants