Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kemosalamy committed May 8, 2024
1 parent c0e981e commit 1c7ea22
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 85 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
package com.workup.contracts.commands;

import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest;

import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse;

public class EvaluateMilestoneCommand
extends ContractCommand<EvaluateMilestoneRequest, EvaluateMilestoneResponse> {

@Override
public EvaluateMilestoneResponse Run(EvaluateMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.
extends ContractCommand<EvaluateMilestoneRequest, EvaluateMilestoneResponse> {

return null;
@Override
public EvaluateMilestoneResponse Run(EvaluateMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.

}
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
package com.workup.contracts.commands;

import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest;

import com.workup.shared.commands.contracts.requests.GetContractRequest;
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse;
import com.workup.shared.commands.contracts.responses.GetContractResponse;

public class GetContractCommand
extends ContractCommand<GetContractRequest, GetContractResponse> {
public class GetContractCommand extends ContractCommand<GetContractRequest, GetContractResponse> {

@Override
public GetContractResponse Run(GetContractRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.
@Override
public GetContractResponse Run(GetContractRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.

return null;

}
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
package com.workup.contracts.commands;

import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest;

import com.workup.shared.commands.contracts.requests.GetContractRequest;
import com.workup.shared.commands.contracts.requests.GetMilestoneRequest;
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse;
import com.workup.shared.commands.contracts.responses.GetContractResponse;
import com.workup.shared.commands.contracts.responses.GetMilestoneResponse;

public class GetMilestoneCommand
extends ContractCommand<GetMilestoneRequest, GetMilestoneResponse> {
extends ContractCommand<GetMilestoneRequest, GetMilestoneResponse> {

@Override
public GetMilestoneResponse Run(GetMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.
@Override
public GetMilestoneResponse Run(GetMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.

return null;

}
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
package com.workup.contracts.commands;

import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest;

import com.workup.shared.commands.contracts.requests.GetContractRequest;
import com.workup.shared.commands.contracts.requests.GetMilestoneRequest;
import com.workup.shared.commands.contracts.requests.GetPendingTerminationsRequest;
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse;
import com.workup.shared.commands.contracts.responses.GetContractResponse;
import com.workup.shared.commands.contracts.responses.GetMilestoneResponse;
import com.workup.shared.commands.contracts.responses.GetPendingTerminationsResponse;

public class GetPendingTerminationsCommand
extends ContractCommand<GetPendingTerminationsRequest, GetPendingTerminationsResponse> {
extends ContractCommand<GetPendingTerminationsRequest, GetPendingTerminationsResponse> {

@Override
public GetPendingTerminationsResponse Run(GetPendingTerminationsRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.
@Override
public GetPendingTerminationsResponse Run(GetPendingTerminationsRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.

return null;

}
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
package com.workup.contracts.commands;

import com.workup.shared.commands.contracts.requests.EvaluateMilestoneRequest;

import com.workup.shared.commands.contracts.requests.ProgressMilestoneRequest;
import com.workup.shared.commands.contracts.responses.EvaluateMilestoneResponse;
import com.workup.shared.commands.contracts.responses.ProgressMilestoneResponse;

public class ProgressMilestoneCommand
extends ContractCommand<ProgressMilestoneRequest, ProgressMilestoneResponse> {
extends ContractCommand<ProgressMilestoneRequest, ProgressMilestoneResponse> {

@Override
public ProgressMilestoneResponse Run(ProgressMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.
@Override
public ProgressMilestoneResponse Run(ProgressMilestoneRequest request) {
// First we will get the milestones and add them to the database first,
// This will allow us to have their IDs for when we insert the contract.

return null;

}
return null;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.workup.shared.commands.contracts.requests;

import com.workup.shared.commands.CommandRequest;
import com.workup.shared.enums.contracts.TerminationRequestStatus;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;
Expand All @@ -11,5 +10,5 @@
@SuperBuilder(setterPrefix = "with")
@Jacksonized
public class GetContractRequest extends CommandRequest {
private final String contractId;
private final String contractId;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.workup.shared.commands.contracts.requests;

import com.workup.shared.commands.CommandRequest;
import com.workup.shared.enums.contracts.TerminationRequestStatus;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;
Expand All @@ -12,5 +11,5 @@
@Jacksonized
public class GetMilestoneRequest extends CommandRequest {

private final String milestoneId;
private final String milestoneId;
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.workup.shared.commands.contracts.requests;

import com.workup.shared.commands.CommandRequest;
import com.workup.shared.enums.contracts.TerminationRequestStatus;
import lombok.Getter;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;
Expand All @@ -11,5 +10,5 @@
@SuperBuilder(setterPrefix = "with")
@Jacksonized
public class GetPendingTerminationsRequest extends CommandRequest {
private final String contractId;
private final String contractId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@

import com.workup.shared.commands.CommandResponse;
import com.workup.shared.enums.contracts.ContractState;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;

import java.util.List;
import java.util.UUID;

@Getter
@SuperBuilder(setterPrefix = "with")
@Jacksonized
public class GetContractResponse extends CommandResponse {
private final String contractId;
private String jobTitle;
private String jobId;
private String proposalId;
private String freelancerId;
private String clientId;
private List<String> milestonesIds;
private ContractState status;

private final String contractId;
private String jobTitle;
private String jobId;
private String proposalId;
private String freelancerId;
private String clientId;
private List<String> milestonesIds;
private ContractState status;
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
@SuperBuilder(setterPrefix = "with")
@Jacksonized
public class GetMilestoneResponse extends CommandResponse {
private final Milestone milestone;
private final Milestone milestone;
}
Original file line number Diff line number Diff line change
@@ -1,24 +1,20 @@
package com.workup.shared.commands.contracts.responses;

import com.workup.shared.commands.CommandResponse;
import com.workup.shared.commands.contracts.Milestone;
import com.workup.shared.enums.contracts.TerminationRequestStatus;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;
import lombok.extern.jackson.Jacksonized;

import java.util.UUID;

@Getter
@SuperBuilder(setterPrefix = "with")
@Jacksonized
public class GetPendingTerminationsResponse extends CommandResponse {
private String requestId;
private String requestId;

private String contractId;
private String requesterId;
private String reason;
private String contractId;
private String requesterId;
private String reason;

private TerminationRequestStatus status;
private TerminationRequestStatus status;
}

0 comments on commit 1c7ea22

Please sign in to comment.