-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathLoginRequestJava.java
More file actions
40 lines (30 loc) · 941 Bytes
/
LoginRequestJava.java
File metadata and controls
40 lines (30 loc) · 941 Bytes
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
36
37
38
39
40
package com.hitanshudhawan.annotationprocessingexample.models;
import com.google.gson.annotations.SerializedName;
import com.hitanshudhawan.networkmodelvalidator.NetworkModel;
/**
* Sample login request model in Java.
* Demonstrates proper usage of @NetworkModel and @SerializedName annotations.
*/
@NetworkModel
public class LoginRequestJava {
@SerializedName("email")
private final String email;
@SerializedName("password")
private final String password;
@SerializedName("remember_me")
private final boolean rememberMe;
public LoginRequestJava(String email, String password, boolean rememberMe) {
this.email = email;
this.password = password;
this.rememberMe = rememberMe;
}
public String getEmail() {
return email;
}
public String getPassword() {
return password;
}
public boolean isRememberMe() {
return rememberMe;
}
}