Merge pull request #39 from DmitryZagorulko/master
add MaxCharsCount in channel settings
This commit is contained in:
commit
6d842206f2
@ -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,
|
||||||
|
@ -44,10 +44,11 @@ func TestMgClient_ActivateTransportChannel(t *testing.T) {
|
|||||||
Read: ChannelFeatureReceive,
|
Read: ChannelFeatureReceive,
|
||||||
},
|
},
|
||||||
Text: ChannelSettingsText{
|
Text: ChannelSettingsText{
|
||||||
Creating: ChannelFeatureBoth,
|
Creating: ChannelFeatureBoth,
|
||||||
Editing: ChannelFeatureSend,
|
Editing: ChannelFeatureSend,
|
||||||
Quoting: ChannelFeatureReceive,
|
Quoting: ChannelFeatureReceive,
|
||||||
Deleting: ChannelFeatureBoth,
|
Deleting: ChannelFeatureBoth,
|
||||||
|
MaxCharsCount: 2000,
|
||||||
},
|
},
|
||||||
Product: Product{
|
Product: Product{
|
||||||
Creating: ChannelFeatureSend,
|
Creating: ChannelFeatureSend,
|
||||||
|
@ -96,10 +96,11 @@ type Status struct {
|
|||||||
|
|
||||||
// ChannelSettingsText struct
|
// ChannelSettingsText struct
|
||||||
type ChannelSettingsText struct {
|
type ChannelSettingsText struct {
|
||||||
Creating string `json:"creating"`
|
Creating string `json:"creating"`
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user