Skip to content

Commit f827c11

Browse files
committed
Fix CreatePollOptionRequest
1 parent 0ecb000 commit f827c11

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Assets/Plugins/StreamChat/Core/LowLevelClient/Requests/CreatePollOptionRequest.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System.Collections.Generic;
12
using StreamChat.Core.InternalDTO.Requests;
23
using StreamChat.Core.LowLevelClient.Models;
34

@@ -8,13 +9,20 @@ namespace StreamChat.Core.LowLevelClient.Requests
89
/// </summary>
910
public partial class CreatePollOptionRequest : RequestObjectBase, ISavableTo<CreatePollOptionRequestInternalDTO>
1011
{
11-
//public PollOptionInput PollOption { get; set; }
12+
/// <summary>
13+
/// Custom data for the poll option
14+
/// </summary>
15+
public Dictionary<string, object> Custom { get; set; }
1216

17+
/// <summary>
18+
/// Option text
19+
/// </summary>
1320
public string Text { get; set; }
1421

1522
CreatePollOptionRequestInternalDTO ISavableTo<CreatePollOptionRequestInternalDTO>.SaveToDto()
1623
=> new CreatePollOptionRequestInternalDTO
1724
{
25+
Custom = Custom,
1826
Text = Text,
1927
};
2028
}

Assets/Plugins/StreamChat/Core/QueryBuilders/Sort/QuerySort.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace StreamChat.Core.QueryBuilders.Sort
1010
public abstract class QuerySort<TSortType, TFieldType> where TSortType : QuerySort<TSortType, TFieldType>
1111
{
1212
/// <summary>
13-
/// Order by field in an ascending order
13+
/// Order by field in ascending order
1414
/// </summary>
1515
/// <param name="fieldName"></param>
1616
/// <returns></returns>

0 commit comments

Comments
 (0)