func (h *Handler) GetClientChannels(tkn string, channelStatus,
	serviceStatus []string, offset,
	limit uint) (*GetClientChannelsResult, error) {
	logger := h.logger.Add("method", "GetClientChannels",
		"channelStatus", channelStatus, "serviceStatus", serviceStatus)

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	chs, total, err := h.getChannels(logger, channelStatus, serviceStatus,
		clientChannelsCondition, offset, limit)
	if err != nil {
		return nil, err
	}

	items := make([]ClientChannelInfo, 0)
	for _, channel := range chs {
		result, err := h.createClientChannelResult(logger, &channel)
		if err != nil {
			return nil, err
		}

		items = append(items, *result)
	}

	return &GetClientChannelsResult{items, total}, nil
}
func (h *Handler) GetClientChannels(tkn string, channelStatus,
	serviceStatus []string, offset,
	limit uint) (*GetClientChannelsResult, error) {
	logger := h.logger.Add("method", "GetClientChannels",
		"channelStatus", channelStatus, "serviceStatus", serviceStatus)

	if !h.token.Check(tkn) {
		logger.Warn("access denied")
		return nil, ErrAccessDenied
	}

	chs, total, err := h.getChannels(logger, channelStatus, serviceStatus,
		clientChannelsCondition, offset, limit)
	if err != nil {
		return nil, err
	}

	items := make([]ClientChannelInfo, 0)
	for _, channel := range chs {
		result, err := h.createClientChannelResult(logger, &channel)
		if err != nil {
			return nil, err
		}

		items = append(items, *result)
	}

	return &GetClientChannelsResult{items, total}, nil
}
func ( h * Handler ) GetClientChannels ( tkn string , channelStatus , serviceStatus [ ] string , offset , limit uint ) ( * GetClientChannelsResult , error ) { logger := h . logger . Add ( " " , " " , " " , channelStatus , " " , serviceStatus ) if ! h . token . Check ( tkn ) { logger . Warn ( " " ) return nil , ErrAccessDenied } chs , total , err := h . getChannels ( logger , channelStatus , serviceStatus , clientChannelsCondition , offset , limit ) if err != nil { return nil , err } items := make ( [ ] ClientChannelInfo , 0 ) for _ , channel := range chs { result , err := h . createClientChannelResult ( logger , & channel ) if err != nil { return nil , err } items = append ( items , * result ) } return & GetClientChannelsResult { items , total } , nil }
// GetClientChannels gets client channel information.
GetClientChannels gets client channel information .