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/leads.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/leads.go')
-rw-r--r-- | vendor/github.com/SevereCloud/vksdk/v2/object/leads.go | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/vendor/github.com/SevereCloud/vksdk/v2/object/leads.go b/vendor/github.com/SevereCloud/vksdk/v2/object/leads.go new file mode 100644 index 00000000..a5d78fa0 --- /dev/null +++ b/vendor/github.com/SevereCloud/vksdk/v2/object/leads.go @@ -0,0 +1,55 @@ +package object // import "github.com/SevereCloud/vksdk/v2/object" + +// LeadsChecked struct. +type LeadsChecked struct { + Reason string `json:"reason"` // Reason why user can't start the lead + Result string `json:"result"` + Sid string `json:"sid"` // Session ID + StartLink string `json:"start_link"` // URL user should open to start the lead +} + +// LeadsComplete struct. +type LeadsComplete struct { + Cost int `json:"cost"` // Offer cost + Limit int `json:"limit"` // Offer limit + Spent int `json:"spent"` // Amount of spent votes + Success BaseBoolInt `json:"success"` + TestMode BaseBoolInt `json:"test_mode"` // Information whether test mode is enabled +} + +// LeadsEntry struct. +type LeadsEntry struct { + Aid int `json:"aid"` // Application ID + Comment string `json:"comment"` // Comment text + Date int `json:"date"` // Date when the action has been started in Unixtime + Sid string `json:"sid"` // Session string ID + StartDate int `json:"start_date"` // Start date in Unixtime (for status=2) + Status int `json:"status"` // Action type + TestMode BaseBoolInt `json:"test_mode"` // Information whether test mode is enabled + UID int `json:"uid"` // User ID +} + +// LeadsLead struct. +type LeadsLead struct { + Completed int `json:"completed"` // Completed offers number + Cost int `json:"cost"` // Offer cost + Days LeadsLeadDays `json:"days"` + Impressions int `json:"impressions"` // Impressions number + Limit int `json:"limit"` // Lead limit + Spent int `json:"spent"` // Amount of spent votes + Started int `json:"started"` // Started offers number +} + +// LeadsLeadDays struct. +type LeadsLeadDays struct { + Completed int `json:"completed"` // Completed offers number + Impressions int `json:"impressions"` // Impressions number + Spent int `json:"spent"` // Amount of spent votes + Started int `json:"started"` // Started offers number +} + +// LeadsStart struct. +type LeadsStart struct { + TestMode BaseBoolInt `json:"test_mode"` // Information whether test mode is enabled + VkSid string `json:"vk_sid"` // Session data +} |