1
0
mirror of synced 2024-11-25 06:26:03 +03:00

Merge pull request #39 from DmitryZagorulko/master

add MaxCharsCount in channel settings
This commit is contained in:
Alex Lushpai 2018-12-05 16:34:45 +03:00 committed by GitHub
commit 6d842206f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
// Quoting: ChannelFeatureReceive,
// Deleting: ChannelFeatureSend,
// MaxCharsCount: 2000,
// },
// Product: Product{
// Creating: ChannelFeatureSend,

View File

@ -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,

View File

@ -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