Makes ref reachable as a command's params, i.e. sent by the caller.
(String ref)
| 61 | |
| 62 | /** Makes {@code ref} reachable as a command's params, i.e. sent by the caller. */ |
| 63 | Schema sends(String ref) { |
| 64 | String domain = Generated.domainOf(ref); |
| 65 | int n = commands.size(); |
| 66 | return command( |
| 67 | "{'domain': '" |
| 68 | + domain |
| 69 | + "', 'method': '" |
| 70 | + domain |
| 71 | + ".send" |
| 72 | + n |
| 73 | + "', 'name': 'send" |
| 74 | + n |
| 75 | + "', 'params': {'ref': '" |
| 76 | + ref |
| 77 | + "'}, 'result': null}"); |
| 78 | } |
| 79 | |
| 80 | /** Makes {@code ref} reachable as an event's params, i.e. received by the caller. */ |
| 81 | Schema receives(String ref) { |
no test coverage detected