From 64cfb815dfb9be05161add1f09b595f3d2058491 Mon Sep 17 00:00:00 2001 From: DmitryZagorulko Date: Wed, 5 Dec 2018 10:57:45 +0300 Subject: [PATCH] add MaxCharsCount in channel settings --- v1/client.go | 1 + v1/client_test.go | 9 +++++---- v1/types.go | 9 +++++---- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/v1/client.go b/v1/client.go index 6d6aaa4..4852e22 100644 --- a/v1/client.go +++ b/v1/client.go @@ -74,6 +74,7 @@ func (c *MgClient) TransportChannels(request Channels) ([]ChannelListItem, int, // Editing: ChannelFeatureBoth, // Quoting: ChannelFeatureReceive, // Deleting: ChannelFeatureSend, +// MaxCharsCount: 2000, // }, // Product: Product{ // Creating: ChannelFeatureSend, diff --git a/v1/client_test.go b/v1/client_test.go index 3311e7e..6322761 100644 --- a/v1/client_test.go +++ b/v1/client_test.go @@ -44,10 +44,11 @@ func TestMgClient_ActivateTransportChannel(t *testing.T) { Read: ChannelFeatureReceive, }, Text: ChannelSettingsText{ - Creating: ChannelFeatureBoth, - Editing: ChannelFeatureSend, - Quoting: ChannelFeatureReceive, - Deleting: ChannelFeatureBoth, + Creating: ChannelFeatureBoth, + Editing: ChannelFeatureSend, + Quoting: ChannelFeatureReceive, + Deleting: ChannelFeatureBoth, + MaxCharsCount: 2000, }, Product: Product{ Creating: ChannelFeatureSend, diff --git a/v1/types.go b/v1/types.go index a31ac0a..b283d44 100644 --- a/v1/types.go +++ b/v1/types.go @@ -96,10 +96,11 @@ type Status struct { // ChannelSettingsText struct type ChannelSettingsText struct { - Creating string `json:"creating"` - Editing string `json:"editing"` - Quoting string `json:"quoting"` - Deleting string `json:"deleting"` + Creating string `json:"creating"` + Editing string `json:"editing"` + Quoting string `json:"quoting"` + Deleting string `json:"deleting"` + MaxCharsCount uint16 `json:"max_chars_count"` } // ChannelSettingsFilesBase struct