1
0
mirror of synced 2025-02-16 20:23:18 +03:00

add MaxCharsCount in channel settings

This commit is contained in:
DmitryZagorulko 2018-12-05 10:57:45 +03:00
parent 2647ea0460
commit 64cfb815df
3 changed files with 11 additions and 8 deletions

View File

@ -74,6 +74,7 @@ func (c *MgClient) TransportChannels(request Channels) ([]ChannelListItem, int,
// Editing: ChannelFeatureBoth, // Editing: ChannelFeatureBoth,
// Quoting: ChannelFeatureReceive, // Quoting: ChannelFeatureReceive,
// Deleting: ChannelFeatureSend, // Deleting: ChannelFeatureSend,
// MaxCharsCount: 2000,
// }, // },
// Product: Product{ // Product: Product{
// Creating: ChannelFeatureSend, // Creating: ChannelFeatureSend,

View File

@ -48,6 +48,7 @@ func TestMgClient_ActivateTransportChannel(t *testing.T) {
Editing: ChannelFeatureSend, Editing: ChannelFeatureSend,
Quoting: ChannelFeatureReceive, Quoting: ChannelFeatureReceive,
Deleting: ChannelFeatureBoth, Deleting: ChannelFeatureBoth,
MaxCharsCount: 2000,
}, },
Product: Product{ Product: Product{
Creating: ChannelFeatureSend, Creating: ChannelFeatureSend,

View File

@ -100,6 +100,7 @@ type ChannelSettingsText struct {
Editing string `json:"editing"` Editing string `json:"editing"`
Quoting string `json:"quoting"` Quoting string `json:"quoting"`
Deleting string `json:"deleting"` Deleting string `json:"deleting"`
MaxCharsCount uint16 `json:"max_chars_count"`
} }
// ChannelSettingsFilesBase struct // ChannelSettingsFilesBase struct