// New creates a new to do list client
func New(transport client.Transport, formats strfmt.Registry) *ToDoList {
	cli := new(ToDoList)

	cli.Todos = todos.New(transport, formats)

	return cli
}
Пример #2
0
// New creates a new todo list client
func New(transport runtime.ClientTransport, formats strfmt.Registry) *TodoList {
	cli := new(TodoList)
	cli.Transport = transport

	cli.Todos = todos.New(transport, formats)

	return cli
}
// New creates a new simple to do list API client
func New(transport client.Transport, formats strfmt.Registry) *SimpleToDoListAPI {
	cli := new(SimpleToDoListAPI)
	cli.Transport = transport

	cli.Todos = todos.New(transport, formats)

	return cli
}