diff options
author | Daniel Hodan <daniel.hodan@czertbytes.de> | 2018-10-15 18:27:45 +0200 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2018-10-15 09:27:45 -0700 |
commit | a35a9b9b2d9720a3753c96a4a3a36d437e518140 (patch) | |
tree | af227ccb050f73335a901b16f85084ff1b15286b /plugin/client_rpc_generated.go | |
parent | 3087f0bc4c81a11ab3ecc08d3a37ea3d0dfda390 (diff) | |
download | chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.gz chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.tar.bz2 chat-a35a9b9b2d9720a3753c96a4a3a36d437e518140.zip |
add GetChannelsForTeamForUser to plugin api (#9646)
Diffstat (limited to 'plugin/client_rpc_generated.go')
-rw-r--r-- | plugin/client_rpc_generated.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/plugin/client_rpc_generated.go b/plugin/client_rpc_generated.go index 8522f7be4..cf865f78c 100644 --- a/plugin/client_rpc_generated.go +++ b/plugin/client_rpc_generated.go @@ -1539,6 +1539,37 @@ func (s *apiRPCServer) GetChannelByNameForTeamName(args *Z_GetChannelByNameForTe return nil } +type Z_GetChannelsForTeamForUserArgs struct { + A string + B string + C bool +} + +type Z_GetChannelsForTeamForUserReturns struct { + A *model.ChannelList + B *model.AppError +} + +func (g *apiRPCClient) GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) { + _args := &Z_GetChannelsForTeamForUserArgs{teamId, userId, includeDeleted} + _returns := &Z_GetChannelsForTeamForUserReturns{} + if err := g.client.Call("Plugin.GetChannelsForTeamForUser", _args, _returns); err != nil { + log.Printf("RPC call to GetChannelsForTeamForUser API failed: %s", err.Error()) + } + return _returns.A, _returns.B +} + +func (s *apiRPCServer) GetChannelsForTeamForUser(args *Z_GetChannelsForTeamForUserArgs, returns *Z_GetChannelsForTeamForUserReturns) error { + if hook, ok := s.impl.(interface { + GetChannelsForTeamForUser(teamId, userId string, includeDeleted bool) (*model.ChannelList, *model.AppError) + }); ok { + returns.A, returns.B = hook.GetChannelsForTeamForUser(args.A, args.B, args.C) + } else { + return encodableError(fmt.Errorf("API GetChannelsForTeamForUser called but not implemented.")) + } + return nil +} + type Z_GetDirectChannelArgs struct { A string B string |