Req-Resp messages are collection containers
MODIFY
WalletWasabi/WabiSabi/Models/ConnectionConfirmationRequest.cs
WalletWasabi/WabiSabi/Models/ConnectionConfirmationRequest.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.WabiSabi.Models
{
public class ConnectionConfirmationRequest
{
- public ConnectionConfirmationRequest(Guid roundId, Guid aliceId, IEnumerable<RegistrationRequestMessage> zeroCredentialRequests, IEnumerable<RegistrationRequestMessage> realCredentialRequests)
+ public ConnectionConfirmationRequest(Guid roundId, Guid aliceId, RegistrationRequestMessage zeroCredentialRequests, RegistrationRequestMessage realCredentialRequests)
{
RoundId = roundId;
AliceId = aliceId;
@@ -21,7 +21,7 @@ namespace WalletWasabi.WabiSabi.Models
public Guid RoundId { get; }
public Guid AliceId { get; }
- public IEnumerable<RegistrationRequestMessage> RealCredentialRequests { get; }
- public IEnumerable<RegistrationRequestMessage> ZeroCredentialRequests { get; }
+ public RegistrationRequestMessage RealCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroCredentialRequests { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/ConnectionConfirmationResponse.cs
WalletWasabi/WabiSabi/Models/ConnectionConfirmationResponse.cs
@@ -9,14 +9,14 @@ namespace WalletWasabi.WabiSabi.Models
{
public class ConnectionConfirmationResponse
{
- public ConnectionConfirmationResponse(IEnumerable<RegistrationResponseMessage> zeroCredentials, IEnumerable<RegistrationResponseMessage> realCredentials)
+ public ConnectionConfirmationResponse(RegistrationResponseMessage zeroCredentials, RegistrationResponseMessage realCredentials)
{
ZeroCredentials = zeroCredentials;
RealCredentials = realCredentials;
}
- public IEnumerable<RegistrationResponseMessage> ZeroCredentials { get; }
+ public RegistrationResponseMessage ZeroCredentials { get; }
- public IEnumerable<RegistrationResponseMessage> RealCredentials { get; }
+ public RegistrationResponseMessage RealCredentials { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/CredentialReissuanceRequest.cs
WalletWasabi/WabiSabi/Models/CredentialReissuanceRequest.cs
@@ -9,7 +9,7 @@ namespace WalletWasabi.WabiSabi.Models
{
public class CredentialReissuanceRequest
{
- public CredentialReissuanceRequest(Guid roundId, IEnumerable<RegistrationRequestMessage> zeroCredentialRequests, IEnumerable<RegistrationRequestMessage> realCredentialRequests)
+ public CredentialReissuanceRequest(Guid roundId, RegistrationRequestMessage zeroCredentialRequests, RegistrationRequestMessage realCredentialRequests)
{
RoundId = roundId;
ZeroCredentialRequests = zeroCredentialRequests;
@@ -17,7 +17,7 @@ namespace WalletWasabi.WabiSabi.Models
}
public Guid RoundId { get; }
- public IEnumerable<RegistrationRequestMessage> ZeroCredentialRequests { get; }
- public IEnumerable<RegistrationRequestMessage> RealCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroCredentialRequests { get; }
+ public RegistrationRequestMessage RealCredentialRequests { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/CredentialReissuanceResponse.cs
WalletWasabi/WabiSabi/Models/CredentialReissuanceResponse.cs
@@ -9,14 +9,14 @@ namespace WalletWasabi.WabiSabi.Models
{
public class CredentialReissuanceResponse
{
- public CredentialReissuanceResponse(IEnumerable<RegistrationResponseMessage> zeroCredentials, IEnumerable<RegistrationResponseMessage> realCredentials)
+ public CredentialReissuanceResponse(RegistrationResponseMessage zeroCredentials, RegistrationResponseMessage realCredentials)
{
ZeroCredentials = zeroCredentials;
RealCredentials = realCredentials;
}
- public IEnumerable<RegistrationResponseMessage> ZeroCredentials { get; }
+ public RegistrationResponseMessage ZeroCredentials { get; }
- public IEnumerable<RegistrationResponseMessage> RealCredentials { get; }
+ public RegistrationResponseMessage RealCredentials { get; }
}
}

MODIFY
WalletWasabi/WabiSabi/Models/InputsRegistrationRequest.cs
WalletWasabi/WabiSabi/Models/InputsRegistrationRequest.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.WabiSabi.Models
{
public class InputsRegistrationRequest
{
- public InputsRegistrationRequest(Guid roundId, IEnumerable<InputRoundSignaturePair> inputRoundSignaturePairs, IEnumerable<RegistrationRequestMessage> zeroCredentialRequests)
+ public InputsRegistrationRequest(Guid roundId, IEnumerable<InputRoundSignaturePair> inputRoundSignaturePairs, RegistrationRequestMessage zeroCredentialRequests)
{
RoundId = roundId;
InputRoundSignaturePairs = inputRoundSignaturePairs;
@@ -19,6 +19,6 @@ namespace WalletWasabi.WabiSabi.Models
public Guid RoundId { get; }
public IEnumerable<InputRoundSignaturePair> InputRoundSignaturePairs { get; }
- public IEnumerable<RegistrationRequestMessage> ZeroCredentialRequests { get; }
+ public RegistrationRequestMessage ZeroCredentialRequests { get; }
}
}

Req-Resp messages are collection containers