/*
 * (c) 2020 Pluto Inc.
 */
package tv.pluto.grpc.rating_descriptors;

import static tv.pluto.ip.dal.ratingdescriptor.RatingDescriptors.GetDocumentsUpdatedBetweenDatesRequest;

import io.grpc.Channel;
import tv.pluto.grpc.GenericGrpcClient;
import tv.pluto.ip.dal.ratingdescriptor.RatingDescriptorManagerGrpc;
import tv.pluto.ip.dal.ratingdescriptor.RatingDescriptors;

public class RatingDescriptorsClient extends GenericGrpcClient {
  private RatingDescriptors.GetAllPagedRequest.Builder getAllPagedBuilder =
      RatingDescriptors.GetAllPagedRequest.newBuilder();
  private RatingDescriptorManagerGrpc.RatingDescriptorManagerBlockingStub blockingStub;

  public RatingDescriptorsClient(Channel channel) {
    this.getDocumentsUpdatedBetweenDatesRequestBuilder =
        GetDocumentsUpdatedBetweenDatesRequest.newBuilder();
    blockingStub = RatingDescriptorManagerGrpc.newBlockingStub(channel);
    blockingStub = blockingStub.withInterceptors(CLIENT_INTERCEPTOR);
  }
}
