Complete incidents functionality #97

Merged
amigan merged 27 commits from incidentsEditRecord into trunk 2025-01-05 22:11:47 -05:00
Showing only changes of commit 59513572ba - Show all commits

View file

@ -1,6 +1,7 @@
package calls
import (
"encoding/json"
"fmt"
"time"
@ -29,6 +30,10 @@ func (d CallDuration) MsInt32Ptr() *int32 {
return &i
}
func (d CallDuration) MarshalJSON() ([]byte, error) {
return json.Marshal(d.Duration().Milliseconds())
}
func (d CallDuration) Seconds() int32 {
return int32(time.Duration(d).Seconds())
}