FrameAppWS

<back to all web services

RegisterCitizenRQ

Requires Authentication
The following routes are available for this service:
All Verbs/citizen/register
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RegisterCitizenRQ
    {
        public String Id = null;
        public String Email = null;
        public String DisplayName = null;
        public String PhoneNumber = null;
        public Long Provider = null;
        public String ProviderId = null;
        public String MobileId = null;
        public String MobileOS = null;
        public String Password = null;
        public String CreatedUser = null;
        
        public String getId() { return Id; }
        public RegisterCitizenRQ setId(String value) { this.Id = value; return this; }
        public String getEmail() { return Email; }
        public RegisterCitizenRQ setEmail(String value) { this.Email = value; return this; }
        public String getDisplayName() { return DisplayName; }
        public RegisterCitizenRQ setDisplayName(String value) { this.DisplayName = value; return this; }
        public String getPhoneNumber() { return PhoneNumber; }
        public RegisterCitizenRQ setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
        public Long getProvider() { return Provider; }
        public RegisterCitizenRQ setProvider(Long value) { this.Provider = value; return this; }
        public String getProviderId() { return ProviderId; }
        public RegisterCitizenRQ setProviderId(String value) { this.ProviderId = value; return this; }
        public String getMobileId() { return MobileId; }
        public RegisterCitizenRQ setMobileId(String value) { this.MobileId = value; return this; }
        public String getMobileOS() { return MobileOS; }
        public RegisterCitizenRQ setMobileOS(String value) { this.MobileOS = value; return this; }
        public String getPassword() { return Password; }
        public RegisterCitizenRQ setPassword(String value) { this.Password = value; return this; }
        public String getCreatedUser() { return CreatedUser; }
        public RegisterCitizenRQ setCreatedUser(String value) { this.CreatedUser = value; return this; }
    }

    public static class RegisterCitizenRS extends CoreRS
    {
        public String Data = null;
        
        public String getData() { return Data; }
        public RegisterCitizenRS setData(String 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; }
    }

}

Java RegisterCitizenRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /citizen/register HTTP/1.1 
Host: ws.jimsnwa.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterCitizenRQ 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>
  <Id>String</Id>
  <MobileId>String</MobileId>
  <MobileOS>String</MobileOS>
  <Password>String</Password>
  <PhoneNumber>String</PhoneNumber>
  <Provider>0</Provider>
  <ProviderId>String</ProviderId>
</RegisterCitizenRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RegisterCitizenRS 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>String</Data>
</RegisterCitizenRS>