/**
 * #notifications_internal_svc.ts
 *
 * Code generated by ts-proto. DO NOT EDIT.
 * @packageDocumentation
 */
/* eslint-disable */
import _m0 from "protobufjs/minimal.js";
import { GetGamesDrawerBadgeStatusForAppsRequest, GetGamesDrawerBadgeStatusForAppsResponse, } from "./gamesdrawerbadge_msg.js";
export const NotificationsInternalServiceName = "devvit.plugin.notifications.NotificationsInternal";
export class NotificationsInternalClientImpl {
    constructor(rpc, opts) {
        this.service = opts?.service || NotificationsInternalServiceName;
        this.rpc = rpc;
        this.GetGamesDrawerBadgeStatusForApps = this.GetGamesDrawerBadgeStatusForApps.bind(this);
    }
    GetGamesDrawerBadgeStatusForApps(request, metadata) {
        const data = GetGamesDrawerBadgeStatusForAppsRequest.encode(request).finish();
        const promise = this.rpc.request(this.service, "GetGamesDrawerBadgeStatusForApps", data, metadata);
        return promise.then((data) => GetGamesDrawerBadgeStatusForAppsResponse.decode(_m0.Reader.create(data)));
    }
}
export const NotificationsInternalDefinition = {
    name: "NotificationsInternal",
    fullName: "devvit.plugin.notifications.NotificationsInternal",
    methods: {
        /** Get the status of games drawer badges for apps specified by slug */
        getGamesDrawerBadgeStatusForApps: {
            name: "GetGamesDrawerBadgeStatusForApps",
            requestType: GetGamesDrawerBadgeStatusForAppsRequest,
            requestStream: false,
            responseType: GetGamesDrawerBadgeStatusForAppsResponse,
            responseStream: false,
            options: {},
        },
    },
};
