2018-10-14 16:44:21 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2018
|
|
|
|
// Mainflux
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
//
|
|
|
|
|
|
|
|
package sdk
|
|
|
|
|
2019-02-06 13:57:12 +01:00
|
|
|
import "github.com/mainflux/mainflux"
|
|
|
|
|
2018-10-14 16:44:21 +02:00
|
|
|
type tokenRes struct {
|
|
|
|
Token string `json:"token,omitempty"`
|
|
|
|
}
|
|
|
|
|
2019-01-08 11:53:24 +01:00
|
|
|
type thingsPageRes struct {
|
2018-10-24 11:21:03 +02:00
|
|
|
Things []Thing `json:"things,omitempty"`
|
2019-01-08 11:53:24 +01:00
|
|
|
Total uint64 `json:"total"`
|
|
|
|
Offset uint64 `json:"offset"`
|
|
|
|
Limit uint64 `json:"limit"`
|
2018-10-14 16:44:21 +02:00
|
|
|
}
|
|
|
|
|
2019-01-08 11:53:24 +01:00
|
|
|
type channelsPageRes struct {
|
2018-10-24 11:21:03 +02:00
|
|
|
Channels []Channel `json:"channels,omitempty"`
|
2019-01-08 11:53:24 +01:00
|
|
|
Total uint64 `json:"total"`
|
|
|
|
Offset uint64 `json:"offset"`
|
|
|
|
Limit uint64 `json:"limit"`
|
2018-10-14 16:44:21 +02:00
|
|
|
}
|
2018-12-18 22:04:34 +01:00
|
|
|
|
|
|
|
type listMessagesRes struct {
|
2019-02-06 13:57:12 +01:00
|
|
|
Messages []mainflux.Message `json:"messages,omitempty"`
|
2018-12-18 22:04:34 +01:00
|
|
|
}
|