(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool)
| 163 | } |
| 164 | |
| 165 | func httpPutBreakTimer(timeoutInMinutes int, room string, user string, timerService string, disableSSLVerification bool) error { |
| 166 | putBody, _ := json.Marshal(map[string]interface{}{ |
| 167 | "breaktimer": timeoutInMinutes, |
| 168 | "user": user, |
| 169 | }) |
| 170 | client := httpclient.CreateHttpClient(disableSSLVerification) |
| 171 | _, err := client.SendRequest(putBody, "PUT", timerService+room) |
| 172 | return err |
| 173 | } |
| 174 | |
| 175 | func getSleepCommand(timeoutInSeconds int) string { |
| 176 | return fmt.Sprintf("sleep %d", timeoutInSeconds) |
no test coverage detected