(timerInMinutes string)
| 144 | } |
| 145 | |
| 146 | func toMinutes(timerInMinutes string) (error, int) { |
| 147 | timeoutInMinutes, err := strconv.Atoi(timerInMinutes) |
| 148 | if err != nil || timeoutInMinutes < 1 { |
| 149 | say.Error(fmt.Sprintf("The parameter must be an integer number greater then zero")) |
| 150 | return errors.New("The parameter must be an integer number greater then zero"), 0 |
| 151 | } |
| 152 | return nil, timeoutInMinutes |
| 153 | } |
| 154 | |
| 155 | func httpPutTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error { |
| 156 | putBody, _ := json.Marshal(map[string]interface{}{ |
no test coverage detected