All Verbs | /citizen/authenticate |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AuthenticateCitizenRQ
{
public String Email = null;
public String Password = null;
public Long Provider = null;
public String DisplayName = null;
public String PhoneNumber = null;
public String ProviderId = null;
public String MobileId = null;
public String MobileOS = null;
public String CreatedUser = null;
public String getEmail() { return Email; }
public AuthenticateCitizenRQ setEmail(String value) { this.Email = value; return this; }
public String getPassword() { return Password; }
public AuthenticateCitizenRQ setPassword(String value) { this.Password = value; return this; }
public Long getProvider() { return Provider; }
public AuthenticateCitizenRQ setProvider(Long value) { this.Provider = value; return this; }
public String getDisplayName() { return DisplayName; }
public AuthenticateCitizenRQ setDisplayName(String value) { this.DisplayName = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public AuthenticateCitizenRQ setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public String getProviderId() { return ProviderId; }
public AuthenticateCitizenRQ setProviderId(String value) { this.ProviderId = value; return this; }
public String getMobileId() { return MobileId; }
public AuthenticateCitizenRQ setMobileId(String value) { this.MobileId = value; return this; }
public String getMobileOS() { return MobileOS; }
public AuthenticateCitizenRQ setMobileOS(String value) { this.MobileOS = value; return this; }
public String getCreatedUser() { return CreatedUser; }
public AuthenticateCitizenRQ setCreatedUser(String value) { this.CreatedUser = value; return this; }
}
public static class AuthenticateCitizenRS extends CoreRS
{
public Citizen Data = null;
public Citizen getData() { return Data; }
public AuthenticateCitizenRS setData(Citizen value) { this.Data = value; return this; }
}
public static class CoreRS
{
public String Code = null;
public String ErrorMessage = null;
public String ErrorStackTrace = null;
public String getCode() { return Code; }
public CoreRS setCode(String value) { this.Code = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public CoreRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getErrorStackTrace() { return ErrorStackTrace; }
public CoreRS setErrorStackTrace(String value) { this.ErrorStackTrace = value; return this; }
}
public static class Citizen
{
public String Email = null;
public String DisplayName = null;
public String Avatar = null;
public String Theme = null;
public String PhoneNumber = null;
public Long Provider = null;
public String ProviderId = null;
public String Password = null;
public String Banned = null;
public String Status = null;
public String getEmail() { return Email; }
public Citizen setEmail(String value) { this.Email = value; return this; }
public String getDisplayName() { return DisplayName; }
public Citizen setDisplayName(String value) { this.DisplayName = value; return this; }
public String getAvatar() { return Avatar; }
public Citizen setAvatar(String value) { this.Avatar = value; return this; }
public String getTheme() { return Theme; }
public Citizen setTheme(String value) { this.Theme = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public Citizen setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public Long getProvider() { return Provider; }
public Citizen setProvider(Long value) { this.Provider = value; return this; }
public String getProviderId() { return ProviderId; }
public Citizen setProviderId(String value) { this.ProviderId = value; return this; }
public String getPassword() { return Password; }
public Citizen setPassword(String value) { this.Password = value; return this; }
public String getBanned() { return Banned; }
public Citizen setBanned(String value) { this.Banned = value; return this; }
public String getStatus() { return Status; }
public Citizen setStatus(String value) { this.Status = value; return this; }
}
}
Java AuthenticateCitizenRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /citizen/authenticate HTTP/1.1
Host: ws.jimsnwa.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AuthenticateCitizenRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.citizen">
<CreatedUser>String</CreatedUser>
<DisplayName>String</DisplayName>
<Email>String</Email>
<MobileId>String</MobileId>
<MobileOS>String</MobileOS>
<Password>String</Password>
<PhoneNumber>String</PhoneNumber>
<Provider>0</Provider>
<ProviderId>String</ProviderId>
</AuthenticateCitizenRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AuthenticateCitizenRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.citizen"> <Code xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</Code> <ErrorMessage xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</ErrorMessage> <ErrorStackTrace xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.core">String</ErrorStackTrace> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Nwa.Model.Contexto.nwa.citizen"> <d2p1:Avatar>String</d2p1:Avatar> <d2p1:Banned>String</d2p1:Banned> <d2p1:DisplayName>String</d2p1:DisplayName> <d2p1:Email>String</d2p1:Email> <d2p1:Password>String</d2p1:Password> <d2p1:PhoneNumber>String</d2p1:PhoneNumber> <d2p1:Provider>0</d2p1:Provider> <d2p1:ProviderId>String</d2p1:ProviderId> <d2p1:Status>String</d2p1:Status> <d2p1:Theme>String</d2p1:Theme> </Data> </AuthenticateCitizenRS>