View Channel List

1. View Public Channels

You can view all public channels even if you are a not member.

The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.

TalkPlusApi.GetPublicChannels(lastChannel, 
   (List<TPChannel> tpChannels, bool hasNext) => {
      // SUCCESS
}, (int statusCode, Exception e) => {
      // FAILURE
});

2. Get Joined Channels

View currently joined channels.

The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.

TalkPlusApi.GetChannels(lastChannel, 
   (List<TPChannel> tpChannels, bool hasNext) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

3. Get Hidden Channels

View currently joined channels that have been marked as hidden.

The list is paginated, so to get to the next page, you can pass the last TPChannel from the previous list to get to the next page.

TalkPlusApi.GetHiddenChannels(lastChannel, 
   (List<TPChannel> tpChannels, bool hasNext) => {
      // SUCCESS
}, (int statusCode, Exception e) => {
      // FAILURE
});

4. Get Total Unread Message Count

Get the total number of unread messages from all joined channels.

TalkPlusApi.GetTotalUnreadCount((int totalCount) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

5. Mark All Channels As Read

Mark as read all unread messages from joined channels.

TalkPlusApi.MarkAsReadAllChannel(() => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

6. Search Joined Channels

Search joined channels using various filters.

  • You can filter channels by name, category, subcategory, private tag and joined members.

  • TPChannelQueryParams class is available starting from TalkPlus Unity SDK v0.5.7.

var queryParams = new TPChannelQueryParams();
queryParams.lastChannel = lastChannel;
queryParams.channelName = channelName;
queryParams.category = category;
queryParams.subcategory = subCategory;
queryParams.privateTag = privateTag;
queryParams.memberIds = memberIds;
queryParams.frozenType = TPChannelFrozenType.TPUnspecifiedFrozenChannel;

TalkPlusApi.SearchChannels(queryParams, 
   (List<TPChannel> tpChannels, bool hasNext) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

7. Search Public Channels

Search public channels using various filters.

  • You can filter channels by name, category, subcategory, private tag and joined members.

  • TPChannelQueryParams class is available starting from TalkPlus Unity SDK v0.5.7.

var queryParams = new TPChannelQueryParams();
queryParams.lastChannel = lastChannel;
queryParams.channelName = channelName;
queryParams.category = category;
queryParams.subcategory = subCategory;
queryParams.privateTag = privateTag;
queryParams.memberIds = memberIds;
queryParams.frozenType = TPChannelFrozenType.TPUnspecifiedFrozenChannel;

TalkPlusApi.SearchPublicChannels(queryParams, 
   (List<TPChannel> tpChannels, bool hasNext) => {
   // SUCCESS
}, (int statusCode, Exception e) => {
   // FAILURE
});

Last updated