-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
gifts.go
37 lines (31 loc) · 781 Bytes
/
gifts.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package params // import "github.com/SevereCloud/vksdk/v2/api/params"
import (
"github.com/SevereCloud/vksdk/v2/api"
)
// GiftsGetBuilder builder.
//
// Returns a list of user gifts.
//
// https://vk.com/dev/gifts.get
type GiftsGetBuilder struct {
api.Params
}
// NewGiftsGetBuilder func.
func NewGiftsGetBuilder() *GiftsGetBuilder {
return &GiftsGetBuilder{api.Params{}}
}
// UserID parameter.
func (b *GiftsGetBuilder) UserID(v int) *GiftsGetBuilder {
b.Params["user_id"] = v
return b
}
// Count number of gifts to return.
func (b *GiftsGetBuilder) Count(v int) *GiftsGetBuilder {
b.Params["count"] = v
return b
}
// Offset needed to return a specific subset of results.
func (b *GiftsGetBuilder) Offset(v int) *GiftsGetBuilder {
b.Params["offset"] = v
return b
}