https://mattermost.atlassian.net/browse/MM-22051 ```release-note Removed the following methods/functions: (ad *AccessData) ToJson() (ar *AccessResponse) ToJson() (ar *AnalyticsRow) ToJson() (ar AnalyticsRows) ToJson() (o *Audit) ToJson() (o Audits) ToJson() (ad *AuthData) ToJson() (ar *AuthorizeRequest) ToJson() (o *ChannelPatch) ToJson() (o *ChannelsWithCount) ToJson() (o *ChannelCounts) ToJson() (o *ChannelData) ToJson() (o *ChannelMembers) ToJson() (o *ChannelUnread) ToJson() (o *ChannelUnreadAt) ToJson() (o *ChannelStats) ToJson() (o *ChannelView) ToJson() (o *ChannelViewResponse) ToJson() (o *ClusterDiscovery) ToJson() (ci *ClusterInfo) ToJson() (cs *ClusterStats) ToJson() (o *Command) ToJson() CommandListToJson(l []*Command) string (o *CommandArgs) ToJson() (cmr *CommandMoveRequest) ToJson() (o *CommandResponse) ToJson() (c *Compliance) ToJson() (c Compliances) ToJson() (o *Config) ToJson() EmojiListToJson(emojiList []*Emoji) ```
33 строки
800 B
Go
33 строки
800 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package model
|
|
|
|
import (
|
|
"encoding/json"
|
|
"io"
|
|
)
|
|
|
|
type ChannelView struct {
|
|
ChannelId string `json:"channel_id"`
|
|
PrevChannelId string `json:"prev_channel_id"`
|
|
CollapsedThreadsSupported bool `json:"collapsed_threads_supported"`
|
|
}
|
|
|
|
func ChannelViewFromJson(data io.Reader) *ChannelView {
|
|
var o *ChannelView
|
|
json.NewDecoder(data).Decode(&o)
|
|
return o
|
|
}
|
|
|
|
type ChannelViewResponse struct {
|
|
Status string `json:"status"`
|
|
LastViewedAtTimes map[string]int64 `json:"last_viewed_at_times"`
|
|
}
|
|
|
|
func ChannelViewResponseFromJson(data io.Reader) *ChannelViewResponse {
|
|
var o *ChannelViewResponse
|
|
json.NewDecoder(data).Decode(&o)
|
|
return o
|
|
}
|