Skip to content

Commit

Permalink
feat: Added Generic
Browse files Browse the repository at this point in the history
  • Loading branch information
th-release authored Nov 1, 2024
1 parent c19a3c2 commit dd88069
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/BasicResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,22 @@
// annotationProcessor 'org.projectlombok:lombok'
// com.google.gson.Gson

import com.google.gson.Gson;
import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import com.google.gson.Gson;

import java.util.Optional;

@Data
@Getter
@Setter
@Builder
public class BasicResponse {
public class BasicResponse<T> {
private boolean success;
private Optional<String> message;
private Optional<Object> data;
private Optional<T> data;

public String toJson() {
Gson gson = new Gson();
Expand Down

0 comments on commit dd88069

Please sign in to comment.