package client

import (
	"context"

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

// ActivityAchievementClient wraps activity-service badge projection consumption.
type ActivityAchievementClient struct {
	client activityv1.AchievementServiceClient
}

func NewActivityAchievementClient(conn *grpc.ClientConn) *ActivityAchievementClient {
	return &ActivityAchievementClient{client: activityv1.NewAchievementServiceClient(conn)}
}

func (c *ActivityAchievementClient) ConsumeAchievementEvent(ctx context.Context, req *activityv1.ConsumeAchievementEventRequest, opts ...grpc.CallOption) (*activityv1.ConsumeAchievementEventResponse, error) {
	return c.client.ConsumeAchievementEvent(ctx, req, opts...)
}
