Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

Commit 9d2d8e1

Browse files
author
Роман Воронцов
committed
Add xml Documentation
1 parent 7f44cb7 commit 9d2d8e1

40 files changed

+103
-77
lines changed

Documentation/en-EN/WhatsApp/ChatApi.WA.Account/Operations/Expiry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Updates the QR code after its expired
1+
# Updates the QR code after its expired.
22
**<span style="color:green">Implementation notes</span>**<br/>
33
This method is available in both synchronous and asynchronous implementations
44

Documentation/en-EN/WhatsApp/ChatApi.WA.Dialogs/UIOperations/ReadChat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This method is available in both synchronous and asynchronous implementations.
1212
## Response
1313
| `Parameter` | `Description` | `The data type of the parameter` |
1414
|:---------------------:|:--------------------------------------------------------|:--------------------------------:|
15-
| `Read` | The status of the request. | `Boolean` |
15+
| `Read` | Message readability indicator | `Boolean` |
1616
| `ChatId` | Unique ID of the dialog. | `String` |
1717
| `Message` | Dialog reading status | `String` |
1818

Documentation/en-EN/WhatsApp/ChatApi.WA.Dialogs/UIOperations/SendTypingStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ namespace ChatApiClient
4848

4949
var chatApiResponse = userInterfaceOperations.SendTypingStatus(request);
5050
if (!chatApiResponse.IsSuccess) throw chatApiResponse.Exception!;
51+
5152
var response = chatApiResponse.GetResult();
52-
5353
Console.WriteLine(response?.PrintMembers());
5454
}
5555
}

Src/ChatApi.Core/Models/ChatApiStatusOperation.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ChatApi.Core.Models
44
{
5-
//Need description:chatApi
65
/// <summary/>
76
public enum ChatApiStatusOperation : byte
87
{

Src/ChatApi.Core/Models/Interfaces/IErrorResponse.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace ChatApi.Core.Models.Interfaces
44
{
5-
//Need description:chatApi
65
/// <summary/>
76
public interface IErrorResponse
87
{

Src/ChatApi.Core/Models/Interfaces/IOperationResult.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
namespace ChatApi.Core.Models.Interfaces
44
{
5-
//Need description:chatApi
6-
/// <summary/>
5+
/// <inheritdoc cref="Result"/>
76
public interface IOperationResult
87
{
98
/// <summary>
10-
///
9+
/// The status of the request.
1110
/// </summary>
1211
[JsonProperty("result", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
1312
string? Result { get; set; }

Src/ChatApi.Core/Models/Interfaces/IOperationSuccess.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
namespace ChatApi.Core.Models.Interfaces
44
{
5-
//Need description:chatApi
6-
/// <summary/>
5+
/// <inheritdoc cref="Success"/>
76
public interface IOperationSuccess
87
{
98
/// <summary>
10-
///
9+
/// Flag of the success of the request
1110
/// </summary>
1211
[JsonProperty("success", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
1312
bool? Success { get; set; }

Src/ChatApi.Core/Models/MessageType.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
namespace ChatApi.Core.Models
44
{
5-
//Need description:chatApi
6-
/// <summary/>
5+
/// <summary>
6+
/// Type of the message
7+
/// </summary>
78
public enum MessageType : byte
89
{
910
/// <summary/>

Src/ChatApi.WA.Account/Models/InstanceStatus.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class InstanceStatus : Printable, IExpiry, ILogout, IRetry, ITakeover, IL
1515
/// <inheritdoc />
1616
public string? Label { get; set; }
1717
/// <inheritdoc />
18-
public InstanceStatusActionType? Action { get; set; }
18+
public InstanceStatusActionType? ActionType { get; set; }
1919

2020
#endregion
2121

@@ -24,7 +24,7 @@ public class InstanceStatus : Printable, IExpiry, ILogout, IRetry, ITakeover, IL
2424
/// <inheritdoc />
2525
public bool Equals(IInstanceStatus? other)
2626
{
27-
return other is not null && Action == other.Action &&
27+
return other is not null && ActionType == other.ActionType &&
2828
string.Equals(Link, other.Link, StringComparison.Ordinal) &&
2929
string.Equals(Label, other.Label, StringComparison.Ordinal);
3030
}
@@ -38,7 +38,7 @@ public override int GetHashCode()
3838
{
3939
unchecked
4040
{
41-
int hashCode = Action is not null ? Action.GetHashCode() : 0;
41+
int hashCode = ActionType is not null ? ActionType.GetHashCode() : 0;
4242
hashCode = (hashCode * 397) ^ (Label is not null ? Label.GetHashCode() : 0);
4343
hashCode = (hashCode * 397) ^ (Link is not null ? Link.GetHashCode() : 0);
4444
return hashCode;
@@ -57,7 +57,7 @@ public override int GetHashCode()
5757
/// <inheritdoc />
5858
protected override void PrintContent(int shift)
5959
{
60-
AddMember(nameof(Action), Action, shift);
60+
AddMember(nameof(ActionType), ActionType, shift);
6161
AddMember(nameof(Label), Label, shift);
6262
AddMember(nameof(Link), Link, shift);
6363
}

Src/ChatApi.WA.Account/Models/Interfaces/IInstanceStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public interface IInstanceStatus : IEquatable<IInstanceStatus?>, IPrintable
1111
/// Method name
1212
/// </summary>
1313
[JsonProperty("act", NullValueHandling = NullValueHandling.Ignore)]
14-
InstanceStatusActionType? Action { get; set; }
14+
InstanceStatusActionType? ActionType { get; set; }
1515

1616
/// <summary>
1717
/// Action caption for the button

0 commit comments

Comments
 (0)