Package com.authlete.common.dto
Class ServiceListResponse
- java.lang.Object
-
- com.authlete.common.dto.ServiceListResponse
-
- All Implemented Interfaces:
Serializable
public class ServiceListResponse extends Object implements Serializable
Response from Authlete's/service/get/list
API.- Since:
- Authlete 1.1
- Author:
- Takahiko Kawasaki
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServiceListResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getEnd()
Get the end index (exclusive) for the result set of the query.Service[]
getServices()
Get the list of services.int
getStart()
Get the start index (inclusive) for the result set of the query.int
getTotalCount()
Get the total count of services.ServiceListResponse
setEnd(int end)
Set the end index (exclusive) for the result set of the query.ServiceListResponse
setServices(Service[] services)
Set the list of services that match the query conditions.ServiceListResponse
setStart(int start)
Set the start index (inclusive) for the result set of the query.ServiceListResponse
setTotalCount(int count)
Set the total count of services.
-
-
-
Method Detail
-
getStart
public int getStart()
Get the start index (inclusive) for the result set of the query. It is the value contained in the original request (= the value of'start'
parameter), or the default value (0) if the original request did not contain the parameter.- Returns:
- The start index for the result set of the query.
-
setStart
public ServiceListResponse setStart(int start)
Set the start index (inclusive) for the result set of the query.- Parameters:
start
- The start index for the result set of the query.- Returns:
this
object.
-
getEnd
public int getEnd()
Get the end index (exclusive) for the result set of the query. It is the value contained in the original request (= the value of'end'
parameter), or the default value used by Authlete server if the original request did not contain the parameter.- Returns:
- The end index for the result set of the query.
-
setEnd
public ServiceListResponse setEnd(int end)
Set the end index (exclusive) for the result set of the query.- Parameters:
end
- The end index for the result set of the query.- Returns:
this
object.
-
getTotalCount
public int getTotalCount()
Get the total count of services.- Returns:
- The total count of services.
-
setTotalCount
public ServiceListResponse setTotalCount(int count)
Set the total count of services.- Parameters:
count
- The total count of services.- Returns:
this
object.
-
getServices
public Service[] getServices()
Get the list of services.- Returns:
- List of services, or
null
when no service matched the query conditions.
-
setServices
public ServiceListResponse setServices(Service[] services)
Set the list of services that match the query conditions.- Parameters:
services
- List of services, ornull
when no service matched the query conditions.- Returns:
this
object.
-
-