Skip to content

Commit

Permalink
fix: rename Content property in Accept/Reject/RevokeRelationship to C…
Browse files Browse the repository at this point in the history
…reationResponseContent
  • Loading branch information
tnotheis committed Apr 24, 2024
1 parent 2ef0ab7 commit a42fcf2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public async Task<IActionResult> CreateRelationship(CreateRelationshipCommand re
[ProducesError(StatusCodes.Status404NotFound)]
public async Task<IActionResult> AcceptRelationship([FromRoute] string id, [FromBody] AcceptRelationshipRequest request, CancellationToken cancellationToken)
{
var response = await _mediator.Send(new AcceptRelationshipCommand { RelationshipId = id, CreationResponseContent = request.Content }, cancellationToken);
var response = await _mediator.Send(new AcceptRelationshipCommand { RelationshipId = id, CreationResponseContent = request.CreationResponseContent }, cancellationToken);
return Ok(response);
}

Expand All @@ -85,7 +85,7 @@ public async Task<IActionResult> AcceptRelationship([FromRoute] string id, [From
[ProducesError(StatusCodes.Status404NotFound)]
public async Task<IActionResult> RejectRelationship([FromRoute] string id, [FromBody] RejectRelationshipRequest request, CancellationToken cancellationToken)
{
var response = await _mediator.Send(new RejectRelationshipCommand { RelationshipId = id, CreationResponseContent = request.Content }, cancellationToken);
var response = await _mediator.Send(new RejectRelationshipCommand { RelationshipId = id, CreationResponseContent = request.CreationResponseContent }, cancellationToken);
return Ok(response);
}

Expand All @@ -95,7 +95,7 @@ public async Task<IActionResult> RejectRelationship([FromRoute] string id, [From
[ProducesError(StatusCodes.Status404NotFound)]
public async Task<IActionResult> RevokeRelationship([FromRoute] string id, [FromBody] RevokeRelationshipRequest request, CancellationToken cancellationToken)
{
var response = await _mediator.Send(new RevokeRelationshipCommand { RelationshipId = id, CreationResponseContent = request.Content }, cancellationToken);
var response = await _mediator.Send(new RevokeRelationshipCommand { RelationshipId = id, CreationResponseContent = request.CreationResponseContent }, cancellationToken);
return Ok(response);
}

Expand All @@ -112,15 +112,15 @@ public async Task<IActionResult> TerminateRelationship([FromRoute] string id, Ca

public class AcceptRelationshipRequest
{
public byte[]? Content { get; set; } = Array.Empty<byte>();
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>();
}

public class RejectRelationshipRequest
{
public byte[]? Content { get; set; } = Array.Empty<byte>();
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>();
}

public class RevokeRelationshipRequest
{
public byte[]? Content { get; set; } = Array.Empty<byte>();
public byte[]? CreationResponseContent { get; set; } = Array.Empty<byte>();
}

0 comments on commit a42fcf2

Please sign in to comment.