Last active
February 1, 2021 05:59
-
-
Save abadongutierrez/be4cceb6747095ca164ba4bbb8810e5a to your computer and use it in GitHub Desktop.
Micronaut Tutorial - Login with Microsoft - MicrosoftUser class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.jabaddon.tutorials.micronaut.loginwithmicrosoft; | |
import io.micronaut.core.annotation.Introspected; | |
@Introspected | |
public class MicrosoftUser { | |
private String id; | |
private String surname; | |
private String givenName; | |
private String userPrincipalName; | |
public MicrosoftUser() { | |
} | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getSurname() { | |
return surname; | |
} | |
public void setSurname(String surname) { | |
this.surname = surname; | |
} | |
public String getGivenName() { | |
return givenName; | |
} | |
public void setGivenName(String givenName) { | |
this.givenName = givenName; | |
} | |
public String getUserPrincipalName() { | |
return userPrincipalName; | |
} | |
public void setUserPrincipalName(String userPrincipalName) { | |
this.userPrincipalName = userPrincipalName; | |
} | |
@Override | |
public String toString() { | |
return "MicrosoftUser{" + | |
"id='" + id + '\'' + | |
", surname='" + surname + '\'' + | |
", givenName='" + givenName + '\'' + | |
", userPrincipalName='" + userPrincipalName + '\'' + | |
'}'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment