diff options
author | Ivanik <ivan170102@gmail.com> | 2021-01-29 04:25:14 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 00:25:14 +0100 |
commit | 8764be74616bde87bbbf6c32901cd9f43264d1e0 (patch) | |
tree | 88902ba17d6a6d245cadb7e0b277bee7ef424f99 /vendor/github.com/SevereCloud/vksdk/v2/object/friends.go | |
parent | 5dd15ef8e716c65accb6cd021095c0e19913d55f (diff) | |
download | matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.tar.gz matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.tar.bz2 matterbridge-msglm-8764be74616bde87bbbf6c32901cd9f43264d1e0.zip |
Add vk bridge (#1372)
* Add vk bridge
* Vk bridge attachments
* Vk bridge forwarded messages
* Vk bridge sample config and code cleanup
* Vk bridge add vendor
* Vk bridge message edit
* Vk bridge: fix fetching names of other bots
* Vk bridge: code cleanup
* Vk bridge: fix shadows declaration
* Vk bridge: remove UseFileURL
Diffstat (limited to 'vendor/github.com/SevereCloud/vksdk/v2/object/friends.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/friends.go | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/friends.go b/vendor/github.com/SevereCloud/vksdk/v2/object/friends.go new file mode 100644 index 00000000..4f6866c3 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/friends.go @@ -0,0 +1,63 @@ +package object // import "github.com/SevereCloud/vksdk/v2/object" + +// FriendsFriendStatus FriendStatus type. +const ( + FriendsStatusNotFriend = iota // not a friend + FriendsStatusOutComingRequest // out coming request + FriendsStatusInComingRequest // incoming request + FriendsStatusIsFriend // is friend +) + +// FriendsFriendStatus struct. +type FriendsFriendStatus struct { + FriendStatus int `json:"friend_status"` + ReadState BaseBoolInt `json:"read_state"` // Information whether request is unviewed + RequestMessage string `json:"request_message"` // Message sent with request + Sign string `json:"sign"` // MD5 hash for the result validation + UserID int `json:"user_id"` // User ID +} + +// FriendsFriendsList struct. +type FriendsFriendsList struct { + ID int `json:"id"` // List ID + Name string `json:"name"` // List title +} + +// type friendsMutualFriend struct { +// CommonCount int `json:"common_count"` // Total mutual friends number +// CommonFriends []int `json:"common_friends"` +// ID int `json:"id"` // User ID +// } + +// FriendsRequests struct. +type FriendsRequests struct { + UsersUser + From string `json:"from"` // ID of the user by whom friend has been suggested + Mutual FriendsRequestsMutual `json:"mutual"` + UserID int `json:"user_id"` // User ID + TrackCode string `json:"track_code"` +} + +// FriendsRequestsMutual struct. +type FriendsRequestsMutual struct { + Count int `json:"count"` // Total mutual friends number + Users []int `json:"users"` +} + +// FriendsRequestsXtrMessage struct. +type FriendsRequestsXtrMessage struct { + FriendsRequests + Message string `json:"message"` // Message sent with a request +} + +// FriendsUserXtrLists struct. +type FriendsUserXtrLists struct { + UsersUser + Lists []int `json:"lists"` // IDs of friend lists with user +} + +// FriendsUserXtrPhone struct. +type FriendsUserXtrPhone struct { + UsersUser + Phone string `json:"phone"` // User phone +} |