Trendsic Platform Service

<back to all web services

BusinessCardTypeRequest

Requires Authentication
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/BusinessCardType/{BusinessCardTypeId}
GET,POST,PUT,DELETE,OPTIONS/v1/BusinessCardType
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class BusinessCardTypeRequest
    {
        public ArrayList<BusinessCardType> BusinessCardType = new ArrayList<BusinessCardType>();
        
        public ArrayList<BusinessCardType> getBusinessCardType() { return BusinessCardType; }
        public BusinessCardTypeRequest setBusinessCardType(ArrayList<BusinessCardType> value) { this.BusinessCardType = value; return this; }
    }

    public static class BusinessCardType
    {
        public Integer BusinessCardTypeId = null;
        public String Name = null;
        public String Description = null;
        public Boolean IsBack = null;
        
        public Integer getBusinessCardTypeId() { return BusinessCardTypeId; }
        public BusinessCardType setBusinessCardTypeId(Integer value) { this.BusinessCardTypeId = value; return this; }
        public String getName() { return Name; }
        public BusinessCardType setName(String value) { this.Name = value; return this; }
        public String getDescription() { return Description; }
        public BusinessCardType setDescription(String value) { this.Description = value; return this; }
        public Boolean getIsBack() { return IsBack; }
        public BusinessCardType setIsBack(Boolean value) { this.IsBack = value; return this; }
    }

    public static class BusinessCardTypeResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<BusinessCardType> BusinessCardType = new ArrayList<BusinessCardType>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public BusinessCardTypeResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<BusinessCardType> getBusinessCardType() { return BusinessCardType; }
        public BusinessCardTypeResponse setBusinessCardType(ArrayList<BusinessCardType> value) { this.BusinessCardType = value; return this; }
    }

}

Java BusinessCardTypeRequest DTOs

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

HTTP + CSV

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

POST /v1/BusinessCardType/{BusinessCardTypeId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"BusinessCardType":[{"BusinessCardTypeId":0,"Name":"String","Description":"String","IsBack":false}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"BusinessCardType":[{"BusinessCardTypeId":0,"Name":"String","Description":"String","IsBack":false}]}