类 ServiceListResponse

  • 所有已实现的接口:
    Payload

    public class ServiceListResponse
    extends Response
    Service list response.
    作者:
    xiweng.yy
    • 字段详细资料

      • count

        private int count
      • serviceNames

        private java.util.List<java.lang.String> serviceNames
    • 构造器详细资料

      • ServiceListResponse

        public ServiceListResponse()
      • ServiceListResponse

        private ServiceListResponse​(int count,
                                    java.util.List<java.lang.String> serviceNames,
                                    java.lang.String message)
    • 方法详细资料

      • buildSuccessResponse

        public static ServiceListResponse buildSuccessResponse​(int count,
                                                               java.util.List<java.lang.String> serviceNames)
      • buildFailResponse

        public static ServiceListResponse buildFailResponse​(java.lang.String message)
        Build fail response.
        参数:
        message - error message
        返回:
        fail response
      • getCount

        public int getCount()
      • setCount

        public void setCount​(int count)
      • getServiceNames

        public java.util.List<java.lang.String> getServiceNames()
      • setServiceNames

        public void setServiceNames​(java.util.List<java.lang.String> serviceNames)