Skip to content

Commit

Permalink
update changelogs
Browse files Browse the repository at this point in the history
  • Loading branch information
OnestarLee committed Feb 29, 2024
1 parent 9305c8d commit 6428bae
Show file tree
Hide file tree
Showing 87 changed files with 189 additions and 186 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 4.0.0-beta.2 (Mar 5, 2024)
### Improvements
- Changed the Json library from a binary to a dependency form
- Added Support for Unity2019.4
- Added Support for .NET 4.x

## 4.0.0-beta.1 (Sep 15, 2023)
### Improvements
- Fixed the bug regarding the URL encoding
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -15,7 +15,7 @@ internal sealed class Request : ApiCommandAbstract.GetRequest
{
internal Request(string inToken, int inLimit, SbChannelType inChannelType, string inChannelUrl, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(inChannelType)}/{inChannelUrl}/ban";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2022 Sendbird, Inc.
//

using System.Web;
using System.Net;

namespace Sendbird.Chat
{
Expand All @@ -12,7 +12,7 @@ internal sealed class Request : ApiCommandAbstract.DeleteRequest
{
internal Request(string inChannelUrl, SbChannelType inChannelType, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(inChannelType)}/{inChannelUrl}";
resultHandler = inResultHandler;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;

namespace Sendbird.Chat
{
Expand All @@ -13,7 +13,7 @@ internal sealed class Request : ApiCommandAbstract.GetRequest
{
internal Request(string inChannelUrl, bool inIsInternal, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group, inIsInternal)}/{inChannelUrl}";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

Expand Down Expand Up @@ -32,7 +32,7 @@ internal struct Params

internal Request(Params inParams, ResultHandler inResultHandler)
{
inParams.channelUrl = HttpUtility.UrlEncode(inParams.channelUrl);
inParams.channelUrl = WebUtility.UrlEncode(inParams.channelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inParams.channelUrl}/messages_gap";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -15,7 +15,7 @@ internal sealed class Request : ApiCommandAbstract.GetRequest
{
internal Request(string inUserId, string inToken, long? inTimestamp, SbGroupChannelChangeLogsParams inParams, int inLimit, ResultHandler inResultHandler)
{
inUserId = HttpUtility.UrlEncode(inUserId);
inUserId = WebUtility.UrlEncode(inUserId);
Url = $"{USERS_PREFIX_URL}/{inUserId}/my_group_channels/changelogs";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -21,7 +21,7 @@ internal Request(string inToken, int inLimit, string inChannelUrl,
SbMemberListOrder inOrder,
ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/members";

ResponseType = typeof(Response);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, bool inHidePreviousMessages, bool inAllowAutoUnhide, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/hide";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2022 Sendbird, Inc.
//

using System.Web;
using System.Net;

namespace Sendbird.Chat
{
Expand All @@ -12,7 +12,7 @@ internal sealed class Request : ApiCommandAbstract.DeleteRequest
{
internal Request(string inChannelUrl, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/hide";
resultHandler = inResultHandler;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -23,7 +23,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, string inAccessCode, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/accept";
resultHandler = inResultHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -22,7 +22,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/decline";
resultHandler = inResultHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inChannelUrl, List<string> inUserIds, string inInviterId, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/invite";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, string inAccessCode, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/join";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, bool inShouldRemoveOperatorStatus, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/leave";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inChannelUrl, long inMessageId, string inSessionKey, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/messages/mark_as_delivered";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -24,7 +24,7 @@ private struct Payload

internal Request(string inUserId, List<string> inChannelUrls, ResultHandler inResultHandler)
{
inUserId = HttpUtility.UrlEncode(inUserId);
inUserId = WebUtility.UrlEncode(inUserId);
Url = $"{USERS_PREFIX_URL}/{inUserId}/mark_as_read_all";
resultHandler = inResultHandler;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -22,7 +22,7 @@ private struct Payload

internal Request(string inChannelUrl, bool inFreeze, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/freeze";

resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand Down Expand Up @@ -48,7 +48,7 @@ internal sealed class Request : ApiCommandAbstract.GetRequest
private const string INCLUDE_CHAT_NOTIFICATION = "include_chat_notification";
internal Request(string inUserId, string inToken, SbGroupChannelListQuery inQuery, ResultHandler inResultHandler)
{
inUserId = HttpUtility.UrlEncode(inUserId);
inUserId = WebUtility.UrlEncode(inUserId);
Url = $"{USERS_PREFIX_URL}/{inUserId}/my_group_channels";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2022 Sendbird, Inc.
//

using System.Web;
using System.Net;

namespace Sendbird.Chat
{
Expand All @@ -12,7 +12,7 @@ internal sealed class Request : ApiCommandAbstract.PostRequest
{
internal Request(string inChannelUrl, SbChannelType inChannelType, long inMessageId, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(inChannelType)}/{inChannelUrl}/messages/{inMessageId}/pin";
resultHandler = inResultHandler;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright (c) 2022 Sendbird, Inc.
//

using System.Web;
using System.Net;

namespace Sendbird.Chat
{
Expand All @@ -12,7 +12,7 @@ internal sealed class Request : ApiCommandAbstract.DeleteRequest
{
internal Request(string inChannelUrl, SbChannelType inChannelType, long inMessageId, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(inChannelType)}/{inChannelUrl}/messages/{inMessageId}/pin";
resultHandler = inResultHandler;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

using System;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand All @@ -25,7 +25,7 @@ private struct Payload

internal Request(string inChannelUrl, string inUserId, bool inResetAll, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}/reset_user_history";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System;
using System.Collections.Generic;
using System.Web;
using System.Net;
using Newtonsoft.Json;

namespace Sendbird.Chat
Expand Down Expand Up @@ -46,7 +46,7 @@ private struct Payload

internal Request(string inChannelUrl, SbGroupChannelUpdateParams inParams, ResultHandler inResultHandler)
{
inChannelUrl = HttpUtility.UrlEncode(inChannelUrl);
inChannelUrl = WebUtility.UrlEncode(inChannelUrl);
Url = $"{ChannelTypeToUrlPrefix(SbChannelType.Group)}/{inChannelUrl}";
ResponseType = typeof(Response);
resultHandler = inResultHandler;
Expand Down
Loading

0 comments on commit 6428bae

Please sign in to comment.