sfgboxapi

<back to all web services

RolesSystemFunctionsAutoQueryAdd

import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class RolesSystemFunctionsAutoQueryAdd implements ICreateDb<RolesSystemFunctions>
    {
        @DataMember(Order=2)
        public Long rolesId = null;

        @DataMember(Order=3)
        public Long systemFunctionsId = null;

        @DataMember(Order=5)
        public ResponseStatus responseStatus = null;
        
        public Long getRolesId() { return rolesId; }
        public RolesSystemFunctionsAutoQueryAdd setRolesId(Long value) { this.rolesId = value; return this; }
        public Long getSystemFunctionsId() { return systemFunctionsId; }
        public RolesSystemFunctionsAutoQueryAdd setSystemFunctionsId(Long value) { this.systemFunctionsId = value; return this; }
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public RolesSystemFunctionsAutoQueryAdd setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

    public static class RolesSystemFunctions
    {
        @DataMember(Order=1)
        @Required()
        public Long id = null;

        @DataMember(Order=2)
        @Required()
        @References(Roles.class)
        public Long rolesId = null;

        @DataMember(Order=3)
        @Required()
        @References(SystemFunctions.class)
        public Long systemFunctionsId = null;
        
        public Long getId() { return id; }
        public RolesSystemFunctions setId(Long value) { this.id = value; return this; }
        public Long getRolesId() { return rolesId; }
        public RolesSystemFunctions setRolesId(Long value) { this.rolesId = value; return this; }
        public Long getSystemFunctionsId() { return systemFunctionsId; }
        public RolesSystemFunctions setSystemFunctionsId(Long value) { this.systemFunctionsId = value; return this; }
    }

}

Java RolesSystemFunctionsAutoQueryAdd 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 /jsv/reply/RolesSystemFunctionsAutoQueryAdd HTTP/1.1 
Host: api-stage.smartfarmertech.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	rolesId: 0,
	systemFunctionsId: 0,
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	rolesId: 0,
	systemFunctionsId: 0
}