Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ internal partial class ChannelMemberInternalDTO
/// Permission level of the member in the channel (DEPRECATED: use channel_role instead)
/// </summary>
[Newtonsoft.Json.JsonProperty("role", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public ChannelMemberRoleType? Role { get; set; }
public string Role { get; set; }

/// <summary>
/// Whether member is shadow banned in this channel or not
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ internal partial class ChannelMemberRequestInternalDTO
/// Permission level of the member in the channel (DEPRECATED: use channel_role instead)
/// </summary>
[Newtonsoft.Json.JsonProperty("role", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public ChannelMemberRoleType? Role { get; set; }
public string Role { get; set; }

/// <summary>
/// Whether member is shadow banned in this channel or not
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class ChannelMember : ModelBase, ILoadableFrom<ChannelMemberInternalDTO,
/// Permission level of the member in the channel (DEPRECATED: use channel_role instead)
/// </summary>
[Obsolete("Use ChannelRole instead")]
public ChannelMemberRoleType? Role { get; set; }
public string Role { get; set; }

/// <summary>
/// Whether member is shadow banned in this channel or not
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using StreamChat.Core.Helpers;
using System;
using StreamChat.Core.Helpers;
using StreamChat.Core.InternalDTO.Models;
using StreamChat.Core.InternalDTO.Requests;

Expand Down Expand Up @@ -51,7 +52,8 @@ public partial class ChannelMemberRequest : RequestObjectBase, ISavableTo<Channe
/// <summary>
/// Permission level of the member in the channel (DEPRECATED: use channel_role instead)
/// </summary>
public ChannelMemberRoleType? Role { get; set; }
[Obsolete("Use ChannelRole instead")]
public string Role { get; set; }

/// <summary>
/// Whether member is shadow banned in this channel or not
Expand Down