app_api.go
TLDR
This file defines the interface AppAPI
, which contains two methods for getting and adding members to a board in the focalboard
server.
Methods
GetMemberForBoard
This method takes in a boardID
and userID
as arguments and returns a pointer to a BoardMember
and an error. It is used to retrieve a board member for a specific board and user.
AddMemberToBoard
This method takes in a BoardMember
as an argument and returns a pointer to the added BoardMember
and an error. It is used to add a new member to a board.
Note: This file does not contain any classes.
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
package notifymentions
import "github.com/mattermost/focalboard/server/model"
type AppAPI interface {
GetMemberForBoard(boardID, userID string) (*model.BoardMember, error)
AddMemberToBoard(member *model.BoardMember) (*model.BoardMember, error)
}