Class 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 Detail

      • ServiceListResponse

        public ServiceListResponse()
    • 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, or null when no service matched the query conditions.
        Returns:
        this object.