ListDiscussions() public method

Gets a list of all Discussions associated with the specified Sheet (both sheet-level discussions and row-level discussions).

It mirrors To the following Smartsheet REST API method: GET /sheets/{sheetId}/discussions

This operation supports pagination of results. For more information, see Paging.
if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public ListDiscussions ( long sheetId, IEnumerable include, PaginationParameters paging ) : PaginatedResult
sheetId long the sheet Id
include IEnumerable elements to include in response
paging Smartsheet.Api.Models.PaginationParameters the pagination
return PaginatedResult
        public virtual void TestListDiscussions()
        {
            server.setResponseBody("../../../TestSDK/resources/listDiscussions.json");

            // Will fail if Attachment object is not updated to API2.0 due to the property 'createdBy'
            // not yet implemented in the Attachment object
            PaginatedResult <Discussion> result = sheetDiscussionResourcesImpl.ListDiscussions
                                                      (1234L, new DiscussionInclusion[] { DiscussionInclusion.ATTACHMENTS }, null);

            Assert.True(result.Data[0].Id == 3138415114905476);
            Assert.True(result.Data[0].Title == "Lincoln");
            Assert.True(result.Data[0].Comments[0].Id == 7320407591151492);
            Assert.True(result.Data[0].Comments[0].Text == "16th President");
            Assert.True(result.Data[0].Comments[0].CreatedBy.Name == "Test User");
            Assert.True(result.Data[0].Comments[0].Attachments[0].Name == "test.html");
            Assert.True(result.Data[0].Comments[0].Attachments[0].AttachmentType == AttachmentType.FILE);
            Assert.True(result.Data[0].AccessLevel == AccessLevel.OWNER);
            Assert.True(result.Data[0].ParentId == 4508369022150532);
            Assert.True(result.Data[0].ReadOnly == false);
        }