(what string)
| 746 | } |
| 747 | |
| 748 | func pbInfoNoteWhatSerialize(what string) pbx.InfoNote { |
| 749 | var out pbx.InfoNote |
| 750 | switch what { |
| 751 | case "kp": |
| 752 | out = pbx.InfoNote_KP |
| 753 | case "read": |
| 754 | out = pbx.InfoNote_READ |
| 755 | case "recv": |
| 756 | out = pbx.InfoNote_RECV |
| 757 | case "call": |
| 758 | out = pbx.InfoNote_CALL |
| 759 | default: |
| 760 | logs.Info.Println("unknown info-note.what", what) |
| 761 | } |
| 762 | return out |
| 763 | } |
| 764 | |
| 765 | func pbInfoNoteWhatDeserialize(what pbx.InfoNote) string { |
| 766 | var out string |
no test coverage detected
searching dependent graphs…