from admac.grpc.accounts_pb2 import UserRetrieveRequest
from admac.grpc.accounts_pb2_grpc import UserControllerStub

from .config import CHANNEL

SUCCESS_CODE = "0"


class RequestMessages:
    FETCH_USER = UserRetrieveRequest


class RPCMethodNames:
    FETCH_ONE = "Retrieve"


class Stubs:
    USER = UserControllerStub(channel=CHANNEL)
