| 1 | package be.nikiroo.jvcard.remote; |
| 2 | |
| 3 | public enum Command { |
| 4 | /** VERSION of the protocol */ |
| 5 | VERSION, |
| 6 | /** TIME of the remote server in milliseconds since the Unix epoch */ |
| 7 | TIME, |
| 8 | /** STOP the communication (client stops) */ |
| 9 | STOP, |
| 10 | /** |
| 11 | * LIST all the cards on the remote server that contain the search term, |
| 12 | * or all contacts if no search term given; also add their timestamps |
| 13 | */ |
| 14 | LIST_CARD, |
| 15 | /** HELP about the protocol for interactive access */ |
| 16 | HELP, |
| 17 | /** SELECT a resource (a card) to work on */ |
| 18 | SELECT, |
| 19 | /** GET a remote card */ |
| 20 | GET_CARD, |
| 21 | /** |
| 22 | * PUT mode activation toggle for a card on the remote server (you can issue |
| 23 | * *_CONTACT commands when in PUT mode) |
| 24 | */ |
| 25 | PUT_CARD, |
| 26 | /** POST a new card to the remote server */ |
| 27 | POST_CARD, |
| 28 | /** DELETE an existing contact from the remote server */ |
| 29 | DELETE_CARD, |
| 30 | /** HASH the given contact and return the hash, or empty if not found */ |
| 31 | HASH_CONTACT, |
| 32 | /** LIST all the contacts of the current card; also add their hashes */ |
| 33 | LIST_CONTACT, |
| 34 | /** GET a remote contact */ |
| 35 | GET_CONTACT, |
| 36 | /** |
| 37 | * PUT mode activation toggle for a contact on the remote server (you can |
| 38 | * issue *_DATA commands when in PUT mode), param = uid |
| 39 | */ |
| 40 | PUT_CONTACT, |
| 41 | /** POST a new contact to the remote server */ |
| 42 | POST_CONTACT, |
| 43 | /** DELETE an existing contact from the remote server */ |
| 44 | DELETE_CONTACT, |
| 45 | /** HASH the data(s) with the given name */ |
| 46 | HASH_DATA, |
| 47 | /** LIST all the datas of the current contact; also add their hashes */ |
| 48 | LIST_DATA, |
| 49 | /** GET a (or more) remote data(s) by name */ |
| 50 | GET_DATA, |
| 51 | /** POST a new data to the remote server */ |
| 52 | POST_DATA, |
| 53 | /** DELETE an existing data from the remote server */ |
| 54 | DELETE_DATA, |
| 55 | } |