tidied getChatFlowArgs
This commit is contained in:
		
							parent
							
								
									18eebf6ab6
								
							
						
					
					
						commit
						683ef69418
					
				@ -5,11 +5,17 @@ import net.corda.v5.base.annotations.CordaSerializable;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import java.util.UUID;
 | 
					import java.util.UUID;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@CordaSerializable
 | 
					//@CordaSerializable
 | 
				
			||||||
public class ChatStateResults {
 | 
					public class ChatStateResults {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private UUID id;
 | 
				
			||||||
 | 
					    private String chatName;
 | 
				
			||||||
 | 
					    private String messageFromName;
 | 
				
			||||||
 | 
					    private String message;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public ChatStateResults() {}
 | 
					    public ChatStateResults() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @ConstructorForDeserialization
 | 
					//    @ConstructorForDeserialization
 | 
				
			||||||
    public ChatStateResults(UUID id, String chatName, String messageFromName, String message) {
 | 
					    public ChatStateResults(UUID id, String chatName, String messageFromName, String message) {
 | 
				
			||||||
        this.id = id;
 | 
					        this.id = id;
 | 
				
			||||||
        this.chatName = chatName;
 | 
					        this.chatName = chatName;
 | 
				
			||||||
@ -21,37 +27,34 @@ public class ChatStateResults {
 | 
				
			|||||||
        return id;
 | 
					        return id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setId(UUID id) {
 | 
					//    public void setId(UUID id) {
 | 
				
			||||||
        this.id = id;
 | 
					//        this.id = id;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getChatName() {
 | 
					    public String getChatName() {
 | 
				
			||||||
        return chatName;
 | 
					        return chatName;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setChatName(String chatName) {
 | 
					//    public void setChatName(String chatName) {
 | 
				
			||||||
        this.chatName = chatName;
 | 
					//        this.chatName = chatName;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getMessageFromName() {
 | 
					    public String getMessageFromName() {
 | 
				
			||||||
        return messageFromName;
 | 
					        return messageFromName;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setMessageFromName(String messageFromName) {
 | 
					//    public void setMessageFromName(String messageFromName) {
 | 
				
			||||||
        this.messageFromName = messageFromName;
 | 
					//        this.messageFromName = messageFromName;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public String getMessage() {
 | 
					    public String getMessage() {
 | 
				
			||||||
        return message;
 | 
					        return message;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setMessage(String message) {
 | 
					//    public void setMessage(String message) {
 | 
				
			||||||
        this.message = message;
 | 
					//        this.message = message;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public UUID id;
 | 
					 | 
				
			||||||
    public String chatName;
 | 
					 | 
				
			||||||
    public String messageFromName;
 | 
					 | 
				
			||||||
    public String message;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -5,11 +5,14 @@ import net.corda.v5.base.annotations.CordaSerializable;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import java.util.UUID;
 | 
					import java.util.UUID;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@CordaSerializable
 | 
					//@CordaSerializable
 | 
				
			||||||
public class GetChatFlowArgs {
 | 
					public class GetChatFlowArgs {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    private UUID id;
 | 
				
			||||||
 | 
					    private int numberOfRecords;
 | 
				
			||||||
    public GetChatFlowArgs() {}
 | 
					    public GetChatFlowArgs() {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @ConstructorForDeserialization
 | 
					//    @ConstructorForDeserialization
 | 
				
			||||||
    public GetChatFlowArgs(UUID id, int numberOfRecords ) {
 | 
					    public GetChatFlowArgs(UUID id, int numberOfRecords ) {
 | 
				
			||||||
        this.id = id;
 | 
					        this.id = id;
 | 
				
			||||||
        this.numberOfRecords = numberOfRecords;
 | 
					        this.numberOfRecords = numberOfRecords;
 | 
				
			||||||
@ -19,19 +22,18 @@ public class GetChatFlowArgs {
 | 
				
			|||||||
        return id;
 | 
					        return id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setId(UUID id) {
 | 
					//    public void setId(UUID id) {
 | 
				
			||||||
        this.id = id;
 | 
					//        this.id = id;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public int getNumberOfRecords() {
 | 
					    public int getNumberOfRecords() {
 | 
				
			||||||
        return numberOfRecords;
 | 
					        return numberOfRecords;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public void setNumberOfRecords(int numberOfRecords) {
 | 
					//    public void setNumberOfRecords(int numberOfRecords) {
 | 
				
			||||||
        this.numberOfRecords = numberOfRecords;
 | 
					//        this.numberOfRecords = numberOfRecords;
 | 
				
			||||||
    }
 | 
					//    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public UUID id;
 | 
					 | 
				
			||||||
    public int numberOfRecords;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ public class ListChatsFlow implements RPCStartableFlow{
 | 
				
			|||||||
    @CordaInject
 | 
					    @CordaInject
 | 
				
			||||||
    public UtxoLedgerService utxoLedgerService;
 | 
					    public UtxoLedgerService utxoLedgerService;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @NotNull
 | 
					//    @NotNull
 | 
				
			||||||
    @Suspendable
 | 
					    @Suspendable
 | 
				
			||||||
    @Override
 | 
					    @Override
 | 
				
			||||||
    public String call(RPCRequestData requestBody) {
 | 
					    public String call(RPCRequestData requestBody) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user