Exemple #1
0
func (r Response) toLocalResponse() response {
	rr := response{myJson.FromGraphTask(r.Info), make([]myJson.Task, 0)}
	for _, t := range r.Tasks {
		rr.Tasks = append(rr.Tasks, myJson.FromGraphTask(t))
	}
	return rr
}
Exemple #2
0
func fromGraphTasks(t []graph.Task) file {
	f := file{make([]myJson.Task, 0)}
	for _, task := range t {
		f.Tasks = append(f.Tasks, myJson.FromGraphTask(task))
	}
	return f
}
Exemple #3
0
func (r Request) toLocalRequest() request { return request{myJson.FromGraphTask(r.Task)} }