Add types to in/out handler comments

This commit is contained in:
Laiteux
2025-10-31 13:10:47 +04:00
parent 8d364a7fbc
commit 29ccde97d6

View File

@@ -94,56 +94,56 @@ public class LpaBridgeProvider extends ContentProvider
switch (path) switch (path)
{ {
case "ping": case "ping":
// out: ping=pong // out: string ping=pong
rows = handlePing(args); rows = handlePing(args);
break; break;
case "cards": case "cards":
// out (many, can be empty): slotId, portId // out (many, can be empty): int slotId, int portId
rows = handleGetCards(args); rows = handleGetCards(args);
break; break;
case "profiles": case "profiles":
// in: slotId, portId // in: int slotId, int portId
// out (many, can be empty): iccid, isEnabled, name, nickname // out (many, can be empty): string iccid, bool isEnabled, string name, string nickname
rows = handleGetProfiles(args); rows = handleGetProfiles(args);
break; break;
case "activeProfile": case "activeProfile":
// in: slotId, portId // in: int slotId, int portId
// out (single, can be empty): iccid, isEnabled, name, nickname // out (single, can be empty): string iccid, bool isEnabled, string name, string nickname
rows = handleGetActiveProfile(args); rows = handleGetActiveProfile(args);
break; break;
case "downloadProfile": case "downloadProfile":
// in: (slotId, portId) AND (activationCode OR address, matchingId?, confirmationCode?) AND imei? // in: int slotId, int portId, (either {string activationCode} or {string address, string? matchingId}), string? confirmationCode, string? imei
// out (single, can be empty): iccid, isEnabled, name, nickname // out (single, can be empty): string iccid, bool isEnabled, string name, string nickname
rows = handleDownloadProfile(args); rows = handleDownloadProfile(args);
break; break;
case "deleteProfile": case "deleteProfile":
// in: slotId, portId, iccid // in: int slotId, int portId, string iccid
// out: success // out: bool success
rows = handleDeleteProfile(args); rows = handleDeleteProfile(args);
break; break;
case "enableProfile": case "enableProfile":
// in: slotId, portId, iccid, refresh(true) // in: int slotId, int portId, string iccid, bool refresh=true
// out: success // out: bool success
rows = handleEnableProfile(args); rows = handleEnableProfile(args);
break; break;
case "disableProfile": case "disableProfile":
// in: slotId, portId, iccid, refresh(true) // in: int slotId, int portId, string iccid, bool refresh=true
// out: success // out: bool success
rows = handleDisableProfile(args); rows = handleDisableProfile(args);
break; break;
case "disableActiveProfile": case "disableActiveProfile":
// in: slotId, portId, refresh(true) // in: int slotId, int portId, bool refresh=true
// out: success // out: bool success
rows = handleDisableActiveProfile(args); rows = handleDisableActiveProfile(args);
break; break;
case "switchProfile": case "switchProfile":
// in: slotId, portId, iccid, enable(true), refresh(true) // in: int slotId, int portId, string iccid, bool enable=true, bool refresh=true
// out: success // out: bool success
rows = handleSwitchProfile(args); rows = handleSwitchProfile(args);
break; break;
case "setNickname": case "setNickname":
// in: slotId, portId, iccid, nickname // in: int slotId, int portId, string iccid, string nickname
// out: success // out: bool success
rows = handleSetNickname(args); rows = handleSetNickname(args);
break; break;
default: default: