Skip to content

Commit

Permalink
Merge pull request #132 from markogrady/main
Browse files Browse the repository at this point in the history
Update return type for GetInboundMessageDetailsAsync method
  • Loading branch information
MariuszTrybus authored Jun 14, 2024
2 parents d9ee8f5 + e7f0c44 commit d55dad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Postmark/LegacyClientExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public static PostmarkInboundMessageList GetInboundMessages(this PostmarkClient
return Task.Run(async () => await client.GetInboundMessagesAsync(offset, count, recipient, fromemail, subject, mailboxhash)).Result;
}

public static InboundMessageDetail GetInboundMessageDetail(this PostmarkClient client, string messageID)
public static PostmarkInboundMessage GetInboundMessageDetail(this PostmarkClient client, string messageID)
{
return Task.Run(async () => await client.GetInboundMessageDetailsAsync(messageID)).Result;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Postmark/PostmarkClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ public async Task<PostmarkInboundMessageList> GetInboundMessagesAsync(int offset
/// </summary>
/// <param name="messageID">The MessageID of a message which can be optained either from the initial API send call or a GetInboundMessages call.</param>
/// <returns>InboundMessageDetail</returns>
public async Task<InboundMessageDetail> GetInboundMessageDetailsAsync(string messageID)
public async Task<PostmarkInboundMessage> GetInboundMessageDetailsAsync(string messageID)
{
return await ProcessNoBodyRequestAsync<InboundMessageDetail>("/messages/inbound/" + messageID + "/details");
return await ProcessNoBodyRequestAsync<PostmarkInboundMessage>("/messages/inbound/" + messageID + "/details");
}

/// <summary>
Expand Down

0 comments on commit d55dad1

Please sign in to comment.