C# 클래스 PodioAPI.Services.CommentService

파일 보기 프로젝트 열기: podio/podio-dotnet

공개 메소드들

메소드 설명
AddCommentToObject ( string type, int id, CommentCreateUpdateRequest comment, bool alertInvite = false, bool silent = false, bool hook = true ) : Task

Adds a new comment to the object of the given type and id, f.ex. item 1.

Podio API Reference: https://developers.podio.com/doc/comments/add-comment-to-object-22340

AddCommentToObject ( string type, int id, string text, string externalId = null, List fieldIds = null, string embedUrl = null, int embedId = null, bool alertInvite = false, bool silent = false, bool hook = true ) : Task

Adds a new comment to the object of the given type and id with no reference to other objects

Podio API Reference: https://developers.podio.com/doc/comments/add-comment-to-object-22340

CommentService ( Podio currentInstance ) : System.Collections.Generic
DeleteComment ( int commentId ) : Task

Deletes a comment made by a user. This can be used to retract a comment that was made and which the user regrets.

Podio API Reference: https://developers.podio.com/doc/comments/delete-a-comment-22347

GetComment ( int commentId ) : Task

Returns the contents of a comment. It is not possible to see where the comment was made, only the comment itself.

Podio API Reference: https://developers.podio.com/doc/comments/get-a-comment-22345

GetCommentsOnObject ( string type, int id ) : Task>

Used to retrieve all the comments that have been made on an object of the given type and with the given id. It returns a list of all the comments sorted in ascending order by time created.

Podio API Reference: https://developers.podio.com/doc/comments/get-comments-on-object-22371

UpdateComment ( int commentId, CommentCreateUpdateRequest comment ) : Task

Updates an already created comment. This should only be used to correct spelling and grammatical mistakes in the comment.

UpdateComment ( int commentId, string text, string externalId = null, List fieldIds = null, string embedUrl = null, int embedId = null ) : Task

Updates an already created comment. This should only be used to correct spelling and grammatical mistakes in the comment.

Podio API Reference: https://developers.podio.com/doc/comments/update-a-comment-22346

메소드 상세

AddCommentToObject() 공개 메소드

Adds a new comment to the object of the given type and id, f.ex. item 1.

Podio API Reference: https://developers.podio.com/doc/comments/add-comment-to-object-22340

public AddCommentToObject ( string type, int id, CommentCreateUpdateRequest comment, bool alertInvite = false, bool silent = false, bool hook = true ) : Task
type string
id int
comment PodioAPI.Models.Request.CommentCreateUpdateRequest
alertInvite bool /// True if any mentioned user should be automatically invited to the workspace if the user does /// not have access to the object and access cannot be granted to the object. Default value: false ///
silent bool /// If set to true, the object will not be bumped up in the stream and notifications will not be /// generated. Default value: false ///
hook bool
리턴 Task

AddCommentToObject() 공개 메소드

Adds a new comment to the object of the given type and id with no reference to other objects

Podio API Reference: https://developers.podio.com/doc/comments/add-comment-to-object-22340

public AddCommentToObject ( string type, int id, string text, string externalId = null, List fieldIds = null, string embedUrl = null, int embedId = null, bool alertInvite = false, bool silent = false, bool hook = true ) : Task
type string
id int
text string The comment to be made
externalId string The external id of the comment
fieldIds List Temporary files that have been uploaded and should be attached to this comment
embedUrl string The url to be attached
embedId int /// The id of an embedded link that has been created with the Add an embed operation in the Embed /// area ///
alertInvite bool /// True if any mentioned user should be automatically invited to the workspace if the user does /// not have access to the object and access cannot be granted to the object. Default value: false ///
silent bool /// If set to true, the object will not be bumped up in the stream and notifications will not be /// generated. Default value: false ///
hook bool
리턴 Task

CommentService() 공개 메소드

public CommentService ( Podio currentInstance ) : System.Collections.Generic
currentInstance Podio
리턴 System.Collections.Generic

DeleteComment() 공개 메소드

Deletes a comment made by a user. This can be used to retract a comment that was made and which the user regrets.

Podio API Reference: https://developers.podio.com/doc/comments/delete-a-comment-22347

public DeleteComment ( int commentId ) : Task
commentId int
리턴 Task

GetComment() 공개 메소드

Returns the contents of a comment. It is not possible to see where the comment was made, only the comment itself.

Podio API Reference: https://developers.podio.com/doc/comments/get-a-comment-22345

public GetComment ( int commentId ) : Task
commentId int
리턴 Task

GetCommentsOnObject() 공개 메소드

Used to retrieve all the comments that have been made on an object of the given type and with the given id. It returns a list of all the comments sorted in ascending order by time created.

Podio API Reference: https://developers.podio.com/doc/comments/get-comments-on-object-22371

public GetCommentsOnObject ( string type, int id ) : Task>
type string
id int
리턴 Task>

UpdateComment() 공개 메소드

Updates an already created comment. This should only be used to correct spelling and grammatical mistakes in the comment.
public UpdateComment ( int commentId, CommentCreateUpdateRequest comment ) : Task
commentId int
comment PodioAPI.Models.Request.CommentCreateUpdateRequest
리턴 Task

UpdateComment() 공개 메소드

Updates an already created comment. This should only be used to correct spelling and grammatical mistakes in the comment.

Podio API Reference: https://developers.podio.com/doc/comments/update-a-comment-22346

public UpdateComment ( int commentId, string text, string externalId = null, List fieldIds = null, string embedUrl = null, int embedId = null ) : Task
commentId int
text string The comment to be made
externalId string The external id of the comment
fieldIds List Temporary files that have been uploaded and should be attached to this comment
embedUrl string The url to be attached
embedId int /// The id of an embedded link that has been created with the Add an embed operation in the Embed /// area ///
리턴 Task