AlbaApi

<back to all web services

PublicContactUsPostRequest

The following routes are available for this service:
POST/public/contactus
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PublicContactUsPostRequest
    {
        public PublicContactUsDetails contactDetails = null;
        
        public PublicContactUsDetails getContactDetails() { return contactDetails; }
        public PublicContactUsPostRequest setContactDetails(PublicContactUsDetails value) { this.contactDetails = value; return this; }
    }

    public static class PublicContactUsDetails
    {
        public String name = null;
        public String cprNumber = null;
        public String emailAddress = null;
        public String phoneNumber = null;
        public String productId = null;
        public String subject = null;
        public String message = null;
        public String address = null;
        public String toRecipients = null;
        public String ccRecipients = null;
        public String bccRecipients = null;
        
        public String getName() { return name; }
        public PublicContactUsDetails setName(String value) { this.name = value; return this; }
        public String getCprNumber() { return cprNumber; }
        public PublicContactUsDetails setCprNumber(String value) { this.cprNumber = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public PublicContactUsDetails setEmailAddress(String value) { this.emailAddress = value; return this; }
        public String getPhoneNumber() { return phoneNumber; }
        public PublicContactUsDetails setPhoneNumber(String value) { this.phoneNumber = value; return this; }
        public String getProductId() { return productId; }
        public PublicContactUsDetails setProductId(String value) { this.productId = value; return this; }
        public String getSubject() { return subject; }
        public PublicContactUsDetails setSubject(String value) { this.subject = value; return this; }
        public String getMessage() { return message; }
        public PublicContactUsDetails setMessage(String value) { this.message = value; return this; }
        public String getAddress() { return address; }
        public PublicContactUsDetails setAddress(String value) { this.address = value; return this; }
        public String getToRecipients() { return toRecipients; }
        public PublicContactUsDetails setToRecipients(String value) { this.toRecipients = value; return this; }
        public String getCcRecipients() { return ccRecipients; }
        public PublicContactUsDetails setCcRecipients(String value) { this.ccRecipients = value; return this; }
        public String getBccRecipients() { return bccRecipients; }
        public PublicContactUsDetails setBccRecipients(String value) { this.bccRecipients = value; return this; }
    }

}

Java PublicContactUsPostRequest DTOs

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

HTTP + JSV

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

POST /public/contactus HTTP/1.1 
Host: hcbtas-q-albamfs-api.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	contactDetails: 
	{
		name: String,
		cprNumber: String,
		emailAddress: String,
		phoneNumber: String,
		productId: String,
		subject: String,
		message: String,
		address: String,
		toRecipients: String,
		ccRecipients: String,
		bccRecipients: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

False