GET | /supplier/{supplierid}/user |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BrowseSupplierAllUser implements IGet
{
public Integer SupplierId = null;
public Integer getSupplierId() { return SupplierId; }
public BrowseSupplierAllUser setSupplierId(Integer value) { this.SupplierId = value; return this; }
}
public static class BrowseSupplierAllUserResponse extends ResponseBase
{
public ArrayList<UserSimple> Users = null;
public ArrayList<UserSimple> getUsers() { return Users; }
public BrowseSupplierAllUserResponse setUsers(ArrayList<UserSimple> value) { this.Users = value; return this; }
}
public static class ResponseBase
{
public ResponseStatus ResponseStatus = null;
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ResponseBase setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class UserSimple
{
public Integer Id = null;
public String Email = null;
public String DisplayName = null;
public String MobilePhoneNumber = null;
public String MobilePhoneNumberCountryCode = null;
public String PhoneNumber = null;
public String PhoneNumberCountryCode = null;
public String PhoneNumberExtension = null;
public String OrganizationUnit = null;
public String Position = null;
public String Role = null;
public ApplicationUserStatus Status = null;
public Integer getId() { return Id; }
public UserSimple setId(Integer value) { this.Id = value; return this; }
public String getEmail() { return Email; }
public UserSimple setEmail(String value) { this.Email = value; return this; }
public String getDisplayName() { return DisplayName; }
public UserSimple setDisplayName(String value) { this.DisplayName = value; return this; }
public String getMobilePhoneNumber() { return MobilePhoneNumber; }
public UserSimple setMobilePhoneNumber(String value) { this.MobilePhoneNumber = value; return this; }
public String getMobilePhoneNumberCountryCode() { return MobilePhoneNumberCountryCode; }
public UserSimple setMobilePhoneNumberCountryCode(String value) { this.MobilePhoneNumberCountryCode = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public UserSimple setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public String getPhoneNumberCountryCode() { return PhoneNumberCountryCode; }
public UserSimple setPhoneNumberCountryCode(String value) { this.PhoneNumberCountryCode = value; return this; }
public String getPhoneNumberExtension() { return PhoneNumberExtension; }
public UserSimple setPhoneNumberExtension(String value) { this.PhoneNumberExtension = value; return this; }
public String getOrganizationUnit() { return OrganizationUnit; }
public UserSimple setOrganizationUnit(String value) { this.OrganizationUnit = value; return this; }
public String getPosition() { return Position; }
public UserSimple setPosition(String value) { this.Position = value; return this; }
public String getRole() { return Role; }
public UserSimple setRole(String value) { this.Role = value; return this; }
public ApplicationUserStatus getStatus() { return Status; }
public UserSimple setStatus(ApplicationUserStatus value) { this.Status = value; return this; }
}
public static enum ApplicationUserStatus
{
@SerializedName("0") Registered(0),
@SerializedName("1") ConfirmedByUser(1),
@SerializedName("2") SupplierUserRegistered(2),
@SerializedName("3") AwaitingSupplierConfirmation(3),
@SerializedName("4") AwaitingVeoliaConfirmation(4),
@SerializedName("5") Active(5),
@SerializedName("6") Rejected(6),
@SerializedName("7") Deleted(7);
private final int value;
ApplicationUserStatus(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
}
Java BrowseSupplierAllUser DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /supplier/{supplierid}/user HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Users":[{"Id":0,"Email":"String","DisplayName":"String","MobilePhoneNumber":"String","MobilePhoneNumberCountryCode":"String","PhoneNumber":"String","PhoneNumberCountryCode":"String","PhoneNumberExtension":"String","OrganizationUnit":"String","Position":"String","Role":"String","Status":0}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}