Skip to content

Commit

Permalink
Fixed mistake when merging
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre3 committed Jan 20, 2019
1 parent 7006845 commit 5ffbbb8
Showing 1 changed file with 1 addition and 58 deletions.
59 changes: 1 addition & 58 deletions Line.Messaging/LineMessagingClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -708,64 +708,7 @@ public virtual async Task<NumberOfSentMessages> GetNumberOfSentMulticastMessages
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
}
#endregion

#region Number of sent messages

/// <summary>
/// Gets the number of messages sent with the /bot/message/reply endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
/// </summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 20191231)
/// - Timezone: UTC+9
/// </param>
/// <returns>
/// <see cref="Line.Messaging.NumberOfSentMessages"/>
/// </returns>
public async Task<NumberOfSentMessages> GetNumberOfSentReplyMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/reply?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
}

/// <summary>
/// Gets the number of messages sent with the /bot/message/push endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
///</summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 20191231)
/// - Timezone: UTC+9
/// </param>
/// <returns>
/// <see cref="Line.Messaging.NumberOfSentMessages"/>
/// </returns>
public async Task<NumberOfSentMessages> GetNumberOfSentPushMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/push?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
}

/// <summary>
/// Gets the number of messages sent with the /bot/message/push endpoint.
/// The number of messages retrieved by this operation does not include the number of messages sent from LINE@ Manager.
/// </summary>
/// <param name="date">
/// - Date the messages were sent
/// - Format: yyyyMMdd(Example: 20191231)
/// - Timezone: UTC+9
/// </param>
/// <returns>
/// <see cref="Line.Messaging.NumberOfSentMessages"/>
/// </returns>
public async Task<NumberOfSentMessages> GetNumberOfSentMulticastMessagesAsync(DateTime date)
{
var response = await GetStringAsync($"{_uri}/bot/message/delivery/multicast?date={date.ToString("yyyyMMdd")}");
return JsonConvert.DeserializeObject<NumberOfSentMessages>(response);
}
#endregion


public void Dispose()
{
_client?.Dispose();
Expand Down

0 comments on commit 5ffbbb8

Please sign in to comment.