tidied getChatFlowArgs

This commit is contained in:
mattbradburyr3 2023-01-29 19:47:09 +00:00
parent 18eebf6ab6
commit 683ef69418
3 changed files with 34 additions and 29 deletions

View File

@ -5,11 +5,17 @@ import net.corda.v5.base.annotations.CordaSerializable;
import java.util.UUID;
@CordaSerializable
//@CordaSerializable
public class ChatStateResults {
private UUID id;
private String chatName;
private String messageFromName;
private String message;
public ChatStateResults() {}
@ConstructorForDeserialization
// @ConstructorForDeserialization
public ChatStateResults(UUID id, String chatName, String messageFromName, String message) {
this.id = id;
this.chatName = chatName;
@ -21,37 +27,34 @@ public class ChatStateResults {
return id;
}
public void setId(UUID id) {
this.id = id;
}
// public void setId(UUID id) {
// this.id = id;
// }
public String getChatName() {
return chatName;
}
public void setChatName(String chatName) {
this.chatName = chatName;
}
// public void setChatName(String chatName) {
// this.chatName = chatName;
// }
public String getMessageFromName() {
return messageFromName;
}
public void setMessageFromName(String messageFromName) {
this.messageFromName = messageFromName;
}
// public void setMessageFromName(String messageFromName) {
// this.messageFromName = messageFromName;
// }
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
// public void setMessage(String message) {
// this.message = message;
// }
public UUID id;
public String chatName;
public String messageFromName;
public String message;
}

View File

@ -5,11 +5,14 @@ import net.corda.v5.base.annotations.CordaSerializable;
import java.util.UUID;
@CordaSerializable
//@CordaSerializable
public class GetChatFlowArgs {
private UUID id;
private int numberOfRecords;
public GetChatFlowArgs() {}
@ConstructorForDeserialization
// @ConstructorForDeserialization
public GetChatFlowArgs(UUID id, int numberOfRecords ) {
this.id = id;
this.numberOfRecords = numberOfRecords;
@ -19,19 +22,18 @@ public class GetChatFlowArgs {
return id;
}
public void setId(UUID id) {
this.id = id;
}
// public void setId(UUID id) {
// this.id = id;
// }
public int getNumberOfRecords() {
return numberOfRecords;
}
public void setNumberOfRecords(int numberOfRecords) {
this.numberOfRecords = numberOfRecords;
}
// public void setNumberOfRecords(int numberOfRecords) {
// this.numberOfRecords = numberOfRecords;
// }
public UUID id;
public int numberOfRecords;
}

View File

@ -29,7 +29,7 @@ public class ListChatsFlow implements RPCStartableFlow{
@CordaInject
public UtxoLedgerService utxoLedgerService;
@NotNull
// @NotNull
@Suspendable
@Override
public String call(RPCRequestData requestBody) {