Class ServiceResponseCollection<TResponse extends ServiceResponse>

    • Method Detail

      • add

        public void add​(TResponse response)
        Adds specified response.
        Parameters:
        response - The response.
      • getCount

        public int getCount()
        Gets the total number of response in the list.
        Returns:
        total number of response in the list.
      • getOverallResult

        public ServiceResult getOverallResult()
        Gets a value indicating the overall result of the request that generated this response collection. If all of the response have their Result property set to Success, OverallResult returns Success. If at least one response has its Result property set to Warning and all other response have their Result property set to Success, OverallResult returns Warning. If at least one response has a its Result set to Error, OverallResult returns Error.
        Returns:
        the overall result