-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserResponse.java
More file actions
35 lines (29 loc) · 1.01 KB
/
UserResponse.java
File metadata and controls
35 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package com.sequence.anonymous.user.dto;
import com.sequence.anonymous.user.domain.user.Gender;
import com.sequence.anonymous.user.domain.user.OAuth2Provider;
import com.sequence.anonymous.user.domain.user.Role;
import com.sequence.anonymous.user.domain.user.User;
import lombok.Getter;
@Getter
public class UserResponse {
private final Long id;
private final String providerId;
private final OAuth2Provider provider;
private final String name;
private final Integer age;
private final Gender gender;
private final String email;
private final Role role;
private final Boolean withdrawal;
public UserResponse(User user){
this.id = user.getId();
this.providerId = user.getProviderId();
this.provider = user.getProvider();
this.name = user.getName();
this.age = user.getAge();
this.gender = user.getGender();
this.email = user.getEmail();
this.role = user.getRole();
this.withdrawal = user.getWithdrawal();
}
}