package client

import (
	"context"

	"google.golang.org/grpc"
	activityv1 "hyapp.local/api/proto/activity/v1"
)

// RoomTurnoverRewardClient abstracts gateway reads from activity-service room turnover reward APIs.
type RoomTurnoverRewardClient interface {
	GetRoomTurnoverRewardStatus(ctx context.Context, req *activityv1.GetRoomTurnoverRewardStatusRequest) (*activityv1.GetRoomTurnoverRewardStatusResponse, error)
}

type grpcRoomTurnoverRewardClient struct {
	client activityv1.RoomTurnoverRewardServiceClient
}

func NewGRPCRoomTurnoverRewardClient(conn *grpc.ClientConn) RoomTurnoverRewardClient {
	return &grpcRoomTurnoverRewardClient{client: activityv1.NewRoomTurnoverRewardServiceClient(conn)}
}

func (c *grpcRoomTurnoverRewardClient) GetRoomTurnoverRewardStatus(ctx context.Context, req *activityv1.GetRoomTurnoverRewardStatusRequest) (*activityv1.GetRoomTurnoverRewardStatusResponse, error) {
	return c.client.GetRoomTurnoverRewardStatus(ctx, req)
}
