@@ -20,7 +20,7 @@ public CommentService(Podio currentInstance)
20
20
/// <para>Podio API Reference: https://developers.podio.com/doc/comments/delete-a-comment-22347 </para>
21
21
/// </summary>
22
22
/// <param name="commentId"></param>
23
- public async Task < dynamic > DeleteComment ( int commentId )
23
+ public async Task < dynamic > DeleteComment ( long commentId )
24
24
{
25
25
string url = string . Format ( "/comment/{0}" , commentId ) ;
26
26
return await _podio . Delete < dynamic > ( url ) ;
@@ -32,7 +32,7 @@ public async Task<dynamic> DeleteComment(int commentId)
32
32
/// </summary>
33
33
/// <param name="commentId"></param>
34
34
/// <returns></returns>
35
- public async Task < Comment > GetComment ( int commentId )
35
+ public async Task < Comment > GetComment ( long commentId )
36
36
{
37
37
string url = string . Format ( "/comment/{0}" , commentId ) ;
38
38
return await _podio . Get < Comment > ( url ) ;
@@ -76,7 +76,7 @@ public async Task<List<Comment>> GetCommentsOnObject(string type, long id)
76
76
/// </param>
77
77
/// <param name="hook">todo: describe hook parameter on AddCommentToObject</param>
78
78
/// <returns></returns>
79
- public async Task < int > AddCommentToObject ( string type , long id , string text , string externalId = null ,
79
+ public async Task < long > AddCommentToObject ( string type , long id , string text , string externalId = null ,
80
80
List < int > fileIds = null , string embedUrl = null , int ? embedId = null , bool alertInvite = false ,
81
81
bool silent = false , bool hook = true )
82
82
{
@@ -108,13 +108,13 @@ public async Task<int> AddCommentToObject(string type, long id, string text, str
108
108
/// </param>
109
109
/// <param name="hook">todo: describe hook parameter on AddCommentToObject</param>
110
110
/// <returns></returns>
111
- public async Task < int > AddCommentToObject ( string type , long id , CommentCreateUpdateRequest comment , bool alertInvite = false ,
111
+ public async Task < long > AddCommentToObject ( string type , long id , CommentCreateUpdateRequest comment , bool alertInvite = false ,
112
112
bool silent = false , bool hook = true )
113
113
{
114
114
string url = string . Format ( "/comment/{0}/{1}/" , type , id ) ;
115
115
url = Utility . PrepareUrlWithOptions ( url , new CreateUpdateOptions ( silent , hook , null , alertInvite ) ) ;
116
116
dynamic response = await _podio . Post < dynamic > ( url , comment ) ;
117
- return ( int ) response [ "comment_id" ] ;
117
+ return ( long ) response [ "comment_id" ] ;
118
118
}
119
119
120
120
/// <summary>
@@ -131,7 +131,7 @@ public async Task<int> AddCommentToObject(string type, long id, CommentCreateUpd
131
131
/// The id of an embedded link that has been created with the Add an embed operation in the Embed
132
132
/// area
133
133
/// </param>
134
- public async Task < dynamic > UpdateComment ( int commentId , string text , string externalId = null , List < int > fileIds = null ,
134
+ public async Task < dynamic > UpdateComment ( long commentId , string text , string externalId = null , List < int > fileIds = null ,
135
135
string embedUrl = null , int ? embedId = null )
136
136
{
137
137
var requestData = new CommentCreateUpdateRequest ( )
@@ -151,7 +151,7 @@ public async Task<dynamic> UpdateComment(int commentId, string text, string ext
151
151
/// </summary>
152
152
/// <param name="commentId"></param>
153
153
/// <param name="comment"></param>
154
- public async Task < dynamic > UpdateComment ( int commentId , CommentCreateUpdateRequest comment )
154
+ public async Task < dynamic > UpdateComment ( long commentId , CommentCreateUpdateRequest comment )
155
155
{
156
156
string url = string . Format ( "/comment/{0}" , commentId ) ;
157
157
return await _podio . Put < dynamic > ( url , comment ) ;
0 commit comments