Skip to content

Make "ApiRpc" properties publicly accessible.#54

Open
jack-bot-slims wants to merge 1 commit into
heroiclabs:masterfrom
jack-bot-slims:public-apirpc-properties
Open

Make "ApiRpc" properties publicly accessible.#54
jack-bot-slims wants to merge 1 commit into
heroiclabs:masterfrom
jack-bot-slims:public-apirpc-properties

Conversation

@jack-bot-slims
Copy link
Copy Markdown

Mirrors #51 for ApiRpc. The struct is declared public but its properties (id, payload, httpKey) default to internal, so callers of client.rpc(session:id:payload:) cannot read .payload (or the others) from outside the Nakama module.

Also makes the memberwise init public so ApiRpc can be constructed externally (e.g. for tests/fakes), matching the intent of the public type declaration.

Closes #53.

Closes heroiclabs#53

Co-Authored-By: Hendrik Schäfer <hendrik@musa.guide>
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 27, 2026

CLA assistant check
All committers have signed the CLA.

@jack-bot-slims
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

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.

Swift model members are internal but should be public?

2 participants