GetCommandId returns the ID of the last level corresponding to the node ID.
()
| 80 | // GetCommandId returns the ID of the last level |
| 81 | // corresponding to the node ID. |
| 82 | func (label *Label) GetCommandId() int { |
| 83 | if len(label.LevelsID) > 0 { |
| 84 | return label.LevelsID[len(label.LevelsID)-1] |
| 85 | } |
| 86 | return 0 |
| 87 | } |
| 88 | |
| 89 | // GetTopLevelName returns the name of the first level |
| 90 | // corresponding to the top level in hierarchy. |
no outgoing calls