mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-18 16:17:03 +00:00
refactor: make pmapi.Client the interface
This commit is contained in:
@ -31,7 +31,7 @@ type ConversationsCountsRes struct {
|
||||
type Conversation struct{}
|
||||
|
||||
// CountConversations counts conversations by label.
|
||||
func (c *Client) CountConversations(addressID string) (counts []*ConversationsCount, err error) {
|
||||
func (c *client) CountConversations(addressID string) (counts []*ConversationsCount, err error) {
|
||||
reqURL := "/conversations/count"
|
||||
if addressID != "" {
|
||||
reqURL += ("?AddressID=" + addressID)
|
||||
|
||||
Reference in New Issue
Block a user