mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-27 13:48:49 +08:00

* NOISSUE - Add readers pagination in SDK Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com> * Fix reviews Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
36 lines
776 B
Go
36 lines
776 B
Go
//
|
|
// Copyright (c) 2018
|
|
// Mainflux
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package sdk
|
|
|
|
import "github.com/mainflux/mainflux"
|
|
|
|
type tokenRes struct {
|
|
Token string `json:"token,omitempty"`
|
|
}
|
|
|
|
type thingsPageRes struct {
|
|
Things []Thing `json:"things,omitempty"`
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
}
|
|
|
|
type channelsPageRes struct {
|
|
Channels []Channel `json:"channels,omitempty"`
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
}
|
|
|
|
type messagesPageRes struct {
|
|
Total uint64 `json:"total"`
|
|
Offset uint64 `json:"offset"`
|
|
Limit uint64 `json:"limit"`
|
|
Messages []mainflux.Message `json:"messages,omitempty"`
|
|
}
|