-
-
Notifications
You must be signed in to change notification settings - Fork 9
mattermostbuilders PostBuilder
BigMakCode edited this page Aug 5, 2024
·
1 revision
Mattermost post builder.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph Mattermost.Builders
Mattermost.Builders.PostBuilder[[PostBuilder]]
end
| Returns | Name |
|---|---|
PostBuilder |
AddFile(string fileId)Attach file to post by file identifier. |
PostBuilder |
AddText(string text)Set post text message. |
PostBuilder |
ReplyToPostId(string rootPostId)Reply to specified root post identifier. |
Task<Post> |
SendMessageAsync()Sent completed post to specified channel. |
PostBuilder |
SetPriority(MessagePriority messagePriority)Set post priority. |
PostBuilder |
ToChannel(string channelId)Send post to specified channel. |
Mattermost post builder.
internal PostBuilder(IMattermostClient client)| Type | Name | Description |
|---|---|---|
IMattermostClient |
client |
public PostBuilder ToChannel(string channelId)| Type | Name | Description |
|---|---|---|
string |
channelId | Channel identifier. |
Send post to specified channel.
Current builder.
| Name | Description |
|---|---|
| ArgumentException | If channel identifier is empty or null. |
public PostBuilder AddText(string text)| Type | Name | Description |
|---|---|---|
string |
text | Text message (markdown supported). |
Set post text message.
Current builder.
public PostBuilder ReplyToPostId(string rootPostId)| Type | Name | Description |
|---|---|---|
string |
rootPostId | Post identifier. |
Reply to specified root post identifier.
Current builder.
public PostBuilder SetPriority(MessagePriority messagePriority)| Type | Name | Description |
|---|---|---|
MessagePriority |
messagePriority | Post priority. |
Set post priority.
Current buidler.
public PostBuilder AddFile(string fileId)| Type | Name | Description |
|---|---|---|
string |
fileId | File identifier. |
Attach file to post by file identifier.
Current builder.
| Name | Description |
|---|---|
| ArgumentNullException | If file identifier is empty. |
public Task<Post> SendMessageAsync()Sent completed post to specified channel.
Created post.
| Name | Description |
|---|---|
| ArgumentException |
Generated with ModularDoc